MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 8 callersMethodzeroize
(&mut self)
crate/crypto/src/crypto/secret.rs:82
↓ 7 callersFunctionVb
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionXi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodalphabet_len
(&self)
crate/crypto/src/crypto/fpe/alphabet.rs:197
↓ 7 callersMethodapply_default_headers
Apply the client's default headers to a request builder.
crate/clients/client/src/http_client/client.rs:420
↓ 7 callersFunctionapply_test_db_override
Override the database backend used by `start_default_test_kms_server` via the `KMS_TEST_DB` environment variable. | `KMS_TEST_DB` value
crate/test_kms_server/src/test_server.rs:204
↓ 7 callersFunctionassertNotInfinite
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodassert_lock_released
(&self)
crate/server_database/src/tests/redis_migration_tests.rs:157
↓ 7 callersFunctionassert_no_marker
Fails if `text` contains the marker in any form a derived `Debug`/`Display` or a hex/JSON dump could produce.
crate/kmip/src/ttlv/tests/redaction.rs:96
↓ 7 callersMethodattributes
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:102
↓ 7 callersFunctionauthenticate_auth_verifier_session_cookie
Validate an Auth Verifier `_ea_` session cookie and return the authenticated user. Unlike bearer tokens, a browser cookie is sent ambiently, so the t
crate/server/src/middlewares/auth_verifier/token.rs:121
↓ 7 callersFunctionaws_params
()
crate/server/src/routes/aws_xks/sigv4.rs:362
↓ 7 callersFunctionb64_encode
Helper: encode bytes as base64url without padding.
crate/server/src/routes/jose/error.rs:132
↓ 7 callersFunctionbench_op
Benchmark a single KMIP operation under a plain (unparameterized) label. The operation is serialized **once**; every criterion iteration then measure
crate/clients/clap/src/actions/bench/transport.rs:234
↓ 7 callersFunctionbuild_google_cse_url
Builds the full Google CSE KACLS URL using the base KMS public URL. This function constructs a URL like `https://<kms_public_url>/google_cse` by retr
crate/server/src/routes/google_cse/mod.rs:77
↓ 7 callersFunctioncache
()
crate/server_database/src/core/rotate_name_cache.rs:241
↓ 7 callersFunctioncache
(max_age: Duration)
crate/server_database/src/core/object_cache.rs:206
↓ 7 callersFunctioncaptured_logs
Runs `f` with a trace-level capturing subscriber and returns everything it logged.
crate/kmip/src/ttlv/tests/redaction.rs:88
↓ 7 callersFunctioncc_rekey_ttlv_request
( master_secret_key_id: &str, action: &CoverCryptRekeyAction, )
crate/clients/wasm/src/wasm.rs:2052
↓ 7 callersFunctioncertify
Issue an RSA-2048 (FIPS-approved) certificate via KMIP `Certify`.
crate/server/src/tests/test_validate.rs:1325
↓ 7 callersFunctioncfg
()
crate/hsm/crypt2pay/src/tests.rs:20
↓ 7 callersFunctionckm_rsa_pkcs_oaep_key_wrap
Key Wrap using `CKM_RSA_PKCS_OAEP` a.k.a PKCS #1 RSA OAEP as specified in PKCS#11 v2.40 available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:44
↓ 7 callersFunctionclaim
(sub: Option<&str>, email: Option<&str>)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:283
↓ 7 callersFunctioncompute_hash
(token: &str)
crate/server/src/middlewares/spire_token.rs:467
↓ 7 callersMethodcontext
(self, context: &str)
crate/clients/pkcs11/module/src/error/result.rs:13
↓ 7 callersFunctioncopy_fixture
(version: &str)
crate/server_database/src/tests/sqlite_migration_tests.rs:35
↓ 7 callersFunctioncreateEcKeyPair
(page: Page, curve = "NIST P-256")
ui/tests/e2e/helpers.ts:403
↓ 7 callersFunctioncreate_aes_key
Create an AES-256 key and return its UID.
crate/server/src/tests/jose/key_state.rs:39
↓ 7 callersFunctioncreate_ec_ssh_keypair
( kms_rest_client: &KmsClient, curve: RecommendedCurve, )
crate/clients/pkcs11/provider/src/tests.rs:720
↓ 7 callersFunctioncreate_ecdh_ec_key_pair_rest
Generate an EC key pair for ECDH-ES via `POST /v1/crypto/keys` and return `(kid_private, kid_public, x_b64, y_b64)`. The key pair is auto-tagged for
crate/server/src/tests/jose/common.rs:195
↓ 7 callersFunctioncreate_rsa_key_pair_rest
Generate an RSA key pair via `POST /v1/crypto/keys` and return `(kid_private, kid_public)`. Uses the REST endpoint (dogfoods `/v1/crypto/keys`) rathe
crate/server/src/tests/jose/common.rs:273
↓ 7 callersMethodcreate_split_key
This operation requests the server to split an existing Managed Cryptographic Object into N parts, each stored as a `SplitKey` KMIP object. KMIP 2.1 §
crate/server/src/core/kms/kmip.rs:135
↓ 7 callersFunctioncsr_with
( key: &PKey<Private>, cn: &str, eku: Option<ExtendedKeyUsage>, dns: Option<&s
crate/server/src/core/operations/certify/template.rs:591
↓ 7 callersFunctiondecrypt
( kms: &KMS, request: Decrypt, user: &UserId, )
crate/server/src/core/operations/decrypt.rs:312
↓ 7 callersFunctiondecrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/cover_crypt/encrypt_decrypt.rs:54
↓ 7 callersFunctiondecrypt_envelope
Decrypt a CMS `EnvelopedData` addressed to `cert` with its private key. Only AES-CBC content encryption and RSA key transport (RSAES-OAEP only in FIP
crate/crypto/src/openssl/scep_cms.rs:224
↓ 7 callersFunctiondestroy_key
Destroy the key designated by `key_id` (or `tags`) once a pre-flight check confirms its object type is one of `allowed_types`. `expected` completes t
crate/clients/clap/src/actions/shared/utils/destroy_utils.rs:29
↓ 7 callersFunctionec_key
()
crate/clients/clap/src/actions/audit.rs:1349
↓ 7 callersMethodec_raw_bytes
Extract the raw bytes from the EC key material. These bytes are the same as the ones in openssl rwa bytes
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:404
↓ 7 callersFunctionecdsa_sign
ECDSA signature helper: in non-fips builds P-256 and secp256k1 are signed deterministically (RFC 6979) — P-256 via OpenSSL's deterministic nonce mode
crate/crypto/src/crypto/elliptic_curves/sign.rs:32
↓ 7 callersFunctionecdsa_verify
( verification_key: &PKey<Public>, data: &[u8], signature: &[u8], crypto_params: &Cryptographi
crate/crypto/src/crypto/elliptic_curves/verify.rs:22
↓ 7 callersFunctionencrypt
Encrypts a file using the given public key and access policy.
crate/clients/ckms/src/tests/cover_crypt/encrypt_decrypt.rs:20
↓ 7 callersFunctionencrypt_data
Helper: encrypt data using a key. Returns the full ciphertext as `iv || ciphertext || tag` — the format expected by the decrypt oracle in `decrypt_us
crate/server/src/tests/hsm/permissions.rs:100
↓ 7 callersFunctionencrypt_request
(arn: &str, plaintext: &[u8])
crate/server/src/routes/aws_xks/tests.rs:120
↓ 7 callersMethodencrypt_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, data: &[u
crate/hsm/base_hsm/src/session/session_impl.rs:1764
↓ 7 callersFunctionensure_auth_middleware
Creates the authentication fallback middleware. Ensures that every request reaching this middleware carries an [`AuthenticatedUser`]: - Rejects exter
crate/server/src/middlewares/ensure_auth.rs:29
↓ 7 callersFunctionensure_url_string
Resolve the database URL from the command-line option or an environment variable, returning the raw string. This avoids `Url::parse()` which cannot h
crate/server/src/config/command_line/db.rs:330
↓ 7 callersFunctionexecute_rekey
Execute the full rotation pipeline using a [`RekeyOperation`] implementor. Generate and prepare in memory, then publish replacements and retire the s
crate/server/src/core/operations/rekey/common.rs:515
↓ 7 callersMethodexport
This operation requests that the server returns a Managed Object specified by its Unique Identifier, together with its attributes. The Key Format Type
crate/server/src/core/kms/kmip.rs:308
↓ 7 callersFunctionextract_key_bytes_ref
Extract raw key bytes from any supported KMIP object type. Used both by `CreateSplitKey` (to extract the source key's bytes) and by `JoinSplitKey` wh
crate/server/src/core/operations/create_split_key.rs:632
↓ 7 callersFunctionextract_unique_identifier
Extract the imported key id
crate/clients/ckms/src/tests/utils/extract_uids.rs:38
↓ 7 callersMethodfinalize
Apply replacement attributes, lifecycle setup, and tag extraction to this key slot. Combines [`setup_new_key`] + attribute/tag extraction into a sing
crate/server/src/core/operations/rekey/common.rs:389
↓ 7 callersMethodfinalize_decryption
(&mut self, tag: &[u8])
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:1272
↓ 7 callersMethodfinalize_encryption
Finalize the encryption and return the ciphertext and the tag.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:1220
↓ 7 callersFunctionfixture_session
Builds a `Session` directly against a fixture library, bypassing `SlotManager` (which the fixtures do not implement enough of `C_GetSlotList` et al. t
crate/hsm/base_hsm/src/test_fixtures.rs:157
↓ 7 callersMethodgenerate_ec_key_pair
Generate an EC key pair and return the private and public key handles in this order. FIPS-approved NIST prime curves (P-224/P-256/P-384/P-521) and th
crate/hsm/base_hsm/src/session/ec.rs:189
↓ 7 callersFunctiongenerate_openpgp_secret_key
Armored Transferable Secret Key, RFC 9580 v4.
crate/crypto/src/crypto/openpgp/mod.rs:549
↓ 7 callersMethodgenerate_sensitive_aes_key
Generate a sensitive AES key using `CKA_EXTRACTABLE=false`, without setting `CKA_SENSITIVE`: AWS `CloudHSM` rejects any explicit value for the Sensiti
crate/hsm/base_hsm/src/session/aes.rs:64
↓ 7 callersMethodget
Send an HTTP GET request. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:431
↓ 7 callersMethodget_available_slot_list
(&self)
crate/interfaces/src/hsm/interface.rs:704
↓ 7 callersFunctionget_crl_bytes
Retrieves Certificate Revocation List (CRL) bytes from a list of URIs. In production, only `http://` and `https://` URIs are fetched. All other URI t
crate/server/src/core/operations/validate.rs:802
↓ 7 callersFunctionget_hsm_model
()
crate/server/src/tests/hsm/test_helpers.rs:37
↓ 7 callersFunctionget_hsm_slot_id
Read the HSM slot id from the `HSM_SLOT_ID` environment variable.
crate/test_kms_server/src/test_server.rs:618
↓ 7 callersMethodget_no_ttlv
( &self, endpoint: &str, data: Option<&O>, )
crate/clients/client/src/kms_rest_client.rs:857
↓ 7 callersFunctionhandle_google_cse_rsa_keypair
Handles the creation or import of RSA keypair used for Google Client-Side Encryption (CSE). This function ensures that the required RSA keypair exist
crate/server/src/start_kms_server.rs:137
↓ 7 callersMethodheaders
(&self)
crate/clients/client/src/http_client/client.rs:238
↓ 7 callersFunctionhex_to_key
(hex_str: &str)
crate/crypto/src/crypto/fpe/ff1.rs:620
↓ 7 callersFunctionhsm_cannot_generate_gcm_iv
()
crate/server/src/tests/hsm/test_helpers.rs:73
↓ 7 callersMethodhsm_lib
Get a reference to the underlying `HsmLib` for direct PKCS#11 function calls.
crate/hsm/base_hsm/src/base_hsm.rs:156
↓ 7 callersMethodhsm_parts
Parse the components of an HSM key UID (`{prefix}::{slot}::{base_id}[@N]`). This is the single source of truth for HSM UID parsing; callers that need
crate/interfaces/src/object_handle.rs:68
↓ 7 callersMethodidentify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionimport_encrypt_decrypt
( filename: &str, encryption_algorithm: Option<RsaEncryptionAlgorithm>, )
crate/clients/ckms/src/tests/certificates/encrypt.rs:208
↓ 7 callersFunctionisFunc
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionisObject
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionisOrdered
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodis_object_owned_by
(&self, _: &str, _: &UserId)
crate/server/src/core/operations/locate.rs:329
↓ 7 callersFunctionjg
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodjose_create_key
Create a cryptographic key via the JOSE REST endpoint. This is a convenience wrapper around `POST /v1/crypto/keys`.
crate/clients/client/src/jose.rs:190
↓ 7 callersFunctionjson_request
A JSON request authenticated as `user` by [`inject_test_user`].
crate/server/src/routes/ssh/mod.rs:437
↓ 7 callersFunctionkey
(fill: u8)
crate/server_database/src/core/database_objects.rs:2243
↓ 7 callersFunctionkey
(fill: u8)
crate/server_database/src/core/unwrapped_cache.rs:497
↓ 7 callersMethodkey_size
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:419
↓ 7 callersMethodkey_wrapping_data
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:427
↓ 7 callersFunctionkmip_node
(tag, type_name, value)
ansible/plugins/module_utils/kms_api.py:24
↓ 7 callersFunctionkmip_structure
(tag, children)
ansible/plugins/module_utils/kms_api.py:28
↓ 7 callersFunctionlen_u32
Converts a buffer length to the `u32` the `NCrypt` ABI expects.
crate/clients/clap/src/actions/cng_verify.rs:22
↓ 7 callersFunctionlinked_id_str
Borrow the text of a linked object identifier when it is a text string (the usual case), allocating only for the numeric/enumeration forms.
crate/server/src/core/certificate/find.rs:411
↓ 7 callersMethodlist_user_operations_granted
List all the KMIP operations granted to the `user` on all the objects in the database (i.e. the objects for which `user` is not the owner) The result
crate/server_database/src/core/database_permissions.rs:20
↓ 7 callersMethodmac_verify
( &self, request: MACVerify, user: &UserId, )
crate/server/src/core/kms/kmip.rs:590
↓ 7 callersFunctionmessage
( kms: &KMS, request: RequestMessage, user: &UserId, )
crate/server/src/core/operations/message.rs:439
↓ 7 callersFunctionmigration_authz_token
A KACLS migration authorization token: `role` is `migrator` (rewrap) or `verifier` (digest).
crate/server/src/tests/google_cse/utils.rs:293
↓ 7 callersFunctionml_dsa_verify
Verify a signature using an ML-DSA public key.
crate/crypto/src/crypto/pqc/ml_dsa.rs:57
↓ 7 callersMethodmodify_attribute
This operation requests the server to modify a single attribute on an existing Managed Object. Per KMIP spec §3.22, modifying `ActivationDate` on a Pr
crate/server/src/core/kms/kmip.rs:704
↓ 7 callersMethodname
(&self)
crate/server/src/core/audit/store.rs:1318
↓ 7 callersFunctionncrypt_length_property
()
crate/clients/clap/src/actions/cng_verify.rs:85
↓ 7 callersFunctionnormalizeArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionnow_usize
()
crate/server/src/routes/google_cse/jwt.rs:739
↓ 7 callersFunctionopen_ssh_public_key
(key: &PKey<Public>)
crate/server/src/routes/ssh/certificate.rs:125
↓ 7 callersFunctionopenpgp_decrypt
Accepts binary or armored message. Errors if the key is public-only or passphrase-protected, or if the decrypted plaintext exceeds [`MAX_OPENPGP_PLAIN
crate/crypto/src/crypto/openpgp/mod.rs:737
↓ 7 callersFunctionparse_jwks
Fetch a JWKS from the provided URI and parse it. This function will log errors for invalid JWKs but it will not stop the process if one fails. It ret
crate/server/src/middlewares/jwt/jwks.rs:295
← previousnext →901–1,000 of 16,000, ranked by callers