Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
16,000 in github.com/Cosmian/kms
⨍
Functions
16,000
◇
Types & classes
2,898
↓ 2 callers
Function
reject_auth_bypasses
Refuse the settings that switch a cloud-provider endpoint's authentication off, unless the KMS is built with the `insecure` feature.
crate/server/src/start_kms_server.rs:2329
↓ 2 callers
Function
reject_csr_basic_constraints
Reject a CSR that requests its own `basicConstraints` extension.
crate/server/src/routes/spire/pki.rs:389
↓ 2 callers
Function
reject_default_username_collision
The socket server does not go through `ensure_auth_middleware`: refuse a client certificate whose CN equals `default_username`, as the HTTP mTLS path
crate/server/src/socket_server.rs:649
↓ 2 callers
Function
reject_hsm_rotation_attributes
Reject rotation attributes in an HSM `Create` / `CreateKeyPair` request. HSM keys get keyset membership and a rotation schedule only through `SetAttr
crate/server/src/core/operations/attributes/policy.rs:43
↓ 2 callers
Function
reject_hsm_uid
Reject a Re-Key request when the UID refers to an HSM-managed key. HSM-managed keys have no KMIP attribute storage and are often non-extractable (`CK
crate/server/src/core/operations/rekey/common.rs:681
↓ 2 callers
Function
reject_inapplicable_attributes
KMIP 2.1 §4.14: Cryptographic Domain Parameters applies to Public/Private Keys only; setting it on a Symmetric Key or Secret Data is an `Invalid_Attri
crate/server/src/core/operations/create.rs:26
↓ 2 callers
Function
reject_unexpected_response
Fail a step that expected a transport error but received an HTTP response.
crate/test_kms_server/src/vector_runner.rs:556
↓ 2 callers
Function
reject_unsupported_options
Reject the Vault options this implementation does not support.
crate/server/src/routes/spire/transit_encryption.rs:177
↓ 2 callers
Function
rejection
(header: &str)
crate/server/src/middlewares/jwt/jwt_config.rs:407
↓ 2 callers
Function
rekey
KMIP `ReKey` operation for symmetric keys (KMIP 2.1 §6.1.46). - For regular (SQL) keys: generates fresh key material, handles wrapping, links generat
crate/server/src/core/operations/rekey/symmetric/mod.rs:35
↓ 2 callers
Function
rekey
(kms: &KMS, uid_str: &str, user: &str)
crate/server/src/tests/hsm/rotation.rs:220
↓ 2 callers
Function
rekey
( cli_conf_path: &str, master_secret_key_id: &str, access_policy: &str, )
crate/clients/ckms/src/tests/cover_crypt/rekey.rs:35
↓ 2 callers
Method
rekey
This request is used to generate a replacement key for an existing symmetric key. It is analogous to the Create operation, except that attributes of t
crate/clients/client/src/kms_rest_client.rs:579
↓ 2 callers
Function
rekey_ec_keypair
Rekey the EC keypair identified by `private_key_id`. Returns the new private key UID.
crate/clients/ckms/src/tests/elliptic_curve/rotation_policy.rs:42
↓ 2 callers
Function
rekey_edit_action_from_attributes
Extract an edit `Covercrypt` re-key action from attributes. If Covercrypt attributes are specified without an `EditPolicyAction`, a `RotateAttributes
crate/crypto/src/crypto/cover_crypt/attributes.rs:179
↓ 2 callers
Function
rekey_key_pair
(kms: &KMS, uid_str: &str)
crate/server/src/tests/hsm/rotation.rs:234
↓ 2 callers
Function
rekey_keypair
KMIP `ReKeyKeyPair` operation for asymmetric key pairs. Per KMIP 1.4 §4.5: - Creates a replacement key pair with new Unique Identifiers. - Sets `Repl
crate/server/src/core/operations/rekey/keypair/mod.rs:53
↓ 2 callers
Function
rekey_keypair_ttlv_request
( private_key_unique_identifier: String, )
crate/clients/wasm/src/wasm.rs:3203
↓ 2 callers
Function
rekey_rsa_keypair
Rekey the RSA keypair identified by `private_key_id`. Returns the new private key UID.
crate/clients/ckms/src/tests/rsa/rotation_policy.rs:45
↓ 2 callers
Function
rekey_ttlv_request
(unique_identifier: String)
crate/clients/wasm/src/wasm.rs:3189
↓ 2 callers
Method
release
(mut self: Box<Self>)
crate/server_database/src/stores/sql/mysql.rs:561
↓ 2 callers
Method
release
(self: Box<Self>)
crate/server_database/src/core/mod.rs:177
↓ 2 callers
Method
release_migration_lock
Deterministically release a migration lock that needs an async command before returning.
crate/server_database/src/stores/migrate.rs:302
↓ 2 callers
Method
remaining
(&self)
crate/kmip/src/kmip_2_1/kmip_types.rs:2285
↓ 2 callers
Method
remote_id
(&self)
crate/clients/pkcs11/module/src/sessions.rs:1244
↓ 2 callers
Function
renderMapPreview
(map: Map<any, any>)
ui/src/components/common/HashMapDisplay.tsx:85
↓ 2 callers
Method
repair_if_needed
(&mut self)
crate/server/src/core/audit/file_sink.rs:125
↓ 2 callers
Function
request
(curve: RecommendedCurve, usage: EcKeyUsage)
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:449
↓ 2 callers
Function
request_details
The operations of a request TTLV: every `BatchItem` of a `RequestMessage`, or the single operation itself.
crate/server/src/routes/kmip/audit.rs:164
↓ 2 callers
Function
requested_derived_object_id
(attributes: &Attributes)
crate/server/src/core/operations/derive_key.rs:681
↓ 2 callers
Function
requested_share_attributes
Attributes and user tags requested for the shares (KMIP 2.1 §6.1.10: the attributes of the split key take precedence, so they are merged without overw
crate/server/src/core/operations/create_split_key.rs:658
↓ 2 callers
Function
require_crypto_officer
(kms: &KMS, user: &UserId)
crate/server/src/routes/ssh/mod.rs:313
↓ 2 callers
Function
require_https_or_loopback
Fail unless `url` (the value of the configuration key `setting`) is `https://`, or `http://` towards a loopback host: credentials and session tokens m
crate/server/src/middlewares/auth_verifier/mod.rs:36
↓ 2 callers
Function
require_kms_response_data
(data: Option<T>, operation: &str)
crate/server/src/routes/spire/transit_encryption.rs:328
↓ 2 callers
Function
reqwest_err
Attach operation context to a `reqwest` error for diagnostics.
crate/clients/clap/src/actions/vault/approle.rs:146
↓ 2 callers
Function
reqwest_proxy
The `reqwest` proxy of the `[proxy]` server settings, shared by the outbound clients of the identity providers (JWKS fetch, Auth Verifier session chec
crate/server/src/middlewares/jwt/jwks.rs:268
↓ 2 callers
Function
reset
Clears all collected Sign profiling samples.
crate/clients/pkcs11/module/src/profiling.rs:242
↓ 2 callers
Method
reset
(&self)
crate/server_database/src/tests/sql_migration_tests.rs:68
↓ 2 callers
Function
resign_parts
Set `algorithm` on `structure` and return its to-be-signed DER.
crate/server/src/core/certificate/oracle_signing.rs:277
↓ 2 callers
Function
resolveBegin
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
resolveEnd
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
resolveIndex
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
resolveSchema$refField
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
resolve_integer_alphabet
(metadata: &FpeMetadata)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:111
↓ 2 callers
Method
resolve_key_algorithm
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:122
↓ 2 callers
Function
resolve_key_from_options
Resolve a wrapping/unwrapping key from one of the common key source options: - base64-encoded key bytes → AES symmetric key object - key ID in the KMS
crate/clients/clap/src/actions/shared/resolve_key.rs:23
↓ 2 callers
Function
resolve_keyset_to_single_uid
Resolve a keyset identifier to a single UID (for encrypt/sign operations). For `@latest` or `Bare` mode, resolves to the key with the highest `rotate
crate/server/src/core/uid_utils.rs:227
↓ 2 callers
Function
resolve_shared_attribute
Resolve an attribute that must hold the same value on the private and the public key. KMIP 2.1 §6.1.9: Private/Public Key Attributes take precedence
crate/server/src/core/operations/create_key_pair.rs:239
↓ 2 callers
Function
resolve_text_alphabet
(metadata: &FpeMetadata)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:107
↓ 2 callers
Method
resolve_with_env
[`Self::resolve`] with an injectable environment lookup, so tests need not mutate the process environment.
crate/clients/clap/src/actions/audit.rs:128
↓ 2 callers
Function
respond
A minimal RFC 3161 time-stamp responder: answers `request_der` with a token signed by `tsa_cert` / `tsa_key` (SHA-256) under `policy_oid`. For tests a
crate/crypto/src/openssl/tsa.rs:311
↓ 2 callers
Function
respond_at
[`respond`] with an optional fixed `genTime`: Unix seconds as a C `long` (the TSA clock otherwise).
crate/crypto/src/openssl/tsa.rs:339
↓ 2 callers
Function
response_bytes_mut
(response: &mut OcspResponse)
crate/server/src/core/certificate/oracle_signing.rs:436
↓ 2 callers
Function
restore_process_env
(name: &str, value: &std::ffi::OsStr)
crate/hsm/base_hsm/src/hsm_lib.rs:844
↓ 2 callers
Function
restrict_to_owner
(options: &mut fs::OpenOptions, private: bool)
crate/clients/client/src/file_utils.rs:80
↓ 2 callers
Method
retire_for_replacement
Update these (old) attributes to record that they have been replaced. Per KMIP 1.4 §4.4 Table 173 / §4.5 Table 177 / §4.8 Table 187: - Sets `Replacem
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1907
↓ 2 callers
Method
retrieve
(&self, uid: &str)
crate/server_database/src/core/database_objects.rs:1861
↓ 2 callers
Function
retrieve_and_reconstruct_shares
Retrieve all share objects, validate consistency, and XOR-reconstruct the secret. Performs all validations shared by [`join_split_key`] and the Crypt
crate/server/src/core/operations/join_split_key.rs:70
↓ 2 callers
Function
retrieve_certificate_for_private_key
Retrieve the certificate associated to the given private key
crate/server/src/core/certificate/find.rs:249
↓ 2 callers
Function
retrieve_issuer_certificate
Retrieve the issuer certificate: ACL-checked for a user, read directly (but not destroyed) for the server, since a certificate is public information.
crate/server/src/core/operations/generate_crl.rs:226
↓ 2 callers
Method
retrieve_linked_public_key
Retrieve the public key linked from a private key being re-keyed. The link is client-editable, so the caller must hold `Rekey` on the public key too;
crate/server/src/core/operations/rekey/keypair/mod.rs:157
↓ 2 callers
Function
retrieve_private_key_for_certificate
Retrieve the certificate associated to the given private key
crate/server/src/core/certificate/find.rs:353
↓ 2 callers
Function
retry_backoff
Capped linear backoff with random jitter: `attempt` ms (max 8) plus 0..=that again, so writers hammering one uid de-synchronise.
crate/server_database/src/stores/redis/redis_with_findex.rs:304
↓ 2 callers
Method
revoke_ceremony_record
Revoke the ceremony record at `redis_key` by setting `revoked_at` and `revoked_by`.
crate/server_database/src/stores/redis/redis_with_findex.rs:1093
↓ 2 callers
Function
revoke_certificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/sub_ca_tests.rs:510
↓ 2 callers
Function
revoke_operation
( kms: &KMS, mut request: Revoke, user: &UserId, )
crate/server/src/core/operations/revoke.rs:36
↓ 2 callers
Function
revoke_request
(key_id: &str)
crate/server/src/routes/aws_xks/tests.rs:53
↓ 2 callers
Function
revoke_secret_data
(cli_conf_path: &str, secret_id: &str, reason: &str)
crate/clients/ckms/src/tests/secret_data/lifecycle.rs:42
↓ 2 callers
Function
revoke_ttlv_request
( unique_identifier: &str, revocation_reason_message: String, revocation_reason_code: Option<Strin
crate/clients/wasm/src/wasm.rs:1939
↓ 2 callers
Method
rewrap_dependants
Re-wrap all keys that were wrapped by the old wrapping key.
crate/server/src/core/operations/rekey/common.rs:197
↓ 2 callers
Function
rewrite_certificate
Store `state` (column and attributes) on the certificate and apply `edit` to its attributes, bypassing the lifecycle so the dates can be backdated.
crate/server/src/core/operations/auto_rotate.rs:1539
↓ 2 callers
Function
rfc3339_now
()
crate/clients/k8s/operator/src/controller.rs:391
↓ 2 callers
Function
rng_retrieve
`RNGRetrieve` operation implementation Generates cryptographically secure random bytes. If RNG Parameters are provided they are currently accepted bu
crate/server/src/core/operations/rng_retrieve.rs:16
↓ 2 callers
Method
rng_retrieve
Retrieve random bytes from server's RNG.
crate/clients/client/src/kms_rest_client.rs:699
↓ 2 callers
Function
rotate_impl
( req: &HttpRequest, kms: &KMS, name: String, )
crate/server/src/routes/spire/transit_encryption.rs:533
↓ 2 callers
Function
rotating_jwks_http_server
Spawn a persistent (multi-request) HTTP/1.1 server on a random port that serves `initial_body` for every request until `rotated` is set to `true` (usi
crate/server/src/middlewares/jwt/jwks.rs:537
↓ 2 callers
Function
round_trip
( kek_id: &str, client: cosmian_kms_client::KmsClient, algo: DataEncryptionAlgorithm,
crate/clients/clap/src/actions/symmetric/decrypt.rs:425
↓ 2 callers
Function
rsa_create
(bits: usize)
crate/server/src/tests/kmip_policy/routes.rs:98
↓ 2 callers
Function
rsa_digital_signature_algorithm
Map a Vault `signature_algorithm` value to a KMIP `DigitalSignatureAlgorithm` for RSA keys. - `Some("pkcs1v15")` → `SHA{256,384,512}WithRSAEncryption
crate/server/src/routes/spire/transit.rs:294
↓ 2 callers
Function
rsa_kek_wraps_objects_larger_than_an_oaep_block
(algorithm: Option<&str>)
crate/server/src/tests/row_binding_tests.rs:283
↓ 2 callers
Function
rsa_key
()
crate/server/src/core/certificate/oracle_signing.rs:522
↓ 2 callers
Function
rsa_kwp_params
()
crate/clients/clap/src/actions/bench/helpers.rs:269
↓ 2 callers
Method
rsa_modulus
Return the RSA modulus if the key is an RSA key In big endian
crate/clients/pkcs11/module/src/traits/public_key.rs:24
↓ 2 callers
Function
rsa_parameters
( key_wrapping_data: &KeyWrappingData, )
crate/crypto/src/crypto/wrap/common.rs:6
↓ 2 callers
Function
rsa_pkcs15_params
()
crate/clients/clap/src/actions/bench/helpers.rs:278
↓ 2 callers
Function
rsa_public_components
Decode and validate the RSA public components (`n`, `e`) shared by the private and public-only import paths.
crate/server/src/routes/jose/keys.rs:1092
↓ 2 callers
Method
rsa_public_exponent
Return the RSA public exponent if the key is an RSA key In big endian
crate/clients/pkcs11/module/src/traits/public_key.rs:29
↓ 2 callers
Method
rsa_public_key
(&self)
crate/clients/pkcs11/module/src/tests.rs:1714
↓ 2 callers
Function
rsa_public_usage_from_alg
Usage mask of the public half of an RSA pair: encryption algs → `Encrypt | WrapKey`, anything else (signature algs or none) → `Verify`.
crate/server/src/routes/jose/keys.rs:364
↓ 2 callers
Function
rsaes_oaep_sha1_unwrap
Unwrap (decrypt) the given ciphertext using RSAES-OAEP with SHA-1 This replaces the AWS KMS Import key material step for testing purposes.
crate/clients/clap/src/tests/shared/openssl_utils.rs:103
↓ 2 callers
Function
rsaes_oaep_sha256_unwrap
Unwrap (decrypt) the given ciphertext using RSAES-OAEP with SHA-256 This replaces the AWS KMS Import key material step for testing purposes. The aws A
crate/clients/clap/src/tests/shared/openssl_utils.rs:79
↓ 2 callers
Function
run
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
runTimeout
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
run_child_output
Re-execute this test binary running only the probe, with exactly `envs` set among the `HSM_SLOT_ID*` variables.
crate/test_kms_server/src/test_server.rs:1862
↓ 2 callers
Function
run_cmd
(cmd: &mut Command, context: &str)
crate/crypto/build.rs:253
↓ 2 callers
Function
run_locate_query
Run a query built by the locate query builders and decode its `(id, state, attributes)` rows.
crate/server_database/src/stores/sql/mysql.rs:2287
↓ 2 callers
Method
run_locate_query
Run a query built by the locate query builders and decode its `(id, state, attributes)` rows.
crate/server_database/src/stores/sql/sqlite.rs:1812
↓ 2 callers
Method
run_locate_query
Run a query built by the locate query builders and decode its `(id, state, attributes)` rows.
crate/server_database/src/stores/sql/pgsql.rs:747
↓ 2 callers
Function
run_owned_cli_command
(owner_client_conf_path: &str)
crate/clients/ckms/src/tests/auth_tests.rs:28
↓ 2 callers
Function
run_verify
Run the full PKCS#11 verification sequence. # Errors Returns an error if any PKCS#11 call fails or the library cannot be loaded.
crate/clients/clap/src/actions/pkcs11/verify.rs:55
← previous
next →
3,801–3,900 of 16,000, ranked by callers