MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 1 callersFunctionbuild_mask_from_curve
( curve: RecommendedCurve, is_private_mask: bool, )
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:108
↓ 1 callersFunctionbuild_oidc_runtime_config
Fetch the OIDC discovery document and build an `OidcRuntimeConfig`. Called once at server startup. The discovered `authorization_endpoint` and `token
crate/server/src/start_kms_server.rs:771
↓ 1 callersFunctionbuild_other_info
Build the `OtherInfo` structure per RFC 7518 Appendix C: `OtherInfo = AlgorithmID || PartyUInfo || PartyVInfo || SuppPubInfo || SuppPrivInfo` - `Alg
crate/crypto/src/crypto/kdf/concat_kdf.rs:28
↓ 1 callersFunctionbuild_pgp_key_from_bytes
Wrap raw `OpenPGP` key bytes (armored or binary, secret or public) into a `PGPKey` managed object. The server normalizes and classifies the material d
crate/clients/client_utils/src/import_utils.rs:152
↓ 1 callersFunctionbuild_pkcs11_lib
()
crate/clients/ckms/src/tests/pkcs11.rs:35
↓ 1 callersFunctionbuild_pkcs12_for_private_key
( kms: &KMS, operation_type: KmipOperation, user: &UserId, request: &Export, private_key_
crate/server/src/core/operations/export_get.rs:1301
↓ 1 callersFunctionbuild_pqc_params
(alg: JoseAlgorithm)
crate/server/src/routes/jose/algorithm.rs:314
↓ 1 callersFunctionbuild_public_key_from_der_bytes
Here the zeroizing type on public key bytes is overkill, but it aligns with other methods dealing with private components.
crate/clients/client_utils/src/import_utils.rs:126
↓ 1 callersFunctionbuild_re_certify_request
Build a KMIP `ReCertify` request — certificate rotation with a fresh UID. Unlike `Certify` with an existing cert UID (which upserts in-place), `ReCer
crate/clients/client_utils/src/certificate_utils.rs:476
↓ 1 callersFunctionbuild_reconstructed_object
Takes ownership of the `Zeroizing<Vec<u8>>` to avoid an intermediate copy of the reconstructed secret.
crate/server/src/core/operations/join_split_key.rs:567
↓ 1 callersFunctionbuild_request_buildRequest
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersMethodbuild_response
(&self, replacements: &[ReplacementObject; 2])
crate/server/src/core/operations/rekey/keypair/sql.rs:205
↓ 1 callersFunctionbuild_set_args
Build the CLI args for setting a specific attribute combination.
crate/clients/ckms/src/tests/attributes/test_set_attribute.rs:71
↓ 1 callersFunctionbuild_ssl_connector
Build an `SslConnectorBuilder` from the HTTP client configuration. This replaces the former `reqwest`-based TLS builder. OpenSSL is used exclusively,
crate/clients/client/src/http_client/tls.rs:63
↓ 1 callersFunctionbuild_symmetric_key_from_bytes
( cryptographic_algorithm: CryptographicAlgorithm, bytes: Zeroizing<Vec<u8>>, )
crate/clients/client_utils/src/import_utils.rs:169
↓ 1 callersFunctionbuild_x25519_shared_secret_attributes
(uid: &str, request_attributes: &Attributes)
crate/server/src/core/operations/derive_key.rs:799
↓ 1 callersFunctionbuild_x25519_shared_secret_object
(shared_secret: &[u8], attributes: &Attributes)
crate/server/src/core/operations/derive_key.rs:813
↓ 1 callersMethodbulk_decrypt
Decrypt multiple LEB128-serialized payloads The input encrypted data is serialized using LEB128 (bulk mode). Each chunk of data is decrypted and seri
crate/crypto/src/crypto/cover_crypt/decryption.rs:108
↓ 1 callersMethodbulk_encrypt
Encrypt multiple LEB128-serialized payloads The input plaintext data is serialized using LEB128 (bulk mode). Each chunk of data is encrypted and ser
crate/crypto/src/crypto/cover_crypt/encryption.rs:67
↓ 1 callersFunctionbyteLength
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctionbytes
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctionbytes_from
(node: &TTLV)
crate/kmip/src/ttlv/normalize.rs:25
↓ 1 callersMethodcache_object_handle
Pre-populate the object handle cache with a known object_id-to-handle mapping. Called during `find()` to ensure that subsequent `get_object_handle()`
crate/hsm/base_hsm/src/session/session_impl.rs:321
↓ 1 callersFunctioncachedHashString
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncached_crl_is_usable
Return `true` if cached CRL bytes may still be used.
crate/server/src/core/operations/validate.rs:75
↓ 1 callersFunctioncall
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncallFn
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncall_find_objects
(func_list: &CK_FUNCTION_LIST, session: CK_SESSION_HANDLE)
crate/clients/clap/src/actions/pkcs11/verify.rs:652
↓ 1 callersFunctioncall_get_function_list_3_0
Resolves the v3.0 `CK_FUNCTION_LIST_3_0` function table via `C_GetInterface` (default lookup). The legacy `C_GetFunctionList` entry point only returns
crate/clients/clap/src/actions/pkcs11/verify.rs:366
↓ 1 callersFunctioncall_get_info
Calls `C_GetInfo` and asserts the reported `cryptokiVersion` is v3.x — a hard requirement for this provider, which only ever advertises v3.1 support.
crate/clients/clap/src/actions/pkcs11/verify.rs:529
↓ 1 callersMethodcall_ssm
Build a SigV4-signed request and call the SSM `GetParameter` API.
crate/server/src/config/command_line/secret_backends/aws.rs:27
↓ 1 callersFunctioncall_verify_interfaces
Exercises the v3.0 Interfaces API surface: `C_GetInterfaceList` (two-call convention) and `C_GetInterface` (default lookup, exact-name lookup, backwar
crate/clients/clap/src/actions/pkcs11/verify.rs:405
↓ 1 callersFunctioncall_verify_mechanisms
Enumerates the mechanism list for `slot_id` and asserts that every mechanism in [`REQUIRED_MECHANISMS`] is both advertised and reports the expected ca
crate/clients/clap/src/actions/pkcs11/verify.rs:586
↓ 1 callersMethodcall_verify_message
(&self, data: &[u8], signature: &[u8])
crate/hsm/base_hsm/src/session/message_verify.rs:66
↓ 1 callersFunctioncall_verify_profiles
Verifies PKCS#11 v3.0 profile self-declaration (§4.5): at least one `CKO_PROFILE` object must be discoverable, and each one's `CKA_PROFILE_ID` must be
crate/clients/clap/src/actions/pkcs11/verify.rs:762
↓ 1 callersFunctioncallback
( req: HttpRequest, session: Session, oidc_runtime: web::Data<OidcRuntimeConfig>, kms_url: web
crate/server/src/routes/ui_auth.rs:108
↓ 1 callersFunctioncaller_gcm_iv_allowed
(c: &AesGcmCapabilities)
crate/hsm/base_hsm/src/session/session_impl.rs:195
↓ 1 callersMethodcanDereference
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncanonical_bytes
(event: &AuditEvent)
crate/access/src/audit/hash.rs:101
↓ 1 callersFunctioncaptureSegment
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncaptureTagName
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersMethodcapture_encrypt_request_aad
Capture the AAD bytes of any Encrypt request (if present) before sending so we can associate it with the subsequent `EncryptResponse` artifacts.
crate/clients/clap/src/tests/xml/request.rs:189
↓ 1 callersFunctioncapture_real_uids_from_response
Capture real UIDs from responses and store them in the placeholder map for future use
crate/clients/clap/src/tests/xml/expected_response.rs:63
↓ 1 callersFunctioncastCap
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncastFixed
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncastRearg
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncc_master_keypair_from_kmip_objects
( msk: &Object, mpk: &Object, )
crate/crypto/src/crypto/cover_crypt/master_keys.rs:159
↓ 1 callersFunctioncek_to_kmip_object
Wrap raw CEK bytes in a minimal [`Object::SymmetricKey`] for storage in `UnwrappedCache`. Returns `None` and logs a warning on construction failure (
crate/server/src/routes/jose/cek_cache.rs:65
↓ 1 callersFunctioncert_rep_attrs
( kms: &KMS, request: &ParsedPkiMessage, status: u8, fail_info: Option<u8>, )
crate/server/src/routes/scep/pki_operation.rs:258
↓ 1 callersFunctioncert_san_set
`GeneralName`s of the `SubjectAltName` carried by a certificate.
crate/server/src/routes/enrollment.rs:630
↓ 1 callersMethodcertificate
(&self)
crate/server/src/core/operations/certify/issuer.rs:60
↓ 1 callersFunctioncertificate_attribute
( cert: &dyn Certificate, type_: AttributeType, )
crate/clients/pkcs11/module/src/core/object.rs:163
↓ 1 callersFunctioncertificate_attributes_to_subject_name
Get the OpenSSL `X509Name` for the subject
crate/crypto/src/openssl/certificate.rs:156
↓ 1 callersFunctioncertificate_by_uid
Fetches a certificate and its current internal KMS lifecycle state. If it fails, returns the according error.
crate/server/src/core/operations/validate.rs:968
↓ 1 callersFunctioncertificate_uids
UIDs of every certificate object in the database.
crate/server/src/tests/enrollment_tests.rs:1456
↓ 1 callersFunctioncertificates_by_uid
If fetching a certificate fails, the method reports the first error happening. Otherwise it returns a vector of (DER bytes, internal KMS lifecycle sta
crate/server/src/core/operations/validate.rs:949
↓ 1 callersMethodcertification_source
Select what to certify, in priority order: a certificate signing request, a public key id, an existing certificate id to re-certify, or a key pair to
crate/clients/clap/src/actions/certificates/certify.rs:204
↓ 1 callersFunctioncertify
Certify a certificate. This operation is used to issue a certificate based on a public key, a CSR or a key pair. The certificate can be self-signed or
crate/server/src/core/operations/certify/certify_op.rs:41
↓ 1 callersFunctioncfg
()
crate/hsm/gcp_cloud_hsm/src/tests.rs:9
↓ 1 callersFunctioncfg
()
crate/hsm/azure_cloud_hsm/src/tests.rs:9
↓ 1 callersFunctionchacha20_params
()
crate/clients/clap/src/actions/bench/helpers.rs:191
↓ 1 callersFunctioncharFromCodepoint
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncheck
()
ui/tests/e2e/locate-attributes.spec.ts:88
↓ 1 callersFunctioncheck
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersMethodcheck
(&self)
crate/server_database/src/core/mod.rs:369
↓ 1 callersMethodcheck
Check if a Managed Object may be used under server policy with given parameters.
crate/clients/client/src/kms_rest_client.rs:722
↓ 1 callersFunctioncheckFips
()
ui/src/actions/Keys/DeriveKey.tsx:77
↓ 1 callersFunctioncheckForUpdates
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncheckInt
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncheckOffset
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctioncheck_alg
(alg: Algorithm)
crate/server/src/middlewares/jwt/jwt_config.rs:464
↓ 1 callersFunctioncheck_apple_envelope
(envelope: &[u8], ca_key: &PKey<Private>, ca: &X509)
crate/server/src/tests/enrollment_tests.rs:1078
↓ 1 callersFunctioncheck_approle_response
Check a `reqwest::Response` for success, returning it as-is on success or a [`KmsCliError`] with the operation name and response body on failure.
crate/clients/clap/src/actions/vault/approle.rs:152
↓ 1 callersFunctioncheck_basic
(kms: &KMS, req: &HttpRequest)
crate/server/src/routes/est/enroll.rs:133
↓ 1 callersFunctioncheck_block_cipher_mode_in_encryption_key_information
The purpose of this function is to check the block cipher mode in the encryption key information against the wrapping key It verifies the `BlockCipher
crate/crypto/src/crypto/wrap/wrap_key.rs:67
↓ 1 callersFunctioncheck_eddsa_sign_and_verify_round_trip
( hsm: &BaseHsm<P>, cfg: &HsmTestConfig, )
crate/hsm/base_hsm/src/tests_shared.rs:1946
↓ 1 callersMethodcheck_ekus
(&self, requested: Option<&[String]>)
crate/server/src/core/operations/certify/template.rs:455
↓ 1 callersFunctioncheck_envelope_algorithms
Refuse a `pkcsPKIEnvelope` whose algorithms are outside the SCEP allow-lists. OpenSSL has no getter for `contentEncryptionAlgorithm`, so the DER is w
crate/crypto/src/openssl/scep_cms.rs:259
↓ 1 callersFunctioncheck_found
Compare the uids of `rows` with `expected`, duplicates included.
crate/server_database/src/tests/database_tests.rs:728
↓ 1 callersFunctioncheck_hkdf_derive
(hsm: &BaseHsm<P>, cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:1968
↓ 1 callersFunctioncheck_internal_certificate_states
Verify that every certificate in the chain the KMS holds a record for is currently `Active` or `PreActive`. This is what lets [`validate_operation`]
crate/server/src/core/operations/validate.rs:1077
↓ 1 callersFunctioncheck_jwt_algorithm
(alg: Algorithm)
crate/server/src/middlewares/jwt/jwt_config.rs:48
↓ 1 callersFunctioncheck_key_compromised
Check if key state changed to compromised
crate/server/src/tests/ttlv_tests/normative_tests/aklc_m_3_14.rs:537
↓ 1 callersFunctioncheck_message_based_aes_gcm_round_trip
( hsm: &BaseHsm<P>, cfg: &HsmTestConfig, )
crate/hsm/base_hsm/src/tests_shared.rs:2002
↓ 1 callersFunctioncheck_operation_policy_name
Send a KMIP 1.0 `GetAttributes` for `"Operation Policy Name"` and verify the round-tripped value matches the original.
crate/server/src/tests/ttlv_tests/register_operation_policy_name_1_0.rs:140
↓ 1 callersFunctioncheck_pkcs11_v3_interface_list_is_populated
(hsm: &BaseHsm<P>)
crate/hsm/base_hsm/src/tests_shared.rs:1924
↓ 1 callersFunctioncheck_public_and_private_key_linked
( owner_client_conf_path: &str, public_key_id: &str, public_key_attributes: &Attributes, )
crate/clients/ckms/src/tests/certificates/certify.rs:492
↓ 1 callersMethodcheck_public_key
(&self, public_key: &PKey<Public>)
crate/server/src/core/operations/certify/template.rs:417
↓ 1 callersFunctioncheck_public_key_state
FIXME: Cosmian makes them compromised by default when the private key is compromised Check public key state
crate/server/src/tests/ttlv_tests/normative_tests/aklc_m_3_14.rs:594
↓ 1 callersFunctioncheck_requested_extensions
Refuse every CSR-requested extension that is not in [`ALLOWED_CSR_EXTENSIONS`], any keyUsage that lets the certificate sign certificates or CRLs, and
crate/server/src/core/operations/certify/template.rs:275
↓ 1 callersFunctioncheck_rsa_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`, rais
crate/crypto/src/crypto/rsa/operation.rs:34
↓ 1 callersFunctioncheck_rsa_mask_compliance
Check that `mask` is compliant with FIPS restrictions for private and public key components. For example an RSA pubic key must not be used for decrypt
crate/crypto/src/crypto/rsa/operation.rs:68
↓ 1 callersFunctioncheck_rv_raw
Internal variant used in contexts that return `Result<_, String>`.
crate/clients/clap/src/actions/pkcs11/verify.rs:824
↓ 1 callersMethodcheck_sans
SANs are default-deny: a SAN type is accepted only when the template has a pattern for it, or when the template sets `allow_any_identity = true` and n
crate/server/src/core/operations/certify/template.rs:513
↓ 1 callersFunctioncheck_set_delete_attributes
Check the full set/get/delete cycle for a given key.
crate/clients/ckms/src/tests/attributes/test_set_attribute.rs:180
↓ 1 callersMethodcheck_subject
(&self, csr: &X509Req)
crate/server/src/core/operations/certify/template.rs:474
↓ 1 callersFunctioncheck_vault_token
Extract and validate the `X-Vault-Token` header from an incoming request. Returns: - [`VaultTokenResult::Valid`] — header present, token accepted by
crate/server/src/middlewares/spire_token.rs:229
↓ 1 callersMethodcheckin
Return a successfully used session to its slot pool.
crate/hsm/base_hsm/src/slots.rs:174
↓ 1 callersFunctionchooseScalarStyle
(s,o,i,u,_,w,x,C)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctionck
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previousnext →3,501–3,600 of 12,829, ranked by callers