MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 2 callersFunctionrevocation_target_state
Return the [`State`] an object transitions to when revoked for the given `reason`. - `KeyCompromise` / `CACompromise` → [`State::Compromised`] - all
crate/server/src/core/operations/revoke.rs:377
↓ 2 callersFunctionrevoke
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/revocation_authority_tests.rs:194
↓ 2 callersMethodrevoke_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:864
↓ 2 callersFunctionrevoke_certificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/sub_ca_tests.rs:503
↓ 2 callersFunctionrevoke_key
Revoke a key in the KMS (required before destroy for Active keys).
crate/clients/cng/src/backend.rs:223
↓ 2 callersFunctionrevoke_operation
( kms: &KMS, mut request: Revoke, user: &UserId, )
crate/server/src/core/operations/revoke.rs:36
↓ 2 callersFunctionrevoke_request
(key_id: &str)
crate/server/src/routes/aws_xks/tests.rs:59
↓ 2 callersFunctionrevoke_secret_data
(cli_conf_path: &str, secret_id: &str, reason: &str)
crate/clients/ckms/src/tests/secret_data/lifecycle.rs:42
↓ 2 callersFunctionrevoke_ttlv_request
required by wasm_bindgen: Option<String> from JS
crate/clients/wasm/src/wasm.rs:1844
↓ 2 callersMethodrewrap_dependants
Re-wrap all keys that were wrapped by the old wrapping key.
crate/server/src/core/operations/rekey/common.rs:227
↓ 2 callersFunctionrng_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:15
↓ 2 callersMethodrng_retrieve
Retrieve random bytes from server's RNG.
crate/clients/client/src/kms_rest_client.rs:698
↓ 2 callersFunctionrotating_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:523
↓ 2 callersFunctionrsa_aes_key_wrap_sha1_unwrap
Unwrap (decrypt) the given ciphertext using `RSA_AES_KEY_WRAP_SHA_1` This is a two-step unwrapping process: 1. RSA-OAEP with SHA-1 unwraps the ephemer
crate/clients/clap/src/tests/shared/openssl_utils.rs:47
↓ 2 callersFunctionrsa_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:303
↓ 2 callersFunctionrsa_key
()
crate/server/src/core/certificate/oracle_signing.rs:530
↓ 2 callersFunctionrsa_kwp_params
()
crate/clients/clap/src/actions/bench/helpers.rs:250
↓ 2 callersMethodrsa_modulus
Return the RSA modulus if the key is an RSA key In big endian
crate/clients/pkcs11/module/src/traits/public_key.rs:26
↓ 2 callersFunctionrsa_oaep_sha1_params
RSA-OAEP with SHA-1 (`CryptoAlgorithm::RsaOaepSha1` on the HSM oracle). Distinct from `rsa_oaep_params()` (SHA-256): the oracle selects the OAEP hash/
crate/clients/clap/src/actions/bench/helpers.rs:213
↓ 2 callersFunctionrsa_parameters
( key_wrapping_data: &KeyWrappingData, )
crate/crypto/src/crypto/wrap/common.rs:6
↓ 2 callersFunctionrsa_pkcs15_params
()
crate/clients/clap/src/actions/bench/helpers.rs:259
↓ 2 callersFunctionrsa_public_blob
Serialises an RSA public key (modulus + public exponent) into a `BCRYPT_RSAKEY_BLOB` as expected by Windows CNG `BCryptImportKeyPair`. Layout (little
crate/clients/cng/src/blob.rs:40
↓ 2 callersFunctionrsa_public_blob_from_pkcs1_der
Parse PKCS#1 RSA public-key DER bytes and return a `BCRYPT_RSAKEY_BLOB`. PKCS#1 RSAPublicKey ::= SEQUENCE { modulus INTEGER, publicExponent INTEGER }
crate/clients/cng/src/blob.rs:63
↓ 2 callersFunctionrsa_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:1002
↓ 2 callersMethodrsa_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:31
↓ 2 callersMethodrsa_public_key
(&self)
crate/clients/pkcs11/module/src/tests.rs:1292
↓ 2 callersFunctionrsa_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:310
↓ 2 callersFunctionrsaes_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 callersFunctionrsaes_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 callersFunctionrun
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionrunTimeout
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionrun_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:1609
↓ 2 callersMethodrun_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:1521
↓ 2 callersMethodrun_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:623
↓ 2 callersFunctionrun_owned_cli_command
(owner_client_conf_path: &str)
crate/clients/ckms/src/tests/auth_tests.rs:28
↓ 2 callersMethodsaml_session_realm
(&self)
crate/server/src/config/command_line/auth_verifier_config.rs:92
↓ 2 callersMethodsample
(&self, rng: &mut R)
crate/crypto/src/crypto/anonymization/noise.rs:26
↓ 2 callersFunctionsampleFromSchemaGeneric
(s,o={},i=void 0,u=!1)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsample_aws_xks_params
()
crate/server/src/start_kms_server.rs:2274
↓ 2 callersFunctionsanitizer
(s,{useUnsafeMarkdown:o=!1}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsb
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodscan_count_non_destroyed
# Decryption errors A single corrupt or foreign blob does not abort the scan: it is skipped with a `debug!` log. The 30-second cron sync will re-run
crate/server_database/src/stores/redis/objects_db.rs:555
↓ 2 callersMethodscan_count_non_destroyed_keys
One-time bootstrap: scan every `do::*` key, decrypt each blob, and count objects that are both a key type (`SymmetricKey`, `PrivateKey`, `PublicKey`,
crate/server_database/src/stores/redis/objects_db.rs:649
↓ 2 callersFunctionscriptTag
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionse
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionseal_envelope
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:184
↓ 2 callersMethodsecond
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsecret_checksum
Sum of octets modulo 2^16, the checksum of an unencrypted secret key (RFC 4880 §5.5.3).
crate/clients/client_utils/src/openpgp_format.rs:100
↓ 2 callersFunctionsecrets_equal
Compare two secrets in constant time (both are hashed first so that the length is not leaked).
crate/server/src/routes/enrollment.rs:96
↓ 2 callersMethodsecurity
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionselect_cipher
(kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:22
↓ 2 callersFunctionselect_cipher_pad
(kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc5649.rs:23
↓ 2 callersFunctionselect_from_objects
Build `SELECT … FROM objects` with one `INNER JOIN tags` per searched tag, followed by the JSON-array `FROM` items required by the Link / Name filters
crate/server_database/src/stores/sql/locate_query.rs:458
↓ 2 callersFunctionself_signed
(key: &PKey<Private>, digest: MessageDigest)
crate/server/src/routes/scep/pki_operation.rs:393
↓ 2 callersFunctionsend_2_1
( client: &SocketClient, operation: kmip_2_1::kmip_types::OperationEnumeration, payload: Operation
crate/server/src/tests/ttlv_tests/certify_1_4.rs:94
↓ 2 callersMethodsend_ttlv_request
( &self, endpoint: &str, request: &O, )
crate/clients/client/src/kms_rest_client.rs:961
↓ 2 callersMethodserialiseContent
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodserialiseObject
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodserialize
(&self, serializer: S)
crate/kmip/src/ttlv/date_time.rs:22
↓ 2 callersMethodserialize_bytes
(self, v: &[u8])
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:253
↓ 2 callersMethodserialize_newtype_struct
(self, name: &'static str, value: &T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:358
↓ 2 callersMethodserialize_seq
(self, len: Option<usize>)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:446
↓ 2 callersMethodserialize_str
(self, v: &str)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:247
↓ 2 callersFunctionserve_one
Run one server-side TLS handshake against a client built by `client_setup` and return `on_accept` applied to the accepted server stream (`None` when t
crate/server/src/socket_server.rs:626
↓ 2 callersFunctionserver_accepts
Run one server-side TLS handshake and return whether the *server* accepted it.
crate/server/src/socket_server.rs:651
↓ 2 callersMethodserver_side_decrypt
Delegate decryption to the server. # Errors - If the cryptographic algorithm is not supported - If the block cipher mode is not supported - If the ke
crate/clients/clap/src/actions/symmetric/decrypt.rs:204
↓ 2 callersMethodserver_side_encrypt
Encrypt the data using the specified key server side Returns the nonce, the encrypted data, and the authentication tag # Errors - If the query to the
crate/clients/clap/src/actions/symmetric/encrypt.rs:225
↓ 2 callersMethodserver_side_kem_encapsulation
Generate an ephemeral key (DEK) and wrap it with the KEK. This encapsulation has the following format: | `kem_nonce` | `kem_ciphertext` | `kem_tag` |
crate/clients/clap/src/actions/symmetric/encrypt.rs:338
↓ 2 callersMethodservers
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionset
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsetListBounds
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsetScrollTimeoutId
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionset_access_token
( use_jwt_token: bool, use_api_token: bool, access_token: Option<String>, api_token: Option<St
crate/test_kms_server/src/test_server.rs:1211
↓ 2 callersMethodset_active_key_count
Overwrite the active-key counter with an absolute value. Called once during bootstrap and by the reconcile path.
crate/server_database/src/stores/redis/objects_db.rs:636
↓ 2 callersFunctionset_attribute
Use `set_attribute` from test_modify_attribute (reuse existing helper).
crate/clients/ckms/src/tests/attributes/test_set_attribute.rs:107
↓ 2 callersMethodset_current_db_version
(&self, version: &str)
crate/server_database/src/stores/redis/migrations/mod.rs:57
↓ 2 callersMethodset_db_state
(&self, state: DbState)
crate/server_database/src/stores/redis/migrations/mod.rs:45
↓ 2 callersFunctionset_enabled
Enables or disables phase collection at runtime.
crate/clients/pkcs11/module/src/profiling.rs:249
↓ 2 callersMethodset_key_label
( &self, _slot_id: usize, _key_id: &[u8], _label: &str, )
crate/server/src/core/operations/certify/hsm_subject_tests.rs:256
↓ 2 callersMethodset_key_rotation_dates
Rewrite the PKCS#11 rotation dates on an HSM key identified by `uid`. Routes to the object store responsible for `uid`. SQL stores silently ignore th
crate/server_database/src/core/database_objects.rs:705
↓ 2 callersMethodset_key_wrap
( &self, slot_id: usize, key_id: &[u8], enabled: bool, )
crate/hsm/base_hsm/src/kms_hsm.rs:402
↓ 2 callersMethodset_live_count
Overwrite the live-object counter with an absolute value. Called once during bootstrap (when `get_live_count` returns `None`) and never** again durin
crate/server_database/src/stores/redis/objects_db.rs:491
↓ 2 callersFunctionset_rotation_policy
Set the rotation policy for a symmetric key via the CLI.
crate/clients/ckms/src/tests/symmetric/rotation_policy.rs:20
↓ 2 callersFunctionset_rsa_pair_masks
Applies private / public / common usage masks to an RSA `CreateKeyPair` request.
crate/server/src/tests/jwks_endpoint.rs:116
↓ 2 callersMethodset_wrap_attributes
Set `CKA_WRAP` and `CKA_UNWRAP` on `key_handle`, so AES-KW/KWP can use `C_WrapKey`.
crate/hsm/base_hsm/src/session/aes_key_wrap.rs:45
↓ 2 callersFunctionset_wrapping_key_uid
Replace the wrapping key UID recorded in the wrapped `object`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:579
↓ 2 callersFunctionshouldAutoLoginWithCert
(methods: AuthMethod[])
ui/src/utils/utils.ts:86
↓ 2 callersFunctionshouldInvoke
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsign
( req: HttpRequest, kms: Data<Arc<KMS>>, body: Json<SignRequest>, )
crate/server/src/routes/jose/sign.rs:28
↓ 2 callersFunctionsign_data
Helper: sign data using a key
crate/server/src/tests/hsm/permissions.rs:141
↓ 2 callersFunctionsign_hash_pkcs1
( dll: &KspDll, h_provider: usize, h_key: usize, hash: &[u8], )
crate/clients/clap/src/actions/cng_verify.rs:270
↓ 2 callersFunctionsign_message_error
(rv: CK_RV)
crate/hsm/base_hsm/src/session/message_sign.rs:40
↓ 2 callersFunctionsign_scope
Runs one top-level `C_Sign` body with nested phase collection enabled.
crate/clients/pkcs11/module/src/profiling.rs:225
↓ 2 callersFunctionsign_tbs
Software stand-in for the HSM: RSA PKCS#1 v1.5 / ECDSA over the digest the oracle is asked to use, or pure `EdDSA` over the raw to-be-signed bytes.
crate/server/src/core/certificate/oracle_signing.rs:545
↓ 2 callersFunctionsign_twice_and_compare
(sign_req: &Sign, pkey: &PKey<Private>)
crate/crypto/src/crypto/rsa/sign.rs:324
↓ 2 callersMethodsign_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, data: &[u
crate/hsm/base_hsm/src/session/session_impl.rs:2111
↓ 2 callersFunctionsign_with_pkey
(request: &Sign, private_key: &PKey<Private>)
crate/server/src/core/operations/sign.rs:294
↓ 2 callersFunctionsign_with_transit_key_impl
( req: HttpRequest, kms: Data<Arc<KMS>>, path: Path<(String, String)>, body: Json<SignTransitR
crate/server/src/routes/spire/transit.rs:805
↓ 2 callersFunctionsignature_algorithm_to_kmip_params
Maps a PKCS#11 `SignatureAlgorithm`/payload pair to the KMIP `CryptographicParameters` and `data`/`digested_data` fields used by both the `Sign` and `
crate/clients/pkcs11/provider/src/kms_object.rs:1035
↓ 2 callersFunctionsignature_verify
( kms: &KMS, request: SignatureVerify, user: &UserId, )
crate/server/src/core/operations/signature_verify.rs:215
← previousnext →2,901–3,000 of 12,829, ranked by callers