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
↓ 3 callers
Function
der_of
DER-encodes `obj` with its `i2d_*` function.
crate/crypto/src/openssl/tsa.rs:100
↓ 3 callers
Function
dereference
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
derive
Derive ceremony keys from a 32-byte secret. Two independent keys are derived using SHAKE-256: - `aes_key`: for AES-256-GCM encryption of ceremony pay
crate/server_database/src/ceremony_keys.rs:85
↓ 3 callers
Function
derive_hkdf
HKDF key derivation using OpenSSL's native HKDF implementation Returns the derived key wrapped in [`Zeroizing`] so the bytes are scrubbed from memory
crate/server/src/core/operations/derive_key.rs:1093
↓ 3 callers
Method
derive_key
This operation is used to derive a new key from an existing key using a specified derivation method such as PBKDF2 or HKDF. The server SHALL perform t
crate/clients/client/src/kms_rest_client.rs:237
↓ 3 callers
Function
derive_key_ttlv_request
( salt: &[u8], initialization_vector: Option<Vec<u8>>, options: JsValue, )
crate/clients/wasm/src/wasm.rs:3060
↓ 3 callers
Method
deserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
destroy_all
Destroy all registered keys with `remove: true` to delete from the HSM.
crate/clients/clap/src/actions/bench/helpers.rs:54
↓ 3 callers
Function
destroy_key
Delete (destroy) a key from the KMS by its UUID.
crate/clients/cng/src/backend.rs:208
↓ 3 callers
Function
digest
Returns the digest of the object as explained in KMIP 2.1 Digest attribute.
crate/server/src/core/operations/digest.rs:24
↓ 3 callers
Function
draft_vectors
The draft test cases run by [`kmip_xml_draft_vectors`] (one file per test case) and, for those starting with `prefix`, by their scenario test.
crate/clients/clap/src/tests/xml/kmip.rs:258
↓ 3 callers
Function
e2e_ecies_roundtrip_with_policy
( curve: RecommendedCurve, allowed_shake: CryptographicAlgorithm, )
crate/server/src/tests/kmip_policy/e2e_ecies.rs:29
↓ 3 callers
Function
ec
(nid: Nid)
crate/server/src/tests/kmip_policy/certify.rs:28
↓ 3 callers
Function
ec_algorithm
(curve: Option<EcCurve>)
crate/interfaces/src/hsm/hsm_store.rs:103
↓ 3 callers
Function
ec_curve_to_recommended_curve
Map an `EcCurve` (HSM interface curve enum) to the corresponding KMIP `RecommendedCurve`. FIPS-approved NIST prime curves and the Edwards curves (`EdD
crate/interfaces/src/hsm/hsm_store.rs:40
↓ 3 callers
Function
ec_key
()
crate/server/src/core/certificate/oracle_signing.rs:526
↓ 3 callers
Function
ec_key_format_type
(object_type: ObjectType)
crate/interfaces/src/hsm/hsm_store.rs:107
↓ 3 callers
Function
ec_public_blob
Build a `BCRYPT_ECCKEY_BLOB` for a public EC key. Layout: ```text DWORD Magic DWORD cbKey // byte length of each coordinate (X and Y) BYTE[cbKey
crate/clients/cng/src/blob.rs:149
↓ 3 callers
Function
ec_public_blob_from_uncompressed
Build an EC public `BCRYPT_ECCKEY_BLOB` from a raw uncompressed EC point (`04 || X || Y`).
crate/clients/cng/src/blob.rs:167
↓ 3 callers
Function
ec_sign
Sign [`SIGN_DATA`] with the private key and return the raw signature bytes.
crate/server/src/tests/jose/key_state.rs:498
↓ 3 callers
Function
ed_verify
( verification_key: &PKey<Public>, data: &[u8], signature: &[u8], )
crate/crypto/src/crypto/elliptic_curves/verify.rs:127
↓ 3 callers
Function
editableVNode
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
email
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
email_claim
An OIDC claim set for `a@x` with the given `email_verified` claim.
crate/server/src/middlewares/jwt/jwt_token_auth.rs:378
↓ 3 callers
Function
emitReadable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
empty
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
emptyList
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
emptyOrderedMap
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
encode_der_length
Encode a DER length field into `buf` (short or long form). Supports lengths up to 65 535 (two-byte long form). Lengths above this limit are rejected
crate/server/src/core/operations/certify/build_certificate.rs:411
↓ 3 callers
Method
encrypt_aes_gcm_with_iv_buffer
Runs `CKM_AES_GCM` with `nonce` as the `pIv` buffer and returns the IV as it reads after the call (HSMs that generate the IV write it back into the bu
crate/hsm/base_hsm/src/session/session_impl.rs:993
↓ 3 callers
Function
encrypt_ec_ttlv_request
( key_unique_identifier: &str, plaintext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1468
↓ 3 callers
Function
end
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
ensureSize
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
ensure_active_certificate_of_ca
Check that `cert` was issued by the CA `ca_cert` (`ca_uid`), is within its validity period and is tracked by the KMS in the `Active` state (i.e. not r
crate/server/src/routes/enrollment.rs:484
↓ 3 callers
Function
ensure_backend_registered
Performs the KMS backend/config initialization that `C_GetFunctionList` used to do inline. Returns `Err(CKR_FUNCTION_FAILED)` if the KMS client cannot
crate/clients/pkcs11/provider/src/lib.rs:215
↓ 3 callers
Function
enum_field_name
Reads the variant name of an enumeration field, tolerant of both TTLV wire encodings. JSON-decoded TTLVs carry the variant name in `KmipEnumerationVa
crate/server/src/routes/kmip/audit.rs:38
↓ 3 callers
Function
env_slot_id
Read a slot id from the environment variable `name`.
crate/test_kms_server/src/test_server.rs:608
↓ 3 callers
Function
envelope_with
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:858
↓ 3 callers
Function
error_response_ttlv
Generate an "Invalid Message" KMIP error response message in TTLV format.
crate/server/src/routes/kmip/handlers.rs:130
↓ 3 callers
Function
error_response_ttlv_with_reason
Generate a KMIP error response message in TTLV format.
crate/server/src/routes/kmip/handlers.rs:67
↓ 3 callers
Function
expire
Marks the ticket as expired now, without sleeping.
crate/server/src/core/operations/login.rs:325
↓ 3 callers
Function
export_unwrapped
`Export` the key `uid` unwrapped (`KeyWrapType::NotWrapped`), as `user`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:647
↓ 3 callers
Method
extend_with
Extends the alphabet with additional characters, removing duplicates.
crate/crypto/src/crypto/fpe/alphabet.rs:192
↓ 3 callers
Method
externalDocs
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
extractAllUuids
(text: string)
ui/tests/e2e/helpers.ts:37
↓ 3 callers
Function
extract_algorithm
Extracts the `CryptographicAlgorithm` for audit purposes from a single-operation TTLV. Create / `CreateKeyPair` / Register: algorithm is in `Attribut
crate/server/src/routes/kmip/audit.rs:283
↓ 3 callers
Function
extract_all_uids
Parse all "Unique identifier: <uid>" lines from CLI output. Used to collect multiple share UIDs from `ckms sym keys create-split-key` output.
crate/clients/ckms/src/tests/rbac_tests.rs:662
↓ 3 callers
Function
extract_batch_audit_contexts
Extracts per-`BatchItem` audit context from a `RequestMessage` TTLV. For each `BatchItem` in the message, extracts: `operation` — the KMIP operation
crate/server/src/routes/kmip/audit.rs:75
↓ 3 callers
Function
extract_serial_hex_from_object
Extract the X.509 serial number from a KMS `Object` (`None` if not a certificate or not valid DER). Returns the serial exactly as OpenSSL's `BN_bn2he
crate/server_database/src/core/database_objects.rs:1059
↓ 3 callers
Function
extract_user_claim
Attempts to extract and validate a user claim from a JWT token Tries each provided JWT configuration until one successfully validates the token or al
crate/server/src/middlewares/jwt/jwt_token_auth.rs:47
↓ 3 callers
Function
fake_mac
Deterministic stand-in for the KMS MAC: depends on the algorithm, the IV (GMAC) and the data length, so a test can tell whether multi-part `Update` da
crate/clients/pkcs11/module/src/tests.rs:1178
↓ 3 callers
Function
fb
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
fetchHealth
(serverUrl: string, timeoutMs: number)
ui/src/utils/health.ts:79
↓ 3 callers
Function
field
(body: &Value, name: &str)
crate/server/src/tests/google_cse/token_validation.rs:157
↓ 3 callers
Method
fill_missing_fields
Fill missing (`None`) fields in `self` from `source`. Every `Option` field that is `None` in `self` gets overwritten with the corresponding value fro
crate/kmip/src/kmip_2_1/kmip_types.rs:1640
↓ 3 callers
Function
finalize_ctx
( client: &Arc<KmsClient>, name: &str, blob: Option<Vec<u8>>,
crate/clients/cng/src/key.rs:929
↓ 3 callers
Method
find
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
find
( &self, slot_id: usize, object_filter: HsmObjectFilter, )
crate/hsm/base_hsm/src/kms_hsm.rs:334
↓ 3 callers
Method
find_all
Return uid, state and attributes of ALL objects (bypasses all user filtering). Only called from the Administrator/CryptoOfficer Locate path. Callers
crate/server_database/src/core/database_objects.rs:686
↓ 3 callers
Method
find_all
( &self, _: Option<&Attributes>, _: Option<State>, _: &str,
crate/server/src/core/operations/locate.rs:401
↓ 3 callers
Function
find_all_fields_in_json
Collect ALL leaf values for a given tag name in the TTLV JSON tree.
crate/test_kms_server/src/vector_runner.rs:809
↓ 3 callers
Method
find_all_with_options
Same as [`Self::find_all`], restricted by `options`, which each object store applies to its own result: with several stores, callers must still cap th
crate/server_database/src/core/database_objects.rs:704
↓ 3 callers
Method
find_by_rotate_name
Find HSM keys by keyset name, with optional generation and latest filters. The keyset name is parsed from `CKA_LABEL` which carries the format `rotat
crate/interfaces/src/hsm/hsm_store.rs:689
↓ 3 callers
Function
find_ca_issued_certificates
Find, per serial number, the stored certificates that count for the revocation data (CRL, OCSP) of the CA certificate `ca` (`ca_x509`), among the cert
crate/server/src/core/certificate/find.rs:53
↓ 3 callers
Method
find_certificate_state_by_der
Find a certificate object by an exact match on its DER-encoded bytes. It does **not** require a known issuer UID: it scans every certificate object a
crate/server_database/src/core/database_objects.rs:738
↓ 3 callers
Function
find_init_container
Returns the init-container `Value` from the patches list. The `initContainers` patch value is either `[init]` or `init` directly.
crate/clients/k8s/operator/src/webhook.rs:509
↓ 3 callers
Method
find_matching
Return at most `options.limit` HSM keys matching the search. With `options.hsm_granted_uids`, only those keys are looked up, so the work is bounded by
crate/interfaces/src/hsm/hsm_store.rs:160
↓ 3 callers
Method
find_object_handles
Search for and retrieve object handles that match the provided attribute template. This function queries the HSM to find all objects in the current s
crate/hsm/base_hsm/src/session/session_impl.rs:509
↓ 3 callers
Function
find_sealed_file
Finds the `*.corrupt.<ext>` sibling file sealed next to `path`, if any.
crate/server/src/core/audit/store.rs:1058
↓ 3 callers
Function
find_ttlv_recursive
Depth-first search for the first `TTLV` node with the given tag. Used for response-side extraction where the layout is well-defined.
crate/server/src/routes/kmip/audit.rs:223
↓ 3 callers
Function
find_with_options_test
Verify the Locate listing queries (`find_with_options` / `find_all_with_options`): - a tag search returns the objects carrying *all* the searched tags
crate/server_database/src/tests/database_tests.rs:1117
↓ 3 callers
Method
fingerprint
Compute a fingerprint of `object`. Streams `object` serialized as JSON directly into the hasher, avoiding intermediate TTLV tree allocations and temp
crate/server_database/src/core/fingerprinter.rs:57
↓ 3 callers
Method
fingerprint
(&self)
crate/server_database/src/core/unwrapped_cache.rs:41
↓ 3 callers
Method
finish_key_pair_creation
Finish a key pair creation: apply this policy (when set) to the private key, which is the keyset anchor, print `message` with `tags` and both key ids,
crate/clients/clap/src/actions/shared/rotation_policy_args.rs:100
↓ 3 callers
Function
fips_hsm_gcm_encrypt
( gcm: AesGcmCapabilities, fixture_args: &[&str], )
crate/hsm/base_hsm/src/session/session_impl.rs:4503
↓ 3 callers
Function
flatten
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
flow
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
for_replacement
Create replacement attributes for a new key based on these (old) attributes. Per KMIP 2.1 Tables 298/303/304 (Re-certify / Re-key / Re-key Key Pair):
crate/kmip/src/kmip_2_1/kmip_attributes.rs:2026
↓ 3 callers
Function
force_state_
Unconditional state write (batch UNDO); `update_state_` is the monotonic one.
crate/server_database/src/stores/sql/mysql.rs:1870
↓ 3 callers
Method
forget_message_context
Marks the family's context closed without any FFI call (the token already ended it).
crate/hsm/base_hsm/src/session/message_context.rs:201
↓ 3 callers
Method
forget_session
Stop trusting the cached session of `token`, e.g. once the KMS logout revoked it.
crate/server/src/middlewares/auth_verifier/session.rs:129
↓ 3 callers
Function
format
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
forwarded_for
Every `X-Forwarded-For` line of a request as one comma-separated list. A proxy may append its own line instead of extending the client's, so reading o
crate/server/src/middlewares/audit/client_ip.rs:44
↓ 3 callers
Function
fpe_decrypt
( cli_conf_path: &str, input_file: &str, key_id: &str, data_type: &str, alphabet: Option<&
crate/clients/ckms/src/tests/fpe/encrypt_decrypt.rs:55
↓ 3 callers
Function
fpe_encrypt
( cli_conf_path: &str, input_file: &str, key_id: &str, data_type: &str, alphabet: Option<&
crate/clients/ckms/src/tests/fpe/encrypt_decrypt.rs:13
↓ 3 callers
Function
from_hex
(d: D)
crate/crypto/src/kat_vectors.rs:500
↓ 3 callers
Method
full_base_uid
(&self)
crate/interfaces/src/object_handle.rs:183
↓ 3 callers
Function
g
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
gcm_leases
(&self)
crate/server_database/src/core/database_objects.rs:442
↓ 3 callers
Method
gen
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
generate_cek
Generate a random CEK of the appropriate size for the given `enc` algorithm. The returned key is wrapped in `Zeroizing` so it is wiped on drop.
crate/server/src/routes/jose/aes_gcm.rs:40
↓ 3 callers
Function
generate_csr
( cli_conf_path: &str, private_key_id: &str, subject_name: &str, output_file: &std::path::Path
crate/clients/ckms/src/tests/certificates/generate_csr.rs:24
↓ 3 callers
Function
generate_csr_args
`ckms certificates generate-csr <args>`: returns stdout, or stderr as an error.
crate/clients/ckms/src/tests/certificates/generate_csr.rs:51
↓ 3 callers
Function
generate_ephemeral_ec
Generate a fresh ephemeral EC key pair on `nid` and return `(private_scalar_bytes, x_b64, y_b64)`.
crate/server/src/tests/jose/ecdh.rs:52
↓ 3 callers
Function
generate_html_output
Generate `target/criterion/load-report/index.html` with gnuplot SVG charts. If `gnuplot` is not on PATH, the HTML is still written but without charts
crate/clients/clap/src/actions/bench/load.rs:1481
↓ 3 callers
Function
generate_markdown_load_output_combined
Write `target/criterion/load.md` — one combined table per operation with one column per protocol (ttlv-json, ttlv-bytes, jose). `proto_results` is a
crate/clients/clap/src/actions/bench/load.rs:1394
↓ 3 callers
Function
generate_pqc_seed
Generate deterministic seed bytes for PQC key generation. Returns `seed_len` random bytes from `KmsRng`, in a zeroizing buffer. When `rng` is suppli
crate/crypto/src/crypto/pqc/mod.rs:78
↓ 3 callers
Function
generate_s
Compute the S byte-string per NIST SP 800-38G §6.1 step 8. S = R || `CIPH_K`(R XOR \[1\]_16) || `CIPH_K`(R XOR \[2\]_16) || ... truncated to `d` byte
crate/crypto/src/crypto/fpe/ff1.rs:307
↓ 3 callers
Function
generate_serial_number
Generate a fresh random certificate serial number (RFC 5280 §4.1.2.2). The serial must be unique per issuer. It used to be SHA-1(SPKI) of the subject
crate/server/src/core/operations/certify/build_certificate.rs:451
↓ 3 callers
Function
getDefaultRequestBodyValue
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previous
next →
2,101–2,200 of 16,000, ranked by callers