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
↓ 7 callers
Function
parse_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 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
pkcs11_lib_path
Returns the expected path to the built PKCS#11 shared library.
crate/clients/ckms/src/tests/pkcs11.rs:95
↓ 7 callers
Function
pki_message
Build a signed SCEP `pkiMessage` carrying `csr` encrypted to `ca`.
crate/server/src/tests/enrollment_tests.rs:896
↓ 7 callers
Function
policy_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 callers
Function
pqc_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 callers
Function
pqc_keygen_seeded
( name: &CStr, seed: &[u8], propquery: Option<&CStr>, )
crate/crypto/src/crypto/pqc/mod.rs:107
↓ 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:24
↓ 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:246
↓ 7 callers
Method
redeem
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 callers
Function
rename
( 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 callers
Function
require_hsm_env
(expected_model: &str)
crate/test_kms_server/src/hsm_startup_tests.rs:44
↓ 7 callers
Method
reserve_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 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:248
↓ 7 callers
Function
rfc3394_unwrap
(ciphertext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:69
↓ 7 callers
Method
rows
(&self, sql: &str)
crate/server_database/src/tests/sql_migration_tests.rs:167
↓ 7 callers
Function
rsa_wide
()
crate/clients/clap/src/actions/cng_verify.rs:73
↓ 7 callers
Function
run
(args: &[&str], config: KmsClientConfig)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:21
↓ 7 callers
Method
run_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 callers
Function
run_ckms
(args: &[&str], conf: &std::path::Path)
crate/clients/ckms/tests/lint_cleanup_characterization_tests.rs:16
↓ 7 callers
Function
run_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 callers
Function
seed_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 callers
Function
seed_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 callers
Function
send
( request_header: RequestMessageHeader, batch_item: Vec<RequestMessageBatchItemVersioned>, )
crate/server/src/tests/ttlv_tests/batch_semantics_2_1.rs:73
↓ 7 callers
Function
send_raw
Send `request` as `user`; return the status and the raw body.
crate/server/src/routes/kv/tests.rs:83
↓ 7 callers
Method
serialize_i32
(self, v: i32)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:202
↓ 7 callers
Function
serialize_tagged_label
( id: &[u8], tags: Option<&HashSet<String>>, max_len: Option<usize>, )
crate/hsm/base_hsm/src/session/mod.rs:59
↓ 7 callers
Function
service
()
crate/clients/k8s/csi_provider/src/service.rs:445
↓ 7 callers
Method
set
(key: &'static str, value: Option<&str>)
crate/server/src/tests/google_cse/server_setup.rs:355
↓ 7 callers
Method
set_db_version
(&self, version: &str)
crate/server_database/src/stores/migrate.rs:258
↓ 7 callers
Function
set_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 callers
Method
shift
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
size
(n: usize)
crate/server_database/src/core/unwrapped_cache.rs:493
↓ 7 callers
Function
snapshot
(kms: &KMS, uid: &str)
crate/server/src/core/lint_cleanup_characterization_tests.rs:126
↓ 7 callers
Function
source
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Method
status_code
(&self)
crate/server/src/routes/mod.rs:49
↓ 7 callers
Function
test_generate_key
(session_h: CK_ULONG)
crate/clients/pkcs11/module/src/utils.rs:36
↓ 7 callers
Function
test_hsm_kek_startup
(expected_model: &str)
crate/test_kms_server/src/hsm_startup_tests.rs:49
↓ 7 callers
Function
test_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 callers
Function
test_secret
()
crate/server_database/src/ceremony_keys.rs:171
↓ 7 callers
Function
ticket
(value: Vec<u8>)
crate/server/src/core/operations/login.rs:253
↓ 7 callers
Function
to_path
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
to_usize
Convert a Win32 `DWORD` size to `usize` (lossless on every Windows target).
crate/clients/cng/src/provider.rs:27
↓ 7 callers
Function
try_create_ec_kp
( rt: &Runtime, client: &KmsClient, name: &str, curve: RecommendedCurve, )
crate/clients/clap/src/actions/bench/helpers.rs:465
↓ 7 callers
Method
update_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 callers
Method
update_state
(&self, _: &str, _: State)
crate/server/src/core/operations/locate.rs:317
↓ 7 callers
Function
validate_cryptographic_parameters
( params: &Option<CryptographicParameters>, wl: &KmipWhitelists, )
crate/server/src/core/operations/algorithm_policy.rs:851
↓ 7 callers
Method
version
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
writeTempFile
(name: string, content: string | Buffer)
ui/tests/e2e/helpers.ts:482
↓ 7 callers
Function
write_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 callers
Function
write_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 callers
Function
write_temp
(contents: &str)
crate/server/src/config/command_line/clap_config.rs:1007
↓ 7 callers
Function
xor_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 callers
Function
$
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
Lf
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
Sa
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
Zi
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
__assign
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
_deepClone
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
activate_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 callers
Function
active_owm
(ext_attrs: Attributes)
crate/interfaces/src/stores/object_with_metadata.rs:333
↓ 6 callers
Function
aes_gcm_params
()
crate/clients/clap/src/actions/bench/helpers.rs:172
↓ 6 callers
Method
allows
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 callers
Function
append_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 callers
Function
assert_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 callers
Function
assert_filter
( algorithm: Option<CryptographicAlgorithm>, object_type: Option<ObjectType>, expected
crate/interfaces/src/hsm/interface.rs:914
↓ 6 callers
Function
assert_finalize_fails_pending
(blob: Option<Vec<u8>>, algorithm: KeyAlgorithm)
crate/clients/cng/src/key.rs:747
↓ 6 callers
Function
assert_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 callers
Function
base_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 callers
Function
build_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 callers
Function
build_signed_pkimessage
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:391
↓ 6 callers
Function
cek_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 callers
Function
certify_pubkey
Helper: create a keypair, then certify the public key with a subject name.
crate/test_kms_server/src/certify_tests.rs:510
↓ 6 callers
Function
certify_renewal
Helper: create a certificate (self-signed or CA-signed), then re-certify it.
crate/test_kms_server/src/certify_tests.rs:901
↓ 6 callers
Function
cfg
()
crate/hsm/proteccio/src/tests.rs:20
↓ 6 callers
Function
check_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 callers
Method
check_new_objects
[`Self::check`] for every object a list of database operations creates or replaces.
crate/server/src/core/operations/constraints.rs:107
↓ 6 callers
Method
check_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 callers
Function
checkpoint_message
(head_id: i64, head_hash: &[u8; 32])
crate/access/src/audit/checkpoint.rs:42
↓ 6 callers
Method
compile
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
compile_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 callers
Function
compromise_key
Compromise a key via KMIP `Revoke` with `KeyCompromise` reason.
crate/server/src/tests/jose/key_state.rs:163
↓ 6 callers
Function
concat_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 callers
Function
config_for
(mock: &MockGoogle, token_path: &str)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:14
↓ 6 callers
Method
covercrypt_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 callers
Function
createPqcKeyPair
(page: Page, algorithm: string)
ui/tests/e2e/helpers.ts:421
↓ 6 callers
Function
create_aes_key
(kms: &KMS, owner: &UserId)
crate/server/src/tests/row_binding_tests.rs:37
↓ 6 callers
Function
create_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 callers
Function
create_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 callers
Function
create_key
(kms: &KMS, owner: &UserId)
crate/server/src/core/operations/batch_undo.rs:448
↓ 6 callers
Function
create_pgp_key
( cli_conf_path: &str, action: &CreatePgpKeyAction, )
crate/clients/ckms/src/tests/pgp/create_key.rs:13
↓ 6 callers
Function
create_secret_data_kmip_object
Create a secret data for the given type
crate/kmip/src/kmip_2_1/requests/create.rs:185
↓ 6 callers
Function
create_sym_key
( rt: &Runtime, client: &KmsClient, name: &str, bits: usize, algo: CryptographicAlgorithm,
crate/clients/clap/src/actions/bench/helpers.rs:381
↓ 6 callers
Function
crud
(db: &DB)
crate/server_database/src/tests/database_tests.rs:577
↓ 6 callers
Function
cse_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 callers
Function
curve_der_oid
(curve: EcCurve)
crate/hsm/base_hsm/src/session/ec.rs:27
↓ 6 callers
Function
curve_from_der_oid
(oid: &[u8])
crate/hsm/base_hsm/src/session/ec.rs:107
↓ 6 callers
Function
days_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 callers
Function
deactivate_key
Deactivate a key via KMIP `Revoke` with `CessationOfOperation` reason.
crate/server/src/tests/jose/key_state.rs:140
↓ 6 callers
Method
debug
(s,...o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previous
next →
1,001–1,100 of 16,000, ranked by callers