MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 3 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:908
↓ 3 callersMethodset_rotation_metadata_from
Set rotation metadata on these (new) attributes based on the old key's attributes. Per the auto-rotation spec (Manual rekey table): - `rotate_generat
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1934
↓ 3 callersMethodset_unique_identifiers
(&mut self, unique_identifiers: &[UniqueIdentifier])
crate/clients/clap/src/actions/console.rs:85
↓ 3 callersFunctionsf
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionshake256
SHAKE-256 of the concatenation of `parts`, squeezed into `out`.
crate/server_database/src/ceremony_keys.rs:59
↓ 3 callersFunctionshallowArrayEquals
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionsign
(kms: &KMS, request: Sign, user: &UserId)
crate/server/src/core/operations/sign.rs:154
↓ 3 callersFunctionsign_body
()
crate/server/src/routes/ssh/mod.rs:450
↓ 3 callersFunctionsign_hash_ecdsa
( dll: &KspDll, h_provider: usize, h_key: usize, hash: &[u8], )
crate/clients/clap/src/actions/cng_verify.rs:373
↓ 3 callersMethodsign_message
( &mut self, data: &[u8], p_signature: CK_BYTE_PTR, p_signature_len: CK_ULONG_
crate/clients/pkcs11/module/src/sessions.rs:826
↓ 3 callersFunctionsign_rsa_digest_with_algorithm
Attempt to sign a digest using an RSA private key and the provided algorithm name. Supported algorithms: - `SHA1withRSA` - `SHA256withRSA` - `SHA512w
crate/crypto/src/crypto/rsa/sign.rs:41
↓ 3 callersFunctionsign_ttlv_request
( key_unique_identifier: &str, data_or_digest: Vec<u8>, cryptographic_parameters: Option<JsValue>,
crate/clients/wasm/src/wasm.rs:1614
↓ 3 callersFunctionsign_twice_and_compare
(sign_req: &Sign, pkey: &PKey<Private>, f: F)
crate/crypto/src/crypto/elliptic_curves/sign.rs:253
↓ 3 callersFunctionsign_verify
FFI into the dlopen'ed PKCS#11 provider (#1166)
crate/clients/clap/src/actions/pkcs11/capabilities.rs:1919
↓ 3 callersFunctionsign_with_header
Sign `claims` with the given, fully caller-controlled JOSE header.
crate/server/src/routes/google_cse/jwt.rs:954
↓ 3 callersMethodsignature_verify
( &self, uid: &str, data: &[u8], signature: &[u8], cryptographic_param
crate/interfaces/src/hsm/hsm_store.rs:1149
↓ 3 callersFunctionsignature_verify_ttlv_request
( key_unique_identifier: &str, data_or_digest: Vec<u8>, signature: Vec<u8>, cryptographic_para
crate/clients/wasm/src/wasm.rs:1656
↓ 3 callersFunctionsingle_op_message
Wraps a single KMIP `Operation` in a `RequestMessage`. Binary TTLV requests always deserialize as a `RequestMessage` server-side (`handle_ttlv_bytes_
crate/server/src/tests/audit_middleware.rs:321
↓ 3 callersFunctionskipSeparationSpace
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionslashed
The path with `/` separators on every platform (Windows `read_dir` yields `\\`).
crate/clients/clap/src/tests/xml/kmip.rs:164
↓ 3 callersFunctionsmi
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionspiffe_authenticated_user
Build the [`AuthenticatedUser`] for a validated SPIFFE JWT-SVID claim set. Requirements, on top of the signature/issuer/expiry/audience checks alread
crate/server/src/middlewares/jwt/jwt_token_auth.rs:76
↓ 3 callersFunctionspki_hash
(rsa: &Rsa<Private>)
crate/server/src/tests/google_cse/crypto_paths.rs:541
↓ 3 callersMethodstack
(&self)
crate/server/src/start_kms_server.rs:2946
↓ 3 callersFunctionstart_self_cdp_test_server
Start a server whose `kms_public_url` points at itself: the CRL distribution point injected in issued certificates is `kms_public_url`, and the shared
crate/test_kms_server/src/crl_tests.rs:1250
↓ 3 callersFunctionstart_test_server
Start a test server from a TOML config file with default client options. The server is started in a dedicated thread with dynamic port allocation. Re
crate/test_kms_server/src/test_server.rs:1587
↓ 3 callersFunctionstate_on
( db: &impl cosmian_kms_interfaces::ObjectsStore, uid: &str, )
crate/server_database/src/tests/mod.rs:764
↓ 3 callersFunctionstatus
()
crate/clients/clap/src/actions/cng.rs:123
↓ 3 callersFunctionstatus_and_reason
( position: (&str, usize), exp_reason: Option<&kmip_0::kmip_types::ErrorReason>, act_r
crate/clients/clap/src/tests/xml/versioned/compare.rs:814
↓ 3 callersFunctionstored_salt
(mgr: &mut ConnectionManager)
crate/server_database/src/tests/redis_kdf_salt_tests.rs:34
↓ 3 callersFunctionstylize
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionsub_ca_flow
Create a non-extractable key pair `sk_id` in the HSM, get its CSR signed by the HSM and certified by `root_id` through the `CertificateLink` only (the
crate/server/src/tests/hsm/sub_ca.rs:115
↓ 3 callersFunctionsubject
(cn: &str)
crate/server/src/core/operations/message.rs:1824
↓ 3 callersFunctionsubmitWithFetchRetry
* Navigate to `path`, run optional `setup`, submit the form, and wait for the * response panel. Retries once (with a fresh navigate + setup) on a tr
ui/tests/e2e/helpers.ts:371
↓ 3 callersFunctionsubstitute_uid
(test_name: &str, uid: &mut UniqueIdentifier, uid_map: &HashMap<usize, String>)
crate/clients/clap/src/tests/xml/request.rs:1338
↓ 3 callersFunctionsummarize
Aggregate the samples of the measurement window into 100 ms timeline buckets and per-group summaries, for `all` followed by `kms1..kmsN`. Messages are
crate/clients/clap/src/actions/bench/cek_switch.rs:226
↓ 3 callersMethodsupports_message_encrypt
(&self)
crate/hsm/base_hsm/src/hsm_lib.rs:674
↓ 3 callersMethodsupports_pkcs11_v3_interfaces
(&self)
crate/hsm/base_hsm/src/hsm_lib.rs:571
↓ 3 callersFunctionsweep_expired_versions_at
[`sweep_expired_versions`] with an explicit current Unix time.
crate/server/src/routes/kv/metadata.rs:535
↓ 3 callersFunctionsymmetric_encrypt
( dek_uid: &str, owner: &str, kms: &Arc<KMS>, data: &[u8], )
crate/server/src/tests/hsm/symmetric_dek.rs:129
↓ 3 callersFunctionsymmetric_key_info
Build the Vault key-info response for a symmetric key. For symmetric keys Vault maps each version to its creation time as a Unix timestamp.
crate/server/src/routes/spire/transit_encryption.rs:294
↓ 3 callersFunctionsynced_state_json
[`sync_state_json`] for one SQL row: the new `(object, attributes)` documents when the row changes. A row whose state or JSON does not parse is skippe
crate/server_database/src/stores/migrate.rs:214
↓ 3 callersFunctionta
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctiontag
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodtag
(&self)
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1443
↓ 3 callersFunctiontag_from_object
Return the KMIP tag for a given object This is required to match the Java library behavior which expects the first tag to describe the type of object
crate/clients/client_utils/src/export_utils.rs:63
↓ 3 callersFunctiontags
(values: &[&str])
crate/clients/pkcs11/provider/src/kms_object.rs:1796
↓ 3 callersFunctiontags_response
(kid: String, all_tags: HashSet<String>)
crate/server/src/routes/jose/tags.rs:172
↓ 3 callersFunctiontake_row_binding
Remove and return the row UID recorded by [`bind_to_row`] from an unwrapped `object`. Key value attributes that held nothing else are dropped, as befo
crate/server/src/core/wrapping/mod.rs:65
↓ 3 callersFunctiontest_client
()
crate/clients/cng/src/key.rs:911
↓ 3 callersFunctiontest_decrypt
( session_h: CK_ULONG, key_handle: CK_OBJECT_HANDLE, encrypted_data: Vec<u8>, )
crate/clients/pkcs11/module/src/utils.rs:152
↓ 3 callersFunctiontest_discover_versions_
( major: i32, minor: i32, dv: DiscoverVersions, )
crate/server/src/tests/ttlv_tests/discover_versions.rs:108
↓ 3 callersFunctiontest_encrypt
( session_h: CK_ULONG, key_handle: CK_OBJECT_HANDLE, plaintext: Vec<u8>, )
crate/clients/pkcs11/module/src/utils.rs:103
↓ 3 callersFunctiontest_head_tx
Head sender for tests that run `writer_loop` directly and ignore the head.
crate/server/src/core/audit/store.rs:413
↓ 3 callersFunctiontest_wrap_unwrap
Helper to run wrap/unwrap roundtrip test
crate/crypto/src/crypto/symmetric/rfc3394.rs:110
↓ 3 callersFunctiontf
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctiontg
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionthrowWarning
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctiontimestamp_imprint
(signature: &[u8])
crate/access/src/audit/checkpoint.rs:52
↓ 3 callersFunctiontj
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodtoJSON
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodto_ck_key_type
(&self)
crate/clients/pkcs11/module/src/traits/key_algorithm.rs:49
↓ 3 callersFunctionto_object_with_metadata
( hsm_object: &HsmObject, uid: &str, user: &str, vendor_id: &str, )
crate/interfaces/src/hsm/hsm_store.rs:1882
↓ 3 callersMethodto_openssl_cipher
Convert to the corresponding OpenSSL cipher.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:208
↓ 3 callersMethodto_u32_digits
Convert the complement notation value of a `BigInt` into a `Vec<u32>`. This is used by the TTLV Serializer to construct a `BigInt`. Get the `Vec<u8>`
crate/kmip/src/ttlv/kmip_big_int.rs:121
↓ 3 callersFunctionto_versioned
( item: ResponseMessageBatchItem, flavor: KmipFlavor, )
crate/server/src/core/operations/message.rs:319
↓ 3 callersFunctionto_wide
(s: &str)
crate/clients/cng/src/registry.rs:386
↓ 3 callersFunctionto_wide
(s: &str)
crate/clients/clap/src/actions/cng.rs:464
↓ 3 callersFunctiontoken_with_header
(header: &str)
crate/server/src/middlewares/jwt/jwt_config.rs:403
↓ 3 callersMethodtouch
Return the working state of `uid` within this attempt, reading and recording its baseline from Redis on first touch.
crate/server_database/src/stores/redis/redis_with_findex.rs:615
↓ 3 callersFunctiontry_acquire_lock
Attempts to acquire the advisory lock without blocking. Dropping the returned file releases the lock.
crate/server/src/core/audit/file_sink.rs:358
↓ 3 callersFunctiontry_create_hsm_ec_kp
Create an HSM-resident EC/EdDSA key pair for the given curve. Key generation happens on the HSM itself via `HsmKeypairAlgorithm::EC` (NIST curves) or
crate/clients/clap/src/actions/bench/helpers.rs:668
↓ 3 callersFunctiontry_create_hsm_rsa_kp
Create an HSM-resident RSA key pair. Key generation happens on the HSM itself via `HsmKeypairAlgorithm::RSA`.
crate/clients/clap/src/actions/bench/helpers.rs:613
↓ 3 callersFunctionuc
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethoduid
(&self)
crate/server_database/src/stores/redis/objects_db.rs:444
↓ 3 callersFunctionuid_string
(uid: &UniqueIdentifier)
crate/server/src/tests/hsm/hybrid_kem_dek.rs:338
↓ 3 callersFunctionunescapeMd
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionunpipe
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodunregister
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodunseal
Decrypt and authenticate a sealed ceremony record. Returns `Err` if the record has been tampered with (GCM tag verification failure) or if the `role`
crate/server_database/src/ceremony_keys.rs:122
↓ 3 callersFunctionunwrap
Unwrap a key using a wrapping key # Arguments `unwrapping_key` - the unwrapping key `key_wrapping_data` - the key wrapping data `wrapped_key` - the w
crate/crypto/src/crypto/wrap/unwrap_key.rs:143
↓ 3 callersFunctionunwrap_request
(wrapped_key: String)
crate/server/src/tests/google_cse/crypto_paths.rs:642
↓ 3 callersMethodupdate_active_keys_breakdown
Set `kms.keys.active.count` from a key inventory. Unset dimensions are labelled `"unknown"`. Beyond [`MAX_KEY_BUCKETS`] distinct buckets, the remaini
crate/server/src/core/otel_metrics.rs:618
↓ 3 callersMethodupdate_state
(&self, uid: &str, state: State)
crate/server_database/src/stores/redis/redis_with_findex.rs:1213
↓ 3 callersFunctionuploadFileNth
(page: Page, filePath: string, nth: number)
ui/tests/e2e/helpers.ts:473
↓ 3 callersFunctionuri
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionuriToAnchor
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionusage_mask_from_alg
Map a JOSE `alg` string to a default `CryptographicUsageMask`. The mapping follows the natural operation class: - Signing algs → `Sign | Verify` - En
crate/server/src/routes/jose/algorithm.rs:347
↓ 3 callersFunctionuser_from_client_certificate
Derive the KMS username from a client certificate's Common Name. Shared by the HTTPS mTLS middleware and the KMIP socket server so both apply the sam
crate/server/src/middlewares/tls_auth.rs:169
↓ 3 callersFunctionutf8_label
(id: &[u8])
crate/hsm/base_hsm/src/session/mod.rs:30
↓ 3 callersFunctionvalidateNumber
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionvalidate_jwks_uris_are_https
Validate that every JWKS URI in `uris` uses the `https` scheme. Prevents the KMS from starting with an HTTP JWKS endpoint, which would expose JWT pub
crate/server/src/start_kms_server.rs:2295
↓ 3 callersFunctionvalidate_key_request
Validate the API version, then the key name, of a per-key EKM request.
crate/server/src/routes/azure_ekm/mod.rs:66
↓ 3 callersFunctionvalidate_key_size_bits
( alg: CryptographicAlgorithm, bits: i32, wl: &KmipWhitelists, )
crate/server/src/core/operations/algorithm_policy.rs:1222
↓ 3 callersFunctionvalidate_resolved_addrs
Rejects a DNS resolution result that is empty or contains any blocked address. A public-looking CRL Distribution Point host name can resolve to an in
crate/server/src/core/certificate/mod.rs:72
↓ 3 callersFunctionvalidate_stored_iv
crate/hsm/base_hsm/tests/fixtures/fips_gcm_hsm.c:127
↓ 3 callersFunctionvalidate_subject_algorithm
(public_key: &PublicKey)
crate/server/src/routes/ssh/certificate.rs:461
↓ 3 callersFunctionvalidated_entity
Reject an empty/blank `entity_id`, or one colliding with the KMS `default_username`. The `entity_id` becomes the KMS owner identity for every transit
crate/server/src/middlewares/spire_token.rs:194
↓ 3 callersFunctionvalidating_app_with_config
( google_cse_config: GoogleCseConfig, )
crate/server/src/tests/google_cse/token_validation.rs:94
↓ 3 callersFunctionvalueOrEmptyList
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previousnext →2,501–2,600 of 16,000, ranked by callers