Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
12,829 in github.com/Cosmian/kms
⨍
Functions
12,829
◇
Types & classes
2,591
↓ 17 callers
Function
perform_crypto_officer_ceremony_activation
Activate the Crypto Officer role via a split-key ceremony. Validates and processes the ceremony activation: - Retrieves and validates all shares. - V
crate/server/src/core/operations/join_split_key.rs:486
↓ 17 callers
Method
resolve
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 17 callers
Method
retrieve_tags
Retrieve the tags of the object with the given `uid`
crate/server_database/src/core/database_objects.rs:350
↓ 17 callers
Function
temp_path
(label: &str)
crate/server/src/core/audit/store.rs:300
↓ 17 callers
Function
test_app_with_clap_config
Creates a test application instance using an explicit `ClapConfig`. This is useful for end-to-end KMIP policy tests that need to tune allowlists and
crate/server/src/tests/test_utils.rs:307
↓ 17 callers
Function
to_wide
(s: &str)
crate/clients/clap/src/actions/cng_verify.rs:64
↓ 16 callers
Function
aes_gcm_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:640
↓ 16 callers
Method
as_str
(&self)
crate/interfaces/src/user_id.rs:44
↓ 16 callers
Method
bytes
(&self)
crate/clients/client/src/http_client/client.rs:269
↓ 16 callers
Function
create_user_decryption_key
( cli_conf_path: &str, master_secret_key_id: &str, access_policy: &str, tags: &[&str], sen
crate/clients/ckms/src/tests/cover_crypt/user_decryption_keys.rs:13
↓ 16 callers
Function
export_object
(kms: &Arc<KMS>, owner: &str, object_id: &str)
crate/server/src/tests/hsm/mod.rs:334
↓ 16 callers
Function
fetch_pqc_certificate
Export a PQC certificate and parse it with `x509_parser`. Returns (Object, Attributes, DER bytes).
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:36
↓ 16 callers
Method
finalize
Finalize key creation: create the key pair in the KMS and transition from `Pending` to `Persisted`.
crate/clients/cng/src/key.rs:273
↓ 16 callers
Function
from_request
Build an [`ObjectHandle`] from an optional `UniqueIdentifier` request field. Extracts and validates the unique identifier from a KMIP request, elimin
crate/server/src/core/uid_utils.rs:18
↓ 16 callers
Method
get_object_handle
Retrieve the object handle for a given object ID from the HSM. This function attempts to locate the handle of an object (such as a key) in the HSM by
crate/hsm/base_hsm/src/session/session_impl.rs:532
↓ 16 callers
Function
get_vendor_id
Returns the currently configured vendor identification string.
crate/clients/wasm/src/wasm.rs:95
↓ 16 callers
Method
hasKey
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 16 callers
Method
object_mut
Return a mutable borrow to the Object Do not use this to set a new object or make sure you clear the cached unwrapped object
crate/interfaces/src/stores/object_with_metadata.rs:67
↓ 16 callers
Function
rsa_key_wrap
(slot: &Arc<SlotManager>, digest: RsaOaepDigest)
crate/hsm/base_hsm/src/tests_shared.rs:533
↓ 16 callers
Function
rsa_sha256_sign
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:980
↓ 16 callers
Function
sanitizeUrl
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 16 callers
Function
self_signed
(key: &PKey<Private>, cn: &str)
crate/server/src/tests/enrollment_tests.rs:263
↓ 16 callers
Method
set_wrapping_key_id
Set the wrapping key id This is the key that will be used to wrap the key on creation The wrapping key id is stored as a vendor attribute # Arguments
crate/kmip/src/kmip_2_1/extra/wrap_on_create.rs:21
↓ 16 callers
Function
sign_test_jwt
Sign `claims` as an RS256 JWT carrying `kid`.
crate/server/src/tests/google_cse/utils.rs:88
↓ 16 callers
Function
start_default_test_kms_server_with_crypto_officer_users
Privileged users. Base configuration is loaded from `test_data/configs/server/rbac/crypto_officer_users.toml`; the `crypto_officer_users` field is in
crate/test_kms_server/src/test_server.rs:1000
↓ 16 callers
Function
step_ok
(name: &str)
crate/clients/clap/src/actions/cng_verify.rs:614
↓ 16 callers
Function
validating_app
( rsa: &Rsa<Private>, )
crate/server/src/tests/google_cse/token_validation.rs:111
↓ 16 callers
Method
with_session
Run `f` on a pooled session of `slot_id` inside `spawn_blocking`. The session is checked back in only when `f` succeeds; on error the guard is droppe
crate/hsm/base_hsm/src/kms_hsm.rs:154
↓ 16 callers
Method
write_event_atomic
(&mut self, event: &AuditEvent)
crate/server_database/src/stores/audit/pgsql.rs:834
↓ 15 callers
Function
B
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 15 callers
Function
aes_cbc_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:704
↓ 15 callers
Function
b64_decode
Helper: decode a base64url (no-padding) string to bytes, returning `CryptoApiError::BadRequest` with a descriptive message on failure.
crate/server/src/routes/jose/error.rs:122
↓ 15 callers
Function
build
(password: Option<&str>)
crate/crypto/src/openssl/csr_attrs.rs:95
↓ 15 callers
Function
certify_pqc_self_signed
Self-signed PQC certificate creation + basic link verification.
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:81
↓ 15 callers
Method
cleanup
(&self, client: &KmsClient)
crate/test_kms_server/src/crl_tests.rs:101
↓ 15 callers
Function
create_ec_key_pair
( cli_conf_path: &str, curve: &str, tags: &[&str], sensitive: bool, )
crate/clients/ckms/src/tests/elliptic_curve/create_key_pair.rs:14
↓ 15 callers
Function
create_test_ca
Generate a self-signed CA certificate + private key for testing.
crate/crypto/src/openssl/ocsp.rs:1055
↓ 15 callers
Function
decode_jwt_authorization_token
Decode a json web token (JWT) used for Google CSE
crate/server/src/routes/google_cse/jwt.rs:134
↓ 15 callers
Method
derive_key
This request is used to derive a Symmetric Key or Secret Data object from keys or Secret Data objects that are already known to the key management sys
crate/server/src/core/kms/kmip.rs:231
↓ 15 callers
Function
ecdsa_sign_all_curves_and_hashes
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1200
↓ 15 callers
Function
extractUuid
(text: string)
ui/tests/e2e/helpers.ts:16
↓ 15 callers
Function
generate_csr
Generate a PKCS#10 CSR for the private key `private_key_id`. Signs with the exact key requested: HSM keys through the crypto oracle, database keys in
crate/server/src/core/operations/generate_csr.rs:109
↓ 15 callers
Method
generate_rsa_key_pair
Generate RSA key pair and return the private and public key handles in this order If exportable is set to `false`, the `sensitive` flag is set to tru
crate/hsm/base_hsm/src/session/rsa.rs:42
↓ 15 callers
Function
generate_rsa_keypair
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:379
↓ 15 callers
Function
get_key_metadata
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1757
↓ 15 callers
Function
get_mechanisms_and_hashes
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:160
↓ 15 callers
Function
init
Initialize test environment once before any tests run
crate/crypto/src/lib.rs:194
↓ 15 callers
Function
isIterable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 15 callers
Function
list_objects
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1692
↓ 15 callers
Method
merge
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 15 callers
Method
prompt_err
(self)
crate/server/src/config/wizard/mod.rs:67
↓ 15 callers
Function
read_events
(path: &Path)
crate/server/src/core/audit/store.rs:322
↓ 15 callers
Function
rsa_oaep_encrypt
(slot: &Arc<SlotManager>, digest: RsaOaepDigest)
crate/hsm/base_hsm/src/tests_shared.rs:586
↓ 15 callers
Function
rsa_pkcs_v15_sign
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:951
↓ 15 callers
Function
rsa_sign_all_algorithms
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1008
↓ 15 callers
Function
search_incompatible_key
(hsm: &BaseHsm<P>, cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:1861
↓ 15 callers
Method
serialize
Serialize a `RequestMessage` to the wire body for this transport.
crate/clients/clap/src/actions/bench/transport.rs:135
↓ 15 callers
Method
signature_verify
This operation requests the server to perform a signature verify operation on the provided data using a Managed Cryptographic Object as the key for th
crate/server/src/core/kms/kmip.rs:748
↓ 15 callers
Method
to_bytes
(&self, b: usize)
crate/crypto/src/crypto/fpe/ff1.rs:516
↓ 15 callers
Method
validate
This operation requests the server to validate a certificate chain and return information on its validity. Only a single certificate chain SHALL be in
crate/server/src/core/kms/kmip.rs:765
↓ 15 callers
Method
validate_csr
Validate `csr` against this template. Returns `KmsError::InvalidRequest` (HTTP 422) describing the first violation, or the requests parsed from the CS
crate/server/src/core/operations/certify/template.rs:390
↓ 14 callers
Function
V
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 14 callers
Function
create_pqc_key_pair_request
Build a `CreateKeyPair` request for a post-quantum algorithm (ML-KEM or ML-DSA).
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:249
↓ 14 callers
Function
decrypt
Decrypt the ciphertext using the given symmetric cipher. Return the decrypted plaintext. The tag is required for AEAD ciphers (`AES GCN`, `ChaCha20 P
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:613
↓ 14 callers
Function
deny
(reason: ErrorReason, msg: impl Into<String>)
crate/server/src/core/operations/algorithm_policy.rs:764
↓ 14 callers
Function
generate_ec_keypair
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:452
↓ 14 callers
Function
get
(key: &str)
crate/test_kms_server/src/test_env.rs:44
↓ 14 callers
Function
get_json_with_uri
(app: &S, uri: &str)
crate/server/src/tests/test_utils.rs:681
↓ 14 callers
Method
grant_access
Grant access to a user (identified by `access.userid`) to an object (identified by `access.unique_identifier`) which is owned by `owner` (identified b
crate/server/src/core/kms/permissions.rs:59
↓ 14 callers
Function
initialize_backend
()
crate/clients/pkcs11/provider/src/tests.rs:83
↓ 14 callers
Function
multi_threaded_rsa
( slot: &Arc<SlotManager>, digest: RsaOaepDigest, threads: usize, )
crate/hsm/base_hsm/src/tests_shared.rs:1521
↓ 14 callers
Function
random_key
Generate a random key for the given symmetric cipher.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:442
↓ 14 callers
Method
rsa
( key_size: i32, modulus_base64url: String, exponent_base64url: String, )
crate/server/src/routes/azure_ekm/models.rs:53
↓ 14 callers
Function
rsa_pss_sign_all_algorithms
Exercises HSM-delegated RSA-PSS signing (issue #1154, RSA-PSS sub-item) across the SHA-256/384/512 variants, both with the default salt length (= dige
crate/hsm/base_hsm/src/tests_shared.rs:1076
↓ 14 callers
Function
run_encrypt_decrypt_test
( cli_conf_path: &str, key_id: &str, data_encryption_algorithm: DataEncryptionAlgorithm, key_e
crate/clients/ckms/src/tests/symmetric/encrypt_decrypt.rs:111
↓ 14 callers
Function
selectOption
(page: Page, selectTestId: string, optionText: string)
ui/tests/e2e/helpers.ts:110
↓ 14 callers
Function
selectOptionById
(page: Page, cssSelector: string, optionText: string)
ui/tests/e2e/helpers.ts:218
↓ 14 callers
Method
send_raw_request
Send a KMIP request to the server and return the response
crate/server/src/tests/ttlv_tests/socket_client.rs:163
↓ 14 callers
Function
test_config_path
(name: &str)
crate/test_kms_server/src/test_server.rs:152
↓ 14 callers
Method
unshift
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callers
Function
aes_cbc_multi_round
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:732
↓ 13 callers
Function
assert_failed
Assert a failed reply (any non-200 status) whose `details` contain `details_contain`.
crate/server/src/tests/google_cse/crypto_paths.rs:62
↓ 13 callers
Function
assert_policy_denied
(res: Result<(), KmsError>)
crate/server/src/tests/kmip_policy/helpers.rs:55
↓ 13 callers
Function
assert_valid_chain
(events: &[AuditEvent])
crate/server/src/core/audit/store.rs:337
↓ 13 callers
Function
authn_token
An authentication token issued by the local identity provider.
crate/server/src/tests/google_cse/utils.rs:177
↓ 13 callers
Function
b64
(bytes: &[u8])
crate/server/src/tests/google_cse/crypto_paths.rs:46
↓ 13 callers
Function
backend
Returns the currently registered backend. Returns [`ModuleError::UserNotLoggedIn`] when no backend is registered (i.e. before `C_GetFunctionList` or a
crate/clients/pkcs11/module/src/traits/backend.rs:156
↓ 13 callers
Function
body_of
( resp: ServiceResponse<B>, )
crate/server/src/tests/enrollment_tests.rs:313
↓ 13 callers
Function
create_aes_key
Create an AES-256 symmetric key and return its UID.
crate/server/src/tests/revoke_tests.rs:51
↓ 13 callers
Function
create_kek
(kek_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:222
↓ 13 callers
Method
decrypt
This operation requests the server to perform a decryption operation on the provided data using a Managed Cryptographic Object as the key for the decr
crate/clients/client/src/kms_rest_client.rs:227
↓ 13 callers
Method
default
()
crate/server/src/config/wizard/cert_gen.rs:55
↓ 13 callers
Function
destroy_all
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:209
↓ 13 callers
Function
eddsa_sign_all_curves
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1356
↓ 13 callers
Function
encrypt
Encrypt the plaintext using the given symmetric cipher. Return the ciphertext and the tag. For XTS mode, the nonce is the tweak, the aad is ignored, a
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:451
↓ 13 callers
Method
end
(self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:611
↓ 13 callers
Method
fill_public_bytes
Fill a buffer with random bytes for values that **leave the server in clear** (nonces, IVs, certificate serials, KMIP `RNGRetrieve`, PKCS#11 `C_Genera
crate/crypto/src/crypto/rng/mod.rs:141
↓ 13 callers
Method
get
Look up a cached object by UID. Returns `Some(owm)` on cache hit, `None` on miss.
crate/server_database/src/core/object_cache.rs:106
↓ 13 callers
Function
get_cert_der
Retrieve the DER-encoded certificate from the KMS.
crate/server/src/tests/crl_tests.rs:191
↓ 13 callers
Method
get_object_store
Return the object store for the given `uid` This function retrieves the appropriate object store based on the prefix of the `uid`. Prefix matching u
crate/server_database/src/core/database_objects.rs:138
← previous
next →
301–400 of 12,829, ranked by callers