MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 8 callersMethodretrieve_objects
Retrieve objects from the database. The `object_handle` classifies the request identifier: an [`ObjectHandle::Tags`] expands to every object carrying
crate/server_database/src/core/database_objects.rs:240
↓ 8 callersFunctionrevoke_cert
Revoke a certificate using the given reason code.
crate/test_kms_server/src/crl_tests.rs:30
↓ 8 callersFunctionrevoke_key
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:386
↓ 8 callersFunctionrun
(args: &[&str], config: KmsClientConfig)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:21
↓ 8 callersMethodserialize_field
(&mut self, value: &T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:654
↓ 8 callersMethodset_vendor_attribute
Set a vendor attribute to the list of vendor attributes replacing one with an existing value if any This function will remove the vendor attribute if
crate/kmip/src/kmip_2_1/kmip_attributes.rs:569
↓ 8 callersFunctionsetup_openssl_fips_provider
Helper to load FIPS provider before each test (if needed)
crate/crypto/src/crypto/symmetric/rfc5649.rs:128
↓ 8 callersFunctionsign
(key: &TestKey, kid: &str, alg: Algorithm, claims: &Value)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:549
↓ 8 callersMethodtag
(&self)
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1427
↓ 8 callersFunctiontest_app_with_audit
Creates a test application that records every KMIP request to an audit file. Pass `AuditStore::start(path, 128)` for normal operation or `AuditStore:
crate/server/src/tests/test_utils.rs:444
↓ 8 callersMethodto_cryptographic_parameters
(self, hash_fn: HashFn)
crate/clients/client_utils/src/rsa_utils.rs:22
↓ 8 callersMethodto_security_status
(&self)
crate/clients/cng/src/error.rs:75
↓ 8 callersMethodtrack
(&mut self, id: impl Into<String>)
crate/test_kms_server/src/certify_tests.rs:36
↓ 8 callersFunctionuploadFile
(page: Page, filePath: string)
ui/tests/e2e/helpers.ts:465
↓ 8 callersMethodupsert
Insert the object
crate/clients/pkcs11/module/src/objects_store.rs:55
↓ 8 callersFunctionuriToPointer
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionuseIsExpanded
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionuseIsExpandedDeeply
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionwrap_object
Wrap an Object with a wrapping key The wrapping key is fetched from the database The key is wrapped using the wrapping key # Arguments `object` - the
crate/server/src/core/wrapping/wrap.rs:325
↓ 8 callersFunctionxor_split
Split `secret` into `total_parts` shares using XOR (*n*-of-*n* scheme). All `total_parts` shares are required to reconstruct the secret. The first `t
crate/crypto/src/crypto/split_key/mod.rs:32
↓ 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 callersMethodadd_attribute
This operation requests the server to add a new attribute instance to be associated with a Managed Object and set its value. The request contains the
crate/server/src/core/kms/kmip.rs:46
↓ 7 callersMethodalphabet_len
(&self)
crate/crypto/src/crypto/fpe/alphabet.rs:202
↓ 7 callersFunctionassertNotInfinite
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 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:145
↓ 7 callersFunctionb64_encode
Helper: encode bytes as base64url without padding.
crate/server/src/routes/jose/error.rs:132
↓ 7 callersFunctionb64url
(data: &[u8])
crate/clients/client/src/jose.rs:10
↓ 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:233
↓ 7 callersFunctionbuild_crl
( issuer_cert: &X509Ref, issuer_key: &PKeyRef<Private>, revoked_entries: &[RevokedEntry], crl_
crate/crypto/src/openssl/crl.rs:74
↓ 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:213
↓ 7 callersFunctionck_ulong
Fallible `usize -> CK_ULONG` conversion (mirrors the `pkcs11_verify` convention of never using `as` for length/size conversions across the FFI boundar
crate/clients/clap/src/actions/pkcs11/capabilities.rs:182
↓ 7 callersFunctionckm_rsa_pkcs_oaep_key_unwrap
Key Unwrap 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
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:136
↓ 7 callersFunctionclients
Two clients sharing one Redis database (and master key), flushed first.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:47
↓ 7 callersFunctioncompute_hash
(token: &str)
crate/server/src/middlewares/spire_token.rs:453
↓ 7 callersFunctionconfig_only_co_kms
(co_users: Vec<String>)
crate/server/src/tests/key_ceremony_tests.rs:118
↓ 7 callersMethodcontext
(self, context: &str)
crate/server_database/src/error/result.rs:19
↓ 7 callersMethodcontext
(self, context: &str)
crate/clients/client/src/error/result.rs:21
↓ 7 callersFunctioncreate
(kms: &KMS, request: Create, owner: &UserId)
crate/server/src/core/operations/create.rs:21
↓ 7 callersFunctioncreateEcKeyPair
(page: Page, curve = "NIST P-256")
ui/tests/e2e/helpers.ts:403
↓ 7 callersFunctioncreate_ec_ssh_keypair
( kms_rest_client: &KmsClient, curve: RecommendedCurve, )
crate/clients/pkcs11/provider/src/tests.rs:517
↓ 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:196
↓ 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:274
↓ 7 callersFunctioncsr_with
( key: &PKey<Private>, cn: &str, eku: Option<ExtendedKeyUsage>, dns: Option<&s
crate/server/src/core/operations/certify/template.rs:594
↓ 7 callersFunctiondecrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/cover_crypt/encrypt_decrypt.rs:54
↓ 7 callersMethoddecrypt
( &self, tweak: &[u8], x: &NS, )
crate/crypto/src/crypto/fpe/ff1.rs:427
↓ 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:243
↓ 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 callersFunctiondigest
( request: Json<DigestRequest>, cse_config: Data<Option<GoogleCseConfig>>, kms: Data<Arc<KMS>>, )
crate/server/src/routes/google_cse/mod.rs:138
↓ 7 callersMethoddisable_crypto_officer_ceremony
Disable an active Crypto Officer ceremony (revoke the DB activation record). Two revocation paths: - **Self-revoke** (`target_user = None`): the call
crate/server/src/core/kms/permissions.rs:416
↓ 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:403
↓ 7 callersMethodeffective_state
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:126
↓ 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:98
↓ 7 callersFunctionencrypt_request
(arn: &str, plaintext: &[u8])
crate/server/src/routes/aws_xks/tests.rs:126
↓ 7 callersFunctionenforce_kmip_algorithm_policy_for_public_key
Certify: the certified public key must satisfy the active algorithm policy. `attributes_hint` (the KMIP attributes of the key, when it is a KMS object
crate/server/src/core/operations/algorithm_policy.rs:208
↓ 7 callersFunctionenforce_kmip_algorithm_policy_for_retrieved_key
Policy check for a stored key before it is used. Attributes are the fast path. When one is missing, the `KeyBlock` algorithm and length (set from the
crate/server/src/core/operations/algorithm_policy.rs:422
↓ 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:333
↓ 7 callersFunctionextract_unique_identifier
Extract the imported key id
crate/clients/ckms/src/tests/utils/extract_uids.rs:37
↓ 7 callersFunctionfetch_crl_der
Fetch a CRL (DER format) for the given CA certificate ID.
crate/test_kms_server/src/crl_tests.rs:46
↓ 7 callersMethodfinalize
This function finalizes the login process. It returns the access token. This function should be called immediately after the user has been instructed
crate/clients/client/src/http_client/login.rs:175
↓ 7 callersMethodfind
Return uid, state and attributes of the object identified by its owner, and possibly by its attributes and/or its `state`
crate/server_database/src/core/database_objects.rs:448
↓ 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) are al
crate/hsm/base_hsm/src/session/ec.rs:201
↓ 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:437
↓ 7 callersMethodget_configured_conn
Helper to obtain a pooled connection and configure session settings consistently - Isolation level: READ COMMITTED (reduces deadlocks vs REPEATABLE RE
crate/server_database/src/stores/sql/mysql.rs:465
↓ 7 callersMethodget_supported_mechanisms
Retrieve the list of supported cryptographic mechanisms for this HSM slot. This function queries the HSM to determine which mechanisms (such as AES,
crate/hsm/base_hsm/src/slots.rs:288
↓ 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:123
↓ 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 callersMethodinvalidate_member
Invalidate every cached entry that may be affected by a local write to `uid`: entries for keyset `rotate_name` (when known) and any entry listing `uid
crate/server_database/src/core/rotate_name_cache.rs:196
↓ 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 callersFunctionjg
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionjoin_shares
Reconstruct from the given share UIDs; return the reconstructed key UID.
crate/server/src/tests/key_ceremony_tests.rs:164
↓ 7 callersFunctionkey
(marker: u8)
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:56
↓ 7 callersMethodkey_wrapping_data
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:413
↓ 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 callersFunctionlive_auth_verifier
A validator of a mock Auth Verifier on which every session is live.
crate/server/src/middlewares/auth_verifier/token.rs:399
↓ 7 callersMethodname
(&self)
crate/server/src/core/audit/store.rs:1072
↓ 7 callersFunctionncrypt_length_property
()
crate/clients/clap/src/actions/cng_verify.rs:86
↓ 7 callersMethodnext_u32
(&mut self)
crate/crypto/src/crypto/rng/mod.rs:232
↓ 7 callersFunctionnormalizeArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 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:280
↓ 7 callersFunctionparse_mechanism
(mechanism: CK_MECHANISM)
crate/clients/pkcs11/module/src/core/mechanism.rs:108
↓ 7 callersFunctionparse_secret_or_public
Parse an armored or binary key into either a `SignedSecretKey` or `SignedPublicKey`. Unprotected `EdDSA` secret keys exported by `GnuPG` whose 32-oct
crate/clients/client_utils/src/openpgp_format.rs:42
↓ 7 callersFunctionpqc_keygen_raw
( algorithm_name: &str, rng: Option<&KmsRng>, propquery: Option<&str>, )
crate/crypto/src/crypto/pqc/mod.rs:302
↓ 7 callersFunctionrandom_key
Generate a random key using a cryptographically secure random number generator that is suitable for use with FPE
crate/crypto/src/crypto/fpe/tests.rs:27
↓ 7 callersMethodrandom_vec
Generate a vector of random bytes with automatic zeroization. The returned `Zeroizing<Vec<u8>>` automatically zeros its contents when dropped, suitab
crate/crypto/src/crypto/rng/mod.rs:153
↓ 7 callersMethodrecord_kmip_operation
Record a KMIP operation. `user` is only ever used to update the in-process active-user tracker and, hashed, as the `kms.kmip.operations.per_user.tota
crate/server/src/core/otel_metrics.rs:358
↓ 7 callersFunctionrecover_tags
If the user specified tags, we will use these and remove them from the request. else we will use the tags with the object attributes If no tags are fo
crate/server/src/core/operations/import.rs:174
↓ 7 callersMethodreject
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodremove_link
Remove the link from the attributes
crate/kmip/src/kmip_2_1/kmip_attributes.rs:656
↓ 7 callersFunctionresolve_authenticated_user
Resolve an [`AuthenticatedUser`] from a successfully validated JWT claim set. `email` takes priority when present (standard OIDC/IdP flow, unchanged
crate/server/src/middlewares/jwt/jwt_token_auth.rs:111
↓ 7 callersFunctionrsa_wide
()
crate/clients/clap/src/actions/cng_verify.rs:74
← previousnext →701–800 of 12,829, ranked by callers