MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 7 callersFunctionparse_rfc3339
Parses an RFC3339 date string. # Arguments `date_str` - The date string to parse. # Returns The parsed `OffsetDateTime` (keeping the original UTC
crate/crypto/src/crypto/anonymization/date_helper.rs:44
↓ 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 callersFunctionpkcs11_lib_path
Returns the expected path to the built PKCS#11 shared library.
crate/clients/ckms/src/tests/pkcs11.rs:95
↓ 7 callersFunctionpki_message
Build a signed SCEP `pkiMessage` carrying `csr` encrypted to `ca`.
crate/server/src/tests/enrollment_tests.rs:896
↓ 7 callersFunctionpolicy_checked_import
`Import` after the request passed the `kmip.policy_id` check, as the KMIP endpoint does.
crate/server/src/routes/jose/keys.rs:704
↓ 7 callersFunctionpqc_keygen_raw
Generate a PQC key pair and extract raw key bytes (for algorithms that don't support DER serialization, such as hybrid KEMs). `rng` is unused for hyb
crate/crypto/src/crypto/pqc/mod.rs:252
↓ 7 callersFunctionpqc_keygen_seeded
( name: &CStr, seed: &[u8], propquery: Option<&CStr>, )
crate/crypto/src/crypto/pqc/mod.rs:107
↓ 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:24
↓ 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:246
↓ 7 callersMethodredeem
Consume one request of `ticket` for `user`. An exhausted ticket stays known until its lease ends, and is refused with `Usage Limit Exceeded` (as the O
crate/server/src/core/operations/login.rs:155
↓ 7 callersFunctionrename
( cli_conf_path: &str, master_secret_key_id: &str, attribute: &str, new_name: &str, )
crate/clients/ckms/src/tests/cover_crypt/access_structure.rs:90
↓ 7 callersFunctionrequire_hsm_env
(expected_model: &str)
crate/test_kms_server/src/hsm_startup_tests.rs:44
↓ 7 callersMethodreserve_gcm_invocations
Reserve `invocations` AES-GCM (or GMAC) invocations with a random IV under the key `uid` against the cap of NIST SP 800-38D §8.3. Call it before encr
crate/server_database/src/core/database_objects.rs:457
↓ 7 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:248
↓ 7 callersFunctionrfc3394_unwrap
(ciphertext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:69
↓ 7 callersMethodrows
(&self, sql: &str)
crate/server_database/src/tests/sql_migration_tests.rs:167
↓ 7 callersFunctionrsa_wide
()
crate/clients/clap/src/actions/cng_verify.rs:73
↓ 7 callersFunctionrun
(args: &[&str], config: KmsClientConfig)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:21
↓ 7 callersMethodrun_atomic
Apply `operations` atomically, retrying the whole batch with fresh baselines whenever a concurrent writer wins a CAS race. `user` is the acting user;
crate/server_database/src/stores/redis/redis_with_findex.rs:642
↓ 7 callersFunctionrun_ckms
(args: &[&str], conf: &std::path::Path)
crate/clients/ckms/tests/lint_cleanup_characterization_tests.rs:16
↓ 7 callersFunctionrun_vectors_checked
Run vectors in order, honouring `KNOWN_FAILING`: a listed vector must fail with its listed error, any other must pass and use every `DEVIATIONS` row i
crate/clients/clap/src/tests/xml/runner.rs:106
↓ 7 callersFunctionseed_two_generations
Keyset `hsm::0::k`: generation 0 (`k`, retired) and generation 1 (`k@1`, latest).
crate/server/src/tests/hsm/fake_hsm_rotation.rs:732
↓ 7 callersFunctionseed_two_key_pair_generations
Key pair keysets `hsm::0::kp` / `hsm::0::kp_pk`: generation 0 (`kp`, `kp_pk`) retired, generation 1 (`kp@1`, `kp@1_pk`) the head.
crate/server/src/tests/hsm/fake_hsm_rotation.rs:922
↓ 7 callersFunctionsend
( request_header: RequestMessageHeader, batch_item: Vec<RequestMessageBatchItemVersioned>, )
crate/server/src/tests/ttlv_tests/batch_semantics_2_1.rs:73
↓ 7 callersFunctionsend_raw
Send `request` as `user`; return the status and the raw body.
crate/server/src/routes/kv/tests.rs:83
↓ 7 callersMethodserialize_i32
(self, v: i32)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:202
↓ 7 callersFunctionserialize_tagged_label
( id: &[u8], tags: Option<&HashSet<String>>, max_len: Option<usize>, )
crate/hsm/base_hsm/src/session/mod.rs:59
↓ 7 callersFunctionservice
()
crate/clients/k8s/csi_provider/src/service.rs:445
↓ 7 callersMethodset
(key: &'static str, value: Option<&str>)
crate/server/src/tests/google_cse/server_setup.rs:355
↓ 7 callersMethodset_db_version
(&self, version: &str)
crate/server_database/src/stores/migrate.rs:258
↓ 7 callersFunctionset_key_property_dword
( dll: &KspDll, h_provider: usize, h_key: usize, prop_name: &[u16], va
crate/clients/clap/src/actions/cng_verify.rs:193
↓ 7 callersMethodshift
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionsize
(n: usize)
crate/server_database/src/core/unwrapped_cache.rs:493
↓ 7 callersFunctionsnapshot
(kms: &KMS, uid: &str)
crate/server/src/core/lint_cleanup_characterization_tests.rs:126
↓ 7 callersFunctionsource
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodstatus_code
(&self)
crate/server/src/routes/mod.rs:49
↓ 7 callersFunctiontest_generate_key
(session_h: CK_ULONG)
crate/clients/pkcs11/module/src/utils.rs:36
↓ 7 callersFunctiontest_hsm_kek_startup
(expected_model: &str)
crate/test_kms_server/src/hsm_startup_tests.rs:49
↓ 7 callersFunctiontest_kms_with_google_cse
Instantiate a KMS from `clap_config`, creating the Google CSE migration key pair when Google CSE is enabled.
crate/server/src/tests/test_utils.rs:459
↓ 7 callersFunctiontest_secret
()
crate/server_database/src/ceremony_keys.rs:171
↓ 7 callersFunctionticket
(value: Vec<u8>)
crate/server/src/core/operations/login.rs:253
↓ 7 callersFunctionto_path
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionto_usize
Convert a Win32 `DWORD` size to `usize` (lossless on every Windows target).
crate/clients/cng/src/provider.rs:27
↓ 7 callersFunctiontry_create_ec_kp
( rt: &Runtime, client: &KmsClient, name: &str, curve: RecommendedCurve, )
crate/clients/clap/src/actions/bench/helpers.rs:465
↓ 7 callersMethodupdate_object
This method updates the specified object identified by its `uid` in the database. If the `tags` parameter is `None`, the tags will not be updated. #
crate/server_database/src/core/database_objects.rs:402
↓ 7 callersMethodupdate_state
(&self, _: &str, _: State)
crate/server/src/core/operations/locate.rs:317
↓ 7 callersFunctionvalidate_cryptographic_parameters
( params: &Option<CryptographicParameters>, wl: &KmipWhitelists, )
crate/server/src/core/operations/algorithm_policy.rs:851
↓ 7 callersMethodversion
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionwriteTempFile
(name: string, content: string | Buffer)
ui/tests/e2e/helpers.ts:482
↓ 7 callersFunctionwrite_bytes_to_file
Write all bytes to a file # Errors If the file cannot be opened or written, an error is returned.
crate/clients/client/src/file_utils.rs:67
↓ 7 callersFunctionwrite_kmip_object_to_file
Writes a KMIP Object to a JSON TTLV in a file. # Errors If the file cannot be opened or written, an error is returned.
crate/clients/client/src/file_utils.rs:157
↓ 7 callersFunctionwrite_temp
(contents: &str)
crate/server/src/config/command_line/clap_config.rs:1007
↓ 7 callersFunctionxor_join
Reconstruct the secret from *all* XOR shares. `secret[i] = shares[0][i] XOR shares[1][i] XOR ... XOR shares[n-1][i]` The returned secret is wrapped
crate/crypto/src/crypto/split_key/mod.rs:82
↓ 6 callersFunction$
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionLf
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionSa
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionZi
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunction__assign
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunction_deepClone
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodactivate_crypto_officer_ceremony
Record that the Crypto Officer split-key ceremony has been completed. Per-user model**: multiple CO users can be simultaneously active. This call onl
crate/server_database/src/core/database_permissions.rs:100
↓ 6 callersFunctionactive_owm
(ext_attrs: Attributes)
crate/interfaces/src/stores/object_with_metadata.rs:333
↓ 6 callersFunctionaes_gcm_params
()
crate/clients/clap/src/actions/bench/helpers.rs:172
↓ 6 callersMethodallows
True when `check` is an accepted deviation for this batch item; logs it with `warn!`.
crate/clients/clap/src/tests/xml/deviations.rs:1096
↓ 6 callersFunctionappend_checkpoint_event
Appends a checkpoint event (id and `prev_hash` chained to `tail`) anchoring `(head_id, head_hash)`, signed by `signer`, with an optional RFC 3161 toke
crate/clients/clap/src/actions/audit.rs:1276
↓ 6 callersFunctionassert_certify_format_unsupported
Helper: test that a KEM/hybrid algorithm cert creation fails with unsupported format error.
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:387
↓ 6 callersFunctionassert_filter
( algorithm: Option<CryptographicAlgorithm>, object_type: Option<ObjectType>, expected
crate/interfaces/src/hsm/interface.rs:914
↓ 6 callersFunctionassert_finalize_fails_pending
(blob: Option<Vec<u8>>, algorithm: KeyAlgorithm)
crate/clients/cng/src/key.rs:747
↓ 6 callersFunctionassert_store_objects_and_grants
( pool: &P, objects: &[(String, String)], tags_in_object_blob: bool, )
crate/server_database/src/tests/sqlite_migration_tests.rs:157
↓ 6 callersFunctionbase_ceremony_conf
Build a base `ClapConfig` for CO-related tests. - `require_ceremony`: when `true`, also sets `ceremony_secret = TEST_CEREMONY_SECRET` - `wrap_key_id`
crate/server/src/tests/key_ceremony_tests.rs:65
↓ 6 callersFunctionbuild_rekey_keypair_request
Build a `ReKeyKeyPair` request. To re-key an attribute of a user decryption key, we first need: - the MSK UID - the `CoverCrypt` attributes to revoke
crate/crypto/src/crypto/cover_crypt/kmip_requests.rs:19
↓ 6 callersFunctionbuild_signed_pkimessage
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:391
↓ 6 callersFunctioncek_size_bytes
Return the CEK size in bytes for a given content-encryption algorithm. Per RFC 7518 §5.1: - A128GCM → 16 bytes (128 bits) - A192GCM → 24 bytes (192 b
crate/server/src/routes/jose/algorithm.rs:420
↓ 6 callersFunctioncertify_pubkey
Helper: create a keypair, then certify the public key with a subject name.
crate/test_kms_server/src/certify_tests.rs:510
↓ 6 callersFunctioncertify_renewal
Helper: create a certificate (self-signed or CA-signed), then re-certify it.
crate/test_kms_server/src/certify_tests.rs:901
↓ 6 callersFunctioncfg
()
crate/hsm/proteccio/src/tests.rs:20
↓ 6 callersFunctioncheck_certificate_chain
( owner_client_conf_path: &str, issuer_private_key_id: &str, certificate_id: &str, )
crate/clients/ckms/src/tests/certificates/certify.rs:348
↓ 6 callersMethodcheck_new_objects
[`Self::check`] for every object a list of database operations creates or replaces.
crate/server/src/core/operations/constraints.rs:107
↓ 6 callersMethodcheck_process_window
Enforce the KMIP process-window constraints. An Active key whose current time is before `ProcessStartDate` or after `ProtectStopDate` is rejected wit
crate/interfaces/src/stores/object_with_metadata.rs:260
↓ 6 callersFunctioncheckpoint_message
(head_id: i64, head_hash: &[u8; 32])
crate/access/src/audit/checkpoint.rs:42
↓ 6 callersMethodcompile
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctioncompile_minimal_pkcs11_shim
Compiles `tests/fixtures/minimal_pkcs11.c` — a strictly spec-conformant PKCS#11 v3.0 shim that exports *only* `C_GetFunctionList`/`C_GetInterface` (no
crate/hsm/base_hsm/src/hsm_lib.rs:1122
↓ 6 callersFunctioncompromise_key
Compromise a key via KMIP `Revoke` with `KeyCompromise` reason.
crate/server/src/tests/jose/key_state.rs:163
↓ 6 callersFunctionconcat_kdf
Derive `key_data_len_bits` bits of key material from the shared secret `z` using the NIST SP 800-56A Concatenation KDF (SHA-256), as profiled by RFC 7
crate/crypto/src/crypto/kdf/concat_kdf.rs:57
↓ 6 callersFunctionconfig_for
(mock: &MockGoogle, token_path: &str)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:14
↓ 6 callersMethodcovercrypt_key_bytes
Return the key material of a covercrypt key, raw or transparent.
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:351
↓ 6 callersFunctioncreatePqcKeyPair
(page: Page, algorithm: string)
ui/tests/e2e/helpers.ts:421
↓ 6 callersFunctioncreate_aes_key
(kms: &KMS, owner: &UserId)
crate/server/src/tests/row_binding_tests.rs:37
↓ 6 callersFunctioncreate_ec_key_pair
Create an EC key pair in the KMS with the given curve and name tag. The private key is created with `Sign | DeriveKey | KeyAgreement` usage mask and
crate/clients/cng/src/backend.rs:643
↓ 6 callersFunctioncreate_jwt
Create a signed JSON Web Token (JWT) for authenticating a KACLS migration request. This token includes standard claims such as `iss` (issuer), `aud`
crate/server/src/routes/google_cse/operations.rs:1044
↓ 6 callersFunctioncreate_key
(kms: &KMS, owner: &UserId)
crate/server/src/core/operations/batch_undo.rs:448
↓ 6 callersFunctioncreate_pgp_key
( cli_conf_path: &str, action: &CreatePgpKeyAction, )
crate/clients/ckms/src/tests/pgp/create_key.rs:13
↓ 6 callersFunctioncreate_secret_data_kmip_object
Create a secret data for the given type
crate/kmip/src/kmip_2_1/requests/create.rs:185
↓ 6 callersFunctioncreate_sym_key
( rt: &Runtime, client: &KmsClient, name: &str, bits: usize, algo: CryptographicAlgorithm,
crate/clients/clap/src/actions/bench/helpers.rs:381
↓ 6 callersFunctioncrud
(db: &DB)
crate/server_database/src/tests/database_tests.rs:577
↓ 6 callersFunctioncse_wrapped_key_decrypt
Decrypts a wrapped key Tries to decrypt it, using the `resource_name` if present. If it fails, key might be wrapped without it, so we try to unwrap it
crate/server/src/routes/google_cse/operations.rs:1260
↓ 6 callersFunctioncurve_der_oid
(curve: EcCurve)
crate/hsm/base_hsm/src/session/ec.rs:27
↓ 6 callersFunctioncurve_from_der_oid
(oid: &[u8])
crate/hsm/base_hsm/src/session/ec.rs:107
↓ 6 callersFunctiondays_until_next_rotation
Compute the number of whole days until the next scheduled rotation for a key. Returns `None` if the rotation schedule cannot be determined (no interv
crate/server/src/core/operations/auto_rotate.rs:341
↓ 6 callersFunctiondeactivate_key
Deactivate a key via KMIP `Revoke` with `CessationOfOperation` reason.
crate/server/src/tests/jose/key_state.rs:140
↓ 6 callersMethoddebug
(s,...o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previousnext →1,001–1,100 of 16,000, ranked by callers