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
↓ 8 callers
Method
retrieve_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 callers
Function
revoke_cert
Revoke a certificate using the given reason code.
crate/test_kms_server/src/crl_tests.rs:30
↓ 8 callers
Function
revoke_key
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:386
↓ 8 callers
Function
run
(args: &[&str], config: KmsClientConfig)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:21
↓ 8 callers
Method
serialize_field
(&mut self, value: &T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:654
↓ 8 callers
Method
set_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 callers
Function
setup_openssl_fips_provider
Helper to load FIPS provider before each test (if needed)
crate/crypto/src/crypto/symmetric/rfc5649.rs:128
↓ 8 callers
Function
sign
(key: &TestKey, kid: &str, alg: Algorithm, claims: &Value)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:549
↓ 8 callers
Method
tag
(&self)
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1427
↓ 8 callers
Function
test_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 callers
Method
to_cryptographic_parameters
(self, hash_fn: HashFn)
crate/clients/client_utils/src/rsa_utils.rs:22
↓ 8 callers
Method
to_security_status
(&self)
crate/clients/cng/src/error.rs:75
↓ 8 callers
Method
track
(&mut self, id: impl Into<String>)
crate/test_kms_server/src/certify_tests.rs:36
↓ 8 callers
Function
uploadFile
(page: Page, filePath: string)
ui/tests/e2e/helpers.ts:465
↓ 8 callers
Method
upsert
Insert the object
crate/clients/pkcs11/module/src/objects_store.rs:55
↓ 8 callers
Function
uriToPointer
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
useIsExpanded
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
useIsExpandedDeeply
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
wrap_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 callers
Function
xor_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 callers
Function
Vb
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
Xi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Method
add_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 callers
Method
alphabet_len
(&self)
crate/crypto/src/crypto/fpe/alphabet.rs:202
↓ 7 callers
Function
assertNotInfinite
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
authenticate_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 callers
Function
b64_encode
Helper: encode bytes as base64url without padding.
crate/server/src/routes/jose/error.rs:132
↓ 7 callers
Function
b64url
(data: &[u8])
crate/clients/client/src/jose.rs:10
↓ 7 callers
Function
bench_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 callers
Function
build_crl
( issuer_cert: &X509Ref, issuer_key: &PKeyRef<Private>, revoked_entries: &[RevokedEntry], crl_
crate/crypto/src/openssl/crl.rs:74
↓ 7 callers
Function
cache
()
crate/server_database/src/core/rotate_name_cache.rs:241
↓ 7 callers
Function
cache
(max_age: Duration)
crate/server_database/src/core/object_cache.rs:213
↓ 7 callers
Function
ck_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 callers
Function
ckm_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 callers
Function
clients
Two clients sharing one Redis database (and master key), flushed first.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:47
↓ 7 callers
Function
compute_hash
(token: &str)
crate/server/src/middlewares/spire_token.rs:453
↓ 7 callers
Function
config_only_co_kms
(co_users: Vec<String>)
crate/server/src/tests/key_ceremony_tests.rs:118
↓ 7 callers
Method
context
(self, context: &str)
crate/server_database/src/error/result.rs:19
↓ 7 callers
Method
context
(self, context: &str)
crate/clients/client/src/error/result.rs:21
↓ 7 callers
Function
create
(kms: &KMS, request: Create, owner: &UserId)
crate/server/src/core/operations/create.rs:21
↓ 7 callers
Function
createEcKeyPair
(page: Page, curve = "NIST P-256")
ui/tests/e2e/helpers.ts:403
↓ 7 callers
Function
create_ec_ssh_keypair
( kms_rest_client: &KmsClient, curve: RecommendedCurve, )
crate/clients/pkcs11/provider/src/tests.rs:517
↓ 7 callers
Function
create_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 callers
Function
create_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 callers
Function
csr_with
( key: &PKey<Private>, cn: &str, eku: Option<ExtendedKeyUsage>, dns: Option<&s
crate/server/src/core/operations/certify/template.rs:594
↓ 7 callers
Function
decrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/cover_crypt/encrypt_decrypt.rs:54
↓ 7 callers
Method
decrypt
( &self, tweak: &[u8], x: &NS, )
crate/crypto/src/crypto/fpe/ff1.rs:427
↓ 7 callers
Function
decrypt_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 callers
Function
destroy_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 callers
Function
digest
( request: Json<DigestRequest>, cse_config: Data<Option<GoogleCseConfig>>, kms: Data<Arc<KMS>>, )
crate/server/src/routes/google_cse/mod.rs:138
↓ 7 callers
Method
disable_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 callers
Method
ec_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 callers
Method
effective_state
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:126
↓ 7 callers
Function
encrypt
Encrypts a file using the given public key and access policy.
crate/clients/ckms/src/tests/cover_crypt/encrypt_decrypt.rs:20
↓ 7 callers
Function
encrypt_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 callers
Function
encrypt_request
(arn: &str, plaintext: &[u8])
crate/server/src/routes/aws_xks/tests.rs:126
↓ 7 callers
Function
enforce_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 callers
Function
enforce_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 callers
Function
ensure_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 callers
Function
extract_unique_identifier
Extract the imported key id
crate/clients/ckms/src/tests/utils/extract_uids.rs:37
↓ 7 callers
Function
fetch_crl_der
Fetch a CRL (DER format) for the given CA certificate ID.
crate/test_kms_server/src/crl_tests.rs:46
↓ 7 callers
Method
finalize
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 callers
Method
find
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 callers
Function
fixture_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 callers
Method
generate_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 callers
Function
generate_openpgp_secret_key
Armored Transferable Secret Key, RFC 9580 v4.
crate/crypto/src/crypto/openpgp/mod.rs:549
↓ 7 callers
Method
generate_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 callers
Method
get
Send an HTTP GET request. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:437
↓ 7 callers
Method
get_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 callers
Method
get_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 callers
Function
handle_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 callers
Method
identify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
import_encrypt_decrypt
( filename: &str, encryption_algorithm: Option<RsaEncryptionAlgorithm>, )
crate/clients/ckms/src/tests/certificates/encrypt.rs:208
↓ 7 callers
Method
invalidate_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 callers
Function
isFunc
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
isObject
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
isOrdered
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
jg
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
join_shares
Reconstruct from the given share UIDs; return the reconstructed key UID.
crate/server/src/tests/key_ceremony_tests.rs:164
↓ 7 callers
Function
key
(marker: u8)
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:56
↓ 7 callers
Method
key_wrapping_data
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:413
↓ 7 callers
Function
linked_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 callers
Function
live_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 callers
Method
name
(&self)
crate/server/src/core/audit/store.rs:1072
↓ 7 callers
Function
ncrypt_length_property
()
crate/clients/clap/src/actions/cng_verify.rs:86
↓ 7 callers
Method
next_u32
(&mut self)
crate/crypto/src/crypto/rng/mod.rs:232
↓ 7 callers
Function
normalizeArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
openpgp_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 callers
Function
parse_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 callers
Function
parse_mechanism
(mechanism: CK_MECHANISM)
crate/clients/pkcs11/module/src/core/mechanism.rs:108
↓ 7 callers
Function
parse_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 callers
Function
pqc_keygen_raw
( algorithm_name: &str, rng: Option<&KmsRng>, propquery: Option<&str>, )
crate/crypto/src/crypto/pqc/mod.rs:302
↓ 7 callers
Function
random_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 callers
Method
random_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 callers
Method
record_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 callers
Function
recover_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 callers
Method
reject
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Method
remove_link
Remove the link from the attributes
crate/kmip/src/kmip_2_1/kmip_attributes.rs:656
↓ 7 callers
Function
resolve_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 callers
Function
rsa_wide
()
crate/clients/clap/src/actions/cng_verify.rs:74
← previous
next →
701–800 of 12,829, ranked by callers