MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 13 callersMethodget_unwrapped
Unwrap the object (if need be) and return the unwrapped object. The unwrapped object is cached in memory. # Arguments `uid` - The unique identifier of
crate/server/src/core/kms/other_kms_methods.rs:57
↓ 13 callersMethodhsm_lib
Get a reference to the underlying `HsmLib` for direct PKCS#11 function calls.
crate/hsm/base_hsm/src/base_hsm.rs:155
↓ 13 callersMethodimport
This operation requests the server to Import a Managed Object specified by its Unique Identifier. The request specifies the object being imported and
crate/clients/client/src/kms_rest_client.rs:412
↓ 13 callersFunctionimport_key
(params: ImportKeyParams)
crate/clients/ckms/src/tests/shared/import.rs:47
↓ 13 callersFunctioninvalid
(msg: impl Into<String>)
crate/server/src/core/operations/certify/template.rs:113
↓ 13 callersFunctionisKeyed
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callersMethodis_usage_authorized_for
Check that `flag` bit is set in object's `CryptographicUsageMask`. If FIPS mode is disabled, check if the Unrestricted bit is set too. Return `true`
crate/kmip/src/kmip_2_1/kmip_attributes.rs:725
↓ 13 callersMethodis_wrapped
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:449
↓ 13 callersFunctionraw_client
A raw, unpooled connection used only to simulate a privileged administrator bypassing the append-only guard (disabling triggers) or attempting to muta
crate/server_database/src/stores/audit/pgsql.rs:1027
↓ 13 callersFunctionrevoke_ops
Helper: revoke operations on an HSM key
crate/server/src/tests/hsm/permissions.rs:76
↓ 13 callersFunctionrsa_pkcs_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:565
↓ 13 callersFunctionsave_pkcs11_client_config
()
crate/clients/pkcs11/provider/src/tests.rs:58
↓ 13 callersMethodsign
( &self, _key_pw: &Password, hash: HashAlgorithm, data: &[u8], )
crate/crypto/src/crypto/openpgp/mod.rs:222
↓ 13 callersFunctionstripHash
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callersFunctionvalidate_crl_url
Validates that a CRL Distribution Point URL is safe to fetch. Mitigations applied (COSMIAN-2026-021): - Only `http://` and `https://` schemes are per
crate/server/src/core/certificate/mod.rs:75
↓ 13 callersMethodvalueOf
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callersFunctionwrap_bytes
Wrap `bytes` with the `google_cse` key (through `/google_cse/wrap`), return the wrapped key.
crate/server/src/tests/google_cse/crypto_paths.rs:76
↓ 13 callersMethodwrapping_key_uid
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:457
↓ 12 callersFunctionDb
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callersFunctionG
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callersFunctionLr
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callersFunctionasn1_object
The [`Asn1Object`] of a NID. `rust-openssl` has no `OBJ_nid2obj` wrapper; the short name round-trips through `OBJ_txt2obj`, which resolves short name
crate/crypto/src/openssl/oid.rs:14
↓ 12 callersFunctionbuild_ocsp_response
( request_der: &[u8], _issuer_cert: &X509Ref, signer_cert: &X509Ref, signer_key: &PKeyRef<Priv
crate/crypto/src/openssl/ocsp.rs:423
↓ 12 callersFunctionbuild_test_request
Build a minimal OCSP request for a given serial number using the openssl crate's high-level API.
crate/crypto/src/openssl/ocsp.rs:1091
↓ 12 callersMethodcall_get_attributes
( &self, key_handle: CK_OBJECT_HANDLE, template: &mut [CK_ATTRIBUTE], )
crate/hsm/base_hsm/src/session/session_impl.rs:3306
↓ 12 callersFunctioncertify_keypair
Helper: certify with `generate_key_pair=true`, optionally CA-signed.
crate/test_kms_server/src/certify_tests.rs:202
↓ 12 callersFunctioncheck_ecc_mask_against_flags
Check that bits set in `mask` are only bits set in `flags`. If any bit set in `mask` is not set in `flags`, raise an error. If `mask` is None, raise
crate/crypto/src/crypto/elliptic_curves/operation.rs:44
↓ 12 callersFunctioncleanup_key_pair
Cleanup helper: revoke + destroy a key pair (best-effort).
crate/clients/cng/src/tests.rs:37
↓ 12 callersFunctionco_create_key
Helper to create a symmetric key (CO operation)
crate/clients/ckms/src/tests/rbac_tests.rs:33
↓ 12 callersFunctionco_destroy_key
Helper to destroy a key (CO operation — revokes first, then destroys)
crate/clients/ckms/src/tests/rbac_tests.rs:88
↓ 12 callersFunctionconcurrent_sign_does_not_degrade
Assert that concurrent HSM signing does not experience throughput collapse under concurrency (8 threads vs 1 thread).
crate/hsm/base_hsm/src/tests_shared.rs:1570
↓ 12 callersFunctioncreate_aes_key
Create an AES-256 key and return its UID.
crate/server/src/tests/jose/key_state.rs:40
↓ 12 callersMethoddecrypt
( &self, _slot_id: usize, _key_id: &[u8], _algorithm: CryptoAlgorithm,
crate/server/src/tests/hsm/fake_hsm_authz.rs:185
↓ 12 callersMethoddeserialize
(deserializer: D)
crate/kmip/src/ttlv/interval.rs:74
↓ 12 callersFunctiondummy_config
A minimal OAuth2 config that refers to a reachable-but-wrong token URL (127.0.0.1:1) so that the token-exchange step always fails quickly without hang
crate/clients/client/src/http_client/tests.rs:364
↓ 12 callersFunctionenforce
( params: &ServerParams, operation_tag: &str, op: &Operation, )
crate/server/src/tests/kmip_policy/helpers.rs:64
↓ 12 callersMethodget_info_struct
Get PKCS#11 info as Info struct. This method calls `C_GetInfo` and returns the `Info` structure with parsed library information.
crate/hsm/base_hsm/src/hsm_lib.rs:481
↓ 12 callersMethodhsm_capabilities
Get the HSM vendor capability flags (e.g. attribute quirks, size limits).
crate/hsm/base_hsm/src/session/session_impl.rs:293
↓ 12 callersFunctionkmip_certificate_to_openssl
(certificate: &Object)
crate/crypto/src/openssl/certificate.rs:27
↓ 12 callersFunctionkms_import_pgp
Import armored key material into the shared KMS under a process-unique UID.
crate/test_kms_server/src/pgp_gnupg_tests.rs:239
↓ 12 callersFunctionmake_event
(id: i64, prev_hash: [u8; 32], result: AuditResult)
crate/access/src/audit/hash.rs:150
↓ 12 callersFunctionopenssl_private_key_to_kmip
Convert an openssl private key to a KMIP private Key (`Object::PrivateKey`) of the given `KeyFormatType`
crate/crypto/src/openssl/private_key.rs:261
↓ 12 callersFunctionparams_with_default_policy
()
crate/server/src/tests/kmip_policy/helpers.rs:35
↓ 12 callersMethodparse
(additional_data: Option<&[u8]>)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:30
↓ 12 callersFunctionpgp_create_request
(alg: CryptographicAlgorithm, bits: Option<i32>)
crate/test_kms_server/src/pgp_gnupg_tests.rs:304
↓ 12 callersFunctionpostNoTTLVRequest
(path: string, request: object, serverUrl: string)
ui/src/utils/utils.ts:188
↓ 12 callersFunctionrevoke
( cli_conf_path: &str, sub_command: &str, key_id: &str, revocation_reason: &str, )
crate/clients/ckms/src/tests/shared/revoke.rs:23
↓ 12 callersFunctionrfc5649_wrap
(plaintext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc5649.rs:36
↓ 12 callersFunctionrsa
(bits: u32)
crate/server/src/core/operations/certify/template.rs:627
↓ 12 callersFunctionserialize_and_deserialize
(ttlv: &TTLV)
crate/kmip/src/ttlv/wire/ttlv_bytes_deserializer.rs:228
↓ 12 callersFunctionsign_verify_roundtrip
(algorithm_name: &str)
crate/crypto/src/crypto/pqc/slh_dsa.rs:55
↓ 12 callersMethodsize
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callersFunctionstringify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callersFunctiontest_client
Start (or reuse) the shared in-process KMS test server and return an owner `KmsClient`. A temporary Tokio runtime is used only for the async setup; i
crate/clients/cng/src/tests.rs:27
↓ 12 callersFunctionunwrap_key_block
Unwrap a key block with a wrapping key # Arguments `object_key_block` - the key block of the object to unwrap `unwrapping_key` - the unwrapping key #
crate/crypto/src/crypto/wrap/unwrap_key.rs:105
↓ 12 callersFunctionuser
(name: &str)
crate/server/src/tests/sub_ca_tests.rs:58
↓ 12 callersFunctionwith_clean_env
(f: F)
crate/server/src/config/command_line/clap_config.rs:929
↓ 11 callersFunctionE
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersFunctionR
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersFunctionassert_error
Assert a structured CSE error reply: expected status, exact body shape, `details` content.
crate/server/src/tests/google_cse/token_validation.rs:68
↓ 11 callersFunctionaudit
Name a `/v1/crypto` request in the audit log as `METHOD /route/pattern` and, when given, the key it acts on. Calling it again overwrites the previous
crate/server/src/routes/jose/mod.rs:256
↓ 11 callersFunctionaudit_now
()
crate/access/src/audit/event.rs:184
↓ 11 callersFunctionbench_uid
Deterministic unique identifier of a benchmark setup key: `bench-<name>`, or `<hsm_prefix>::bench-<name>` for an HSM-resident key (`hsm_prefix` = `hsm
crate/clients/clap/src/actions/bench/helpers.rs:304
↓ 11 callersFunctionbuild_create_covercrypt_master_keypair_request
Build a `CreateKeyPair` request for an `CoverCrypt` Master Key
crate/clients/client_utils/src/cover_crypt_utils.rs:22
↓ 11 callersFunctionbuild_jwks_manager_with_key
Build a `JwksManager` pre-loaded with a single RSA public key (no HTTP fetch).
crate/server/src/tests/google_cse/utils.rs:59
↓ 11 callersFunctioncert_serial
Return the serial number bytes from a DER-encoded certificate.
crate/server/src/tests/crl_tests.rs:182
↓ 11 callersFunctioncerts_of
Certificates carried by a certs-only CMS (`SignedData`).
crate/server/src/tests/enrollment_tests.rs:290
↓ 11 callersMethodcontext
(self, context: &str)
crate/crypto/src/error/result.rs:19
↓ 11 callersFunctioncreateSymKey
(page: Page)
ui/tests/e2e/helpers.ts:326
↓ 11 callersFunctioncreate_ml_dsa_ca
Create an ML-DSA-44 CA and return (`cert_id`, `private_key_id`).
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:120
↓ 11 callersFunctioncreate_persisted_key
( dll: &KspDll, h_provider: usize, alg: &[u16], name: &str, )
crate/clients/clap/src/actions/cng_verify.rs:166
↓ 11 callersMethodcurrent_mut
Get the current TTLV element which is the last element on the stack
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:82
↓ 11 callersFunctiondelete_key
(dll: &KspDll, h_provider: usize, h_key: usize)
crate/clients/clap/src/actions/cng_verify.rs:586
↓ 11 callersMethodenforce_create_permission
Enforce that the caller has `Create` access-right. When `crypto_officer.users` is configured, the user must either: - have been explicitly granted th
crate/server/src/core/kms/permissions.rs:275
↓ 11 callersMethodexport
( &self, _slot_id: usize, object_id: &[u8], )
crate/server/src/tests/hsm/fake_hsm_authz.rs:145
↓ 11 callersFunctionfinalize_key
(dll: &KspDll, h_provider: usize, h_key: usize)
crate/clients/clap/src/actions/cng_verify.rs:213
↓ 11 callersFunctionfunc
(items2: LevelKeysProps[], level = 1)
ui/src/components/layout/Sidebar.tsx:93
↓ 11 callersFunctiongenerate_crl
Generate a CRL for the given issuer certificate. # Arguments `kms` — KMS instance `issuer_certificate_id` — UID of the CA certificate `validity_days`
crate/server/src/core/operations/generate_crl.rs:205
↓ 11 callersMethodgetConfigs
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersFunctionget_redis_url
()
crate/server_database/src/tests/mod.rs:50
↓ 11 callersFunctiongrant_access
Grants access to a user
crate/clients/ckms/src/tests/access.rs:68
↓ 11 callersFunctionhsm_config_path
(name: &str)
crate/test_kms_server/src/test_server.rs:160
↓ 11 callersFunctionimport_certificate
( import_certificate_input: ImportCertificateInput, )
crate/clients/ckms/src/tests/certificates/import.rs:54
↓ 11 callersFunctioniteratorValue
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersMethodlist_uids_for_tags
(&self, tags: &HashSet<String>)
crate/server_database/src/core/database_objects.rs:434
↓ 11 callersFunctionmake_kms
()
crate/server/src/tests/sub_ca_tests.rs:54
↓ 11 callersMethodmessage
( &self, request: cosmian_kms_server_database::reexport::cosmian_kmip::kmip_0::kmip_messages::
crate/server/src/core/kms/kmip.rs:601
↓ 11 callersFunctionnot_supported
()
crate/server/src/core/operations/certify/hsm_subject_tests.rs:67
↓ 11 callersFunctionopenssl_seeded_rng
The PGP crate requires an infallible rand 0.8 `CryptoRng` (rand_core 0.6) and offers no direct-seed entry point, so its RNG stream is `KmsRng::seeded_
crate/crypto/src/crypto/openpgp/mod.rs:61
↓ 11 callersFunctionpkcs_req_csr
(key: &PKey<Private>, cn: &str, challenge: &str)
crate/server/src/tests/enrollment_tests.rs:992
↓ 11 callersMethodposition
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersFunctionremove_leftover_key
Remove the key with this deterministic identifier, and its `_pk` public key, left by an earlier run or protocol pass, so that it can be created again.
crate/clients/clap/src/actions/bench/helpers.rs:326
↓ 11 callersFunctionrevoke_cert
Revoke a certificate with the given reason code.
crate/server/src/tests/crl_tests.rs:160
↓ 11 callersFunctionscep_roundtrip
Send one `PKIOperation` the way a SCEP client does and decode the `CertRep`.
crate/server/src/tests/enrollment_tests.rs:933
↓ 11 callersFunctionseed_generation_zero
Writes a clean 3-row generation 0 (ids 0, 1, 2) and returns the sink so the caller can drop it before corrupting the table directly.
crate/server_database/src/stores/audit/pgsql.rs:1012
↓ 11 callersFunctionself_signed
(cn: &str)
crate/crypto/src/openssl/scep_cms.rs:703
↓ 11 callersFunctionsetup_observing_metrics
()
crate/server/src/core/otel_metrics.rs:671
↓ 11 callersMethodstore
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersFunctiontest_private_key_conversion_pkcs
( private_key: &PKey<Private>, id: Id, key_size: u32, kft: KeyFormatType,
crate/crypto/src/openssl/private_key.rs:563
↓ 11 callersFunctiontest_public_key_conversion_pkcs
( public_key: &PKey<Public>, id: Id, key_size: u32, kft: KeyFormatType, )
crate/crypto/src/openssl/public_key.rs:547
← previousnext →401–500 of 12,829, ranked by callers