Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
9,687 in github.com/Cosmian/kms
⨍
Functions
9,687
◇
Types & classes
2,312
↓ 4 callers
Method
list_objects
(&self, object_filter: HsmObjectFilter)
crate/hsm/base_hsm/src/session/session_impl.rs:507
↓ 4 callers
Method
list_uids_for_tags
(&self, tags: &HashSet<String>)
crate/server_database/src/core/database_objects.rs:417
↓ 4 callers
Function
list_uids_for_tags_test
( db: &DB, )
crate/server_database/src/tests/list_uids_for_tags_test.rs:16
↓ 4 callers
Function
load_raw_private_key
( algorithm_name: &str, raw_bytes: &[u8], )
crate/crypto/src/crypto/pqc/mod.rs:310
↓ 4 callers
Function
load_raw_public_key
( algorithm_name: &str, raw_bytes: &[u8], )
crate/crypto/src/crypto/pqc/mod.rs:277
↓ 4 callers
Function
locate
( cli_conf_path: &str, tags: Option<&[&str]>, algorithm: Option<&str>, cryptographic_length: O
crate/clients/ckms/src/tests/shared/locate.rs:30
↓ 4 callers
Function
locate_kms_objects
( kms_rest_client: &KmsClient, vendor_id: &str, tags: &[String], )
crate/clients/pkcs11/provider/src/kms_object.rs:143
↓ 4 callers
Function
locate_objects_of_type
Locate KMS objects by tags, optionally filtering by `ObjectType`. This avoids returning objects of wrong type when multiple object types share the sam
crate/clients/pkcs11/provider/src/kms_object.rs:459
↓ 4 callers
Method
mac
This operation requests the server to perform message authentication code (MAC) operation on the provided data using a Managed Cryptographic Object as
crate/server/src/core/kms/kmip.rs:537
↓ 4 callers
Function
min_plaintext_length
Minimum length of the plaintext for FPE to be secure. Returns the smallest `n` such that `alphabet_len^n >= RECOMMENDED_THRESHOLD`.
crate/crypto/src/crypto/fpe/alphabet.rs:16
↓ 4 callers
Function
modify_attribute
( kms: &Arc<KMS>, uid: &str, attribute: Attribute, )
crate/server/src/tests/test_modify_attribute.rs:86
↓ 4 callers
Method
object_upsert
( &self, uid: &str, redis_db_object: &RedisDbObject, )
crate/server_database/src/stores/redis/objects_db.rs:227
↓ 4 callers
Function
objectify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
objects_get
( &self, uids: &HashSet<String>, )
crate/server_database/src/stores/redis/objects_db.rs:256
↓ 4 callers
Function
opId
(s,o,i="",{v2OperationIdCompatibilityMode:u}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
openssl_x509_to_certificate_attributes
(x509: &X509)
crate/crypto/src/openssl/certificate.rs:59
↓ 4 callers
Method
operation_enum
(&self)
crate/kmip/src/kmip_2_1/kmip_operations.rs:359
↓ 4 callers
Method
operation_enum
(&self)
crate/kmip/src/kmip_1_4/kmip_operations.rs:2483
↓ 4 callers
Function
owner
(db: &DB)
crate/server_database/src/tests/owner_test.rs:19
↓ 4 callers
Function
parse_hash_alg_from_wide
Parse a CNG hash algorithm name (wide string) into a `HashingAlgorithm`. Returns `None` if the pointer is null or the algorithm is unknown.
crate/clients/cng/src/provider.rs:176
↓ 4 callers
Function
parse_uid_placeholder_index
Single source of truth to parse placeholder index from a UniqueIdentifier text string. Supports raw (uid-N / $UNIQUE_IDENTIFIER_N) and namespaced (tes
crate/clients/clap/src/tests/xml/request.rs:1135
↓ 4 callers
Function
parse_uri
Strip the `secret://` prefix and split at the first `/`. Returns `(first_segment, remainder)`.
crate/server/src/config/command_line/secret_backends/common.rs:24
↓ 4 callers
Method
peek_mut
(&mut self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:54
↓ 4 callers
Function
permissions
(db: &DB)
crate/server_database/src/tests/permissions_test.rs:9
↓ 4 callers
Method
post_json
Send an HTTP POST request with a JSON body. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:455
↓ 4 callers
Function
predicates_isBooleanJSONSchema
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
prepare_sym_key_elements
( number_of_bits: Option<usize>, wrap_key_b64: &Option<String>, algorithm: SymmetricAlgorithm, )
crate/clients/client_utils/src/create_utils.rs:68
↓ 4 callers
Method
private_key
(&self)
crate/server/src/core/operations/certify/issuer.rs:36
↓ 4 callers
Function
process_error_response
Convert an error HTTP response into the appropriate `KmsClientError` variant. Returns [`KmsClientError::Unauthorized`] for 401, otherwise [`KmsClient
crate/clients/client/src/kms_rest_client.rs:831
↓ 4 callers
Method
public_key
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:75
↓ 4 callers
Method
record_hsm_operation
Record HSM operation. `operation` must be a `'static` literal (e.g. `Op::OP_NAME`, `"Wrap"`, `"Unwrap"`). `hsm_model` is a runtime label from `hsm_mo
crate/server/src/core/otel_metrics.rs:588
↓ 4 callers
Method
record_kmip_operation
Record a KMIP operation
crate/server/src/core/otel_metrics.rs:348
↓ 4 callers
Method
record_kmip_operation_duration
Record KMIP operation duration
crate/server/src/core/otel_metrics.rs:363
↓ 4 callers
Function
rename
( cli_conf_path: &str, master_secret_key_id: &str, attribute: &str, new_name: &str, )
crate/clients/ckms/src/tests/cover_crypt/access_structure.rs:90
↓ 4 callers
Function
require_id
Extract the `Id` from a `SearchOptions`, returning an error if `All` was passed. Centralises the "find requires an ID" check shared by four `Backend`
crate/clients/pkcs11/provider/src/backend.rs:46
↓ 4 callers
Function
resolve_aad
( data_encryption_algorithm: DataEncryptionAlgorithm, aad: Option<Vec<u8>>, )
crate/clients/clap/src/actions/symmetric/cipher_io.rs:13
↓ 4 callers
Function
resolve_async
Run an async future on a dedicated thread with a fresh single-threaded tokio runtime. Required because config loading runs before the main runtime.
crate/server/src/config/command_line/secret_backends/common.rs:7
↓ 4 callers
Function
resolve_single_uri
Helper: wrap a URI in a minimal TOML table and resolve it.
crate/server/src/config/command_line/secret_backends/mod.rs:162
↓ 4 callers
Function
revoke_access
Revoke access to a user
crate/clients/ckms/src/tests/access.rs:95
↓ 4 callers
Function
rfc3394_wrap
(plaintext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:35
↓ 4 callers
Function
run_all_xml_vectors_in_dir
Run all XML vectors in a directory (sorted alphabetically) against the shared test server. Optionally exclude specific filenames (e.g., PKCS11 tests t
crate/clients/clap/src/tests/xml/runner.rs:21
↓ 4 callers
Function
sanitize
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
secret_data_create_request
Build a `Create` request for a secret data - random Seed of 32 bytes generated server-side
crate/kmip/src/kmip_2_1/requests/create.rs:205
↓ 4 callers
Method
serial_number
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:89
↓ 4 callers
Method
serialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
set_attribute
( kms: &KMS, request: SetAttribute, user: &str, )
crate/server/src/core/operations/attributes/set.rs:54
↓ 4 callers
Function
set_attribute
(kms: &Arc<KMS>, uid: &str, attribute: Attribute)
crate/server/src/tests/test_set_attribute.rs:67
↓ 4 callers
Function
set_deactivation_date
Set the `DeactivationDate` attribute on a key via KMIP `SetAttribute`.
crate/server/src/tests/jose/key_state.rs:638
↓ 4 callers
Method
set_requested_validity_days
Set the requested validity days This is the number of days the certificate will be valid for The requested validity days is stored as a vendor attribu
crate/kmip/src/kmip_2_1/extra/certificates.rs:18
↓ 4 callers
Function
sign
( kms_rest_client: &KmsClient, sk: &str, message: &Zeroizing<Vec<u8>>, params: Option<&Cryptog
crate/test_kms_server/benches/sign_benches.rs:280
↓ 4 callers
Method
sign
(&self)
crate/kmip/src/ttlv/kmip_big_int.rs:99
↓ 4 callers
Function
spawn_browser_simulation
Issue a minimal HTTP GET to `url` (on a plain TCP connection) after sleeping `delay_ms` milliseconds. Runs on a dedicated OS thread so it does not co
crate/clients/client/src/http_client/tests.rs:502
↓ 4 callers
Function
spawn_mock_http_once
Spawn a one-shot raw-TCP HTTP/1.1 server on `port` that reads a single request and replies with the supplied `status_line` and JSON `body`. Returns t
crate/clients/client/src/http_client/tests.rs:714
↓ 4 callers
Function
start_default_test_kms_server_with_utimaco_and_kek
()
crate/test_kms_server/src/test_server.rs:398
↓ 4 callers
Function
start_kms_server
Starts the Key Management System (KMS) server based on the provided configuration. The server is started using one of three methods: 1. Plain HTTP, 2
crate/server/src/start_kms_server.rs:354
↓ 4 callers
Function
stripHtml
(text: string)
ui/src/utils/utils.ts:4
↓ 4 callers
Method
subject
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:94
↓ 4 callers
Function
tags
( db: &DB, verify_attributes: bool, )
crate/server_database/src/tests/tagging_tests.rs:22
↓ 4 callers
Function
te
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
test_db_softhsm2_impl
Full key lifecycle exercised against the HSM-backed KMS. Stages (each one exercises HSM wrap/unwrap at the DB layer): 1. **Create** — AES-256 key, s
crate/test_kms_server/src/db_hsm_tests.rs:74
↓ 4 callers
Function
test_kms
Helper: create a KMS instance for tests
crate/server/src/tests/security_regression.rs:25
↓ 4 callers
Method
toReference
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
to_u32
(&self)
crate/crypto/src/crypto/fpe/ff1.rs:210
↓ 4 callers
Function
try_decrypt
Attempt to decrypt the given ciphertext response; returns Ok(value) on success.
crate/server/src/tests/jose/key_state.rs:82
↓ 4 callers
Function
unique_temp_path
Create a unique path inside the system temp directory
crate/clients/ckms/src/tests/access.rs:31
↓ 4 callers
Function
unsanitize
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
unwrap_if_requested
( object_with_metadata: &mut ObjectWithMetadata, key_wrap_type: &Option<KeyWrapType>, kms: &KMS,
crate/server/src/core/operations/export_get.rs:961
↓ 4 callers
Function
unwrap_key_handler
( kms: &KMS, key_name: &str, user: &str, request: UnwrapKeyRequest, )
crate/server/src/routes/azure_ekm/handlers.rs:372
↓ 4 callers
Method
upsert
Insert the object
crate/clients/pkcs11/module/src/objects_store.rs:31
↓ 4 callers
Method
user_can_perform_operation
Check whether `user` is allowed to perform `operation` on this object. Returns `true` if the user is the owner or has been explicitly granted the req
crate/server/src/core/kms/permissions.rs:283
↓ 4 callers
Function
user_has_permission
Check if a user has permission to perform an operation on an object. If the user is the owner of the object, it will always return true. For non-HSM o
crate/server/src/core/retrieve_object_utils.rs:270
↓ 4 callers
Function
validate_algorithm
( alg: CryptographicAlgorithm, whitelist: Option<&HashSet<CryptographicAlgorithm>>, )
crate/server/src/core/operations/algorithm_policy.rs:653
↓ 4 callers
Function
validate_api_version
Validate API version for all requests
crate/server/src/routes/azure_ekm/mod.rs:33
↓ 4 callers
Function
validate_attributes
(attrs: &Attributes, wl: &KmipWhitelists)
crate/server/src/core/operations/algorithm_policy.rs:527
↓ 4 callers
Method
validate_cache
Validate the cache entry for `uid` against the current object from the DB. If the fingerprint of the cached entry differs from the fingerprint of `cu
crate/server_database/src/core/object_cache.rs:93
↓ 4 callers
Function
vault_token_optional_middleware
Optional vault-token middleware for scopes that also accept native KMS authentication. This middleware allows AppRole/SPIRE clients that hold a valid
crate/server/src/middlewares/spire_token.rs:394
↓ 4 callers
Function
verify
( kms_rest_client: &KmsClient, pk: &str, message: &Zeroizing<Vec<u8>>, signature: &[u8], p
crate/test_kms_server/benches/sign_benches.rs:297
↓ 4 callers
Method
visit_str
(self, v: &str)
crate/kmip/src/ttlv/deserialize.rs:333
↓ 4 callers
Function
wrapWithTryCatch
(s,{logErrors:o=!0}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
wrapping_key_link_test
Verify the `wrapping_key_id` write path and `find_wrapped_by` query across every backend: a wrapped object must be discoverable by its wrapping key, w
crate/server_database/src/tests/database_tests.rs:633
↓ 4 callers
Function
write_json_object_to_file
Write a JSON object to a file # Errors If the file cannot be opened or written, an error is returned.
crate/clients/client/src/file_utils.rs:81
↓ 3 callers
Function
$f
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
$g
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Bh
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Cc
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Ch
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Eh
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Hj
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Ie
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Ik
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
IndexedIterable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Iterable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Jg
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
K
(s,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Kb
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Lg
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Mh
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Ne
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Nh
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
Qg
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previous
next →
901–1,000 of 9,687, ranked by callers