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
↓ 2 callers
Function
check_aead_vectors
( vectors: &[crate::kat_vectors::AeadVector], cipher_for: fn(&[u8]) -> SymCipher, )
crate/crypto/src/crypto/symmetric/tests.rs:1165
↓ 2 callers
Function
check_authentication_kacls_url
( kacls_url: Option<&str>, google_cse_kacls_url: &str, )
crate/server/src/routes/google_cse/jwt.rs:609
↓ 2 callers
Function
check_authorization_audience
( configured: Option<&Vec<String>>, token_aud: Option<&Vec<String>>, )
crate/server/src/routes/google_cse/jwt.rs:575
↓ 2 callers
Function
check_authorization_claims
Check the role, resource name and KACLS URL claims of an authorization token.
crate/server/src/routes/google_cse/jwt.rs:645
↓ 2 callers
Function
check_caller_iv_policy
(rows: &[(bool, bool)])
crate/hsm/base_hsm/src/session/session_impl.rs:4596
↓ 2 callers
Function
check_certificate_added_extensions
(cert_x509_der: &[u8], expected_crl_dp: &str)
crate/clients/ckms/src/tests/certificates/certify.rs:382
↓ 2 callers
Function
check_certificate_valid
Errors if the primary key revoked itself (type 0x20, RFC 9580 Section 5.2.1.11) or is past the Key Expiration Time of its newest self-signature (RFC 9
crate/crypto/src/crypto/openpgp/mod.rs:435
↓ 2 callers
Function
check_classic_gcm_policy
(rows: &[(bool, bool)])
crate/hsm/base_hsm/src/session/session_impl.rs:4522
↓ 2 callers
Function
check_crl_freshness
Check that a CRL has not passed its `nextUpdate` time (RFC 5280 §6.3 step (a)(1)(ii)). Returns an error if the CRL is expired. A CRL whose `nextUpdat
crate/server/src/core/operations/validate.rs:1303
↓ 2 callers
Function
check_decryption_tag
Authenticated Encryption Tag of an AEAD decryption (KMIP 2.1 §6.1.11, Table 198). A declared `Tag Length` must be valid for the cipher (`Bad Cryptogr
crate/server/src/core/operations/decrypt.rs:704
↓ 2 callers
Function
check_ecdsa_groups
(groups: &[EcdsaVerifyGroup])
crate/crypto/src/crypto/elliptic_curves/verify.rs:287
↓ 2 callers
Function
check_eddsa_groups
(groups: &[EddsaGroup], id: Id)
crate/crypto/src/crypto/elliptic_curves/verify.rs:310
↓ 2 callers
Function
check_input_lengths
(data: &[u8], tweak: &[u8])
crate/crypto/src/crypto/fpe/kmip_fpe.rs:33
↓ 2 callers
Function
check_keygen_official_vectors
Seeded keygen must reproduce the ACVP raw public key and the expanded private key.
crate/crypto/src/crypto/pqc/mod.rs:908
↓ 2 callers
Function
check_mac_sign_verify
Runs sign (one-shot, length query, too-small buffer, multi-part) and verify (one-shot, multi-part, tampered, wrong length) with `mechanism` against `T
crate/clients/pkcs11/module/src/tests.rs:1209
↓ 2 callers
Function
check_nonce
`CipherCtx::*_init` panics on a short nonce, so check it first.
crate/crypto/src/crypto/symmetric/aes_gcm_siv.rs:28
↓ 2 callers
Method
check_ns_length
(&self, ns_len: usize)
crate/crypto/src/crypto/fpe/ff1.rs:184
↓ 2 callers
Function
check_pinned_version
Fail when `spec` pins an `objectVersion` that differs from the `actual` version of the object fetched from the KMS. An empty `objectVersion` means "la
crate/clients/k8s/csi_provider/src/service.rs:284
↓ 2 callers
Function
check_row
(line: &str)
crate/server/src/core/audit/recovery.rs:46
↓ 2 callers
Function
check_sql_rotate_name
For SQL (non-HSM) objects, requires `rotate_name` to equal the object's UID. This enforces the gen-0 UID = keyset name invariant for deterministic `@
crate/server/src/core/operations/attributes/policy.rs:153
↓ 2 callers
Function
check_tls_unique
RFC 7030 §3.5: a CSR `challengePassword` carries base64(tls-unique) of the client's TLS connection, which the server MUST verify. `tls_unique` is the
crate/server/src/routes/est/enroll.rs:76
↓ 2 callers
Function
check_unauthenticated_bind
Refuse an unauthenticated server on a non-loopback address unless explicitly allowed: without authentication every caller is served as `default_userna
crate/server/src/start_kms_server.rs:2219
↓ 2 callers
Function
check_verify_official_vectors
`ml_dsa_verify` is also the SLH-DSA verifier (OpenSSL picks the algorithm from the key).
crate/crypto/src/crypto/pqc/mod.rs:955
↓ 2 callers
Method
checkin_session
Return a healthy session to the pool for reuse.
crate/hsm/base_hsm/src/slots.rs:433
↓ 2 callers
Method
checkout_session
Checkout for every other operation: closes message contexts first, because a token may refuse other operations while one is active (`CKR_OPERATION_ACT
crate/hsm/base_hsm/src/slots.rs:425
↓ 2 callers
Method
checkout_session_for_signature
Checkout for `sign`/`verify`: keeps any message context left open on the pooled session so consecutive signatures with the same key reuse it. The poo
crate/hsm/base_hsm/src/slots.rs:412
↓ 2 callers
Function
checkpoint_due
Whether a checkpoint should be attempted now: `new_events` rows are not covered yet, the last attempt was `since_attempt` ago, and a failed attempt is
crate/server/src/core/audit/checkpoint.rs:105
↓ 2 callers
Function
cj
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
ck_info_bytes
Serialize `CK_INFO` in its in-memory layout with padding bytes zeroed.
crate/hsm/base_hsm/src/hsm_lib.rs:1361
↓ 2 callers
Function
ck_to_usize
Converts a `CK_ULONG` length received from the C API to `usize`.
crate/clients/pkcs11/module/src/tests.rs:504
↓ 2 callers
Function
ckm_rsa_pkcs_key_unwrap
Key Unwrap using `CKM_RSA_PKCS` a.k.a PKCS #1 RSA V1.5 as specified in PKCS#11 v2.40 available at <https://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs.rs:83
↓ 2 callers
Function
ckm_rsa_pkcs_key_wrap
Key Wrap using `CKM_RSA_PKCS` a.k.a PKCS #1 RSA V1.5 as specified in PKCS#11 v2.40 available at <https://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs.rs:29
↓ 2 callers
Function
ckm_rsa_pkcs_oaep_key_decrypt
Decrypt using `CKM_RSA_PKCS_OAEP` a.k.a PKCS #1 RSA OAEP as specified in PKCS#11 v2.40 available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:162
↓ 2 callers
Function
ckms_raw
Run `ckms <args>`; nothing is echoed to the test output.
crate/clients/ckms/src/tests/google_cmd/remote_cse.rs:44
↓ 2 callers
Method
clean
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
clean_for_generation
(&self, vendor_id: &str)
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1868
↓ 2 callers
Function
cleanup
()
ui/tests/integration/kms-attributes-set-get-delete.test.ts:52
↓ 2 callers
Method
cleanup
Revoke then remove the recorded objects; returns one message per failed command. The ids are forgotten, so a later call (e.g. from `Drop`) does nothin
crate/clients/ckms/src/tests/google_cmd/remote_cse.rs:188
↓ 2 callers
Function
clearBuffer
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
clearScope
()
ui/src/actions/Secrets/KvSecrets.tsx:94
↓ 2 callers
Function
clear_all
(mgr: &mut ConnectionManager)
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:534
↓ 2 callers
Method
clear_find_objects_ctx
Clear the unread index
crate/clients/pkcs11/module/src/sessions.rs:613
↓ 2 callers
Method
clear_object_handles
Clear all cached object handles for this HSM slot. This function removes all entries from the object handle cache associated with this session's `Slo
crate/hsm/base_hsm/src/session/session_impl.rs:694
↓ 2 callers
Function
client_username
Extract the username from the client certificate, with the same checks as HTTP mTLS.
crate/server/src/socket_server.rs:634
↓ 2 callers
Function
client_with_mock
The owner client of `ctx`, with the Gmail API redirected to `mock`.
crate/clients/clap/src/tests/google_cmd/key_pairs.rs:301
↓ 2 callers
Function
cloneShallowKeyValuePair
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
cloneSpecificValue
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
codePointAt
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
collect_attributes
The attributes of `owm` named by `req_attributes` (all of them when empty), as Get Attributes reports them: stored values plus the server-derived ones
crate/server/src/core/operations/attributes/get.rs:85
↓ 2 callers
Function
collect_estimates_recursive
( base: &Path, dir: &Path, version_label: Option<&str>, results: &mut Vec<CtBenchmarkComplete>
crate/clients/clap/src/actions/bench/output.rs:163
↓ 2 callers
Function
collect_json_output
( version_label: Option<&str>, protocol_slug: &str, )
crate/clients/clap/src/actions/bench/output.rs:93
↓ 2 callers
Function
colon_split
Within a value, there can be properties (ie: `email:test@example.com`). This function extracts the property value, by splitting the input `value` (ie:
crate/crypto/src/openssl/x509_extensions.rs:505
↓ 2 callers
Method
committed_head
`(id, row_hash)` of the last event durably written by the writer (`(-1, zeros)` while the chain is empty or the writer has not resumed yet).
crate/server/src/core/audit/store.rs:248
↓ 2 callers
Function
compare_object
Deep compare of KMIP Object, including nested KeyBlock, KeyValue, and Attributes when present
crate/clients/clap/src/tests/xml/compare.rs:71
↓ 2 callers
Function
compare_status_and_reason
( ctx: &Ctx, exp_status: kmip_0::kmip_types::ResultStatusEnumeration, act_status: kmip_0::kmip_typ
crate/clients/clap/src/tests/xml/versioned/compare.rs:122
↓ 2 callers
Function
compileList
(s,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
complete_data
(&self)
crate/server_database/src/tests/sql_migration_tests.rs:122
↓ 2 callers
Method
componentDidMount
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
componentWillUnmount
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
components
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
compose
(...s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
composeJsonSchema
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
composeNode
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
conceal_hsm_rekey_error
Hide the resolved generation in errors: callers without a grant must only see their supplied identifier, whether the keyset is missing or resolves to
crate/server/src/core/operations/rekey/hsm.rs:454
↓ 2 callers
Function
config
(est_enabled: bool, scep_enabled: bool, allow_renewal: bool)
crate/server/src/tests/enrollment_tests.rs:84
↓ 2 callers
Function
config
(sqlite_path: &std::path::Path, ocsp_ca_uid: Option<String>)
crate/server/src/tests/revocation_authority_tests.rs:347
↓ 2 callers
Function
connect_dedicated_session
Opens a single, unpooled `PostgreSQL` session for holding the instance's advisory lock — see the module docs for why this must never share a connectio
crate/server_database/src/stores/audit/pgsql.rs:126
↓ 2 callers
Function
connect_resume_write_once
Connects, resumes, and writes one event for a single instance, returning `Err` (not panicking) on any failure — used by the concurrent-startup measure
crate/server_database/src/stores/audit/pgsql.rs:2079
↓ 2 callers
Function
connection_tls_unique
The `tls-unique` channel binding of the request's TLS connection, if any.
crate/server/src/routes/est/enroll.rs:96
↓ 2 callers
Method
considerAll
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
context_tree_updateNode
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
count_non_destroyed_keys
Count non-destroyed key objects across all HSM slots. All objects present in an HSM are cryptographic key material and are by definition non-destroye
crate/interfaces/src/hsm/hsm_store.rs:775
↓ 2 callers
Function
createConverter
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
createDOMPurify
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
createIterResult
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
createLine
(s,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
createSubscription
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
create_
( uid: Option<String>, owner: &str, object: &Object, attributes: &Attributes, tags: &HashS
crate/server_database/src/stores/sql/mysql.rs:1723
↓ 2 callers
Function
create_aes
(kms: &KMS, uid_str: &str)
crate/server/src/tests/hsm/rotation.rs:283
↓ 2 callers
Function
create_base_openssl_acceptor
Create and configure a basic OpenSSL `SslAcceptorBuilder` with common TLS settings This function handles the common configuration shared between HTTP
crate/server/src/tls_config.rs:55
↓ 2 callers
Function
create_ec_ca
(kms: &KMS, owner: &str)
crate/server/src/routes/ssh/mod.rs:471
↓ 2 callers
Function
create_ecdh_x25519_key_pair_rest
( app: &S, alg: &str, )
crate/server/src/tests/jose/common.rs:234
↓ 2 callers
Function
create_ed25519_key_pair
Generate an Ed25519 Key Pair. FIPS 140-3 compliant **for digital signature only**. Sources: - NIST.SP.800-186 - Section 3.1.2 table 2. - NIST.FIPS.18
crate/crypto/src/crypto/elliptic_curves/operation.rs:514
↓ 2 callers
Function
create_ed448_key_pair
Generate an Ed448 Key Pair. FIPS 140-3 compliant **for digital signature only**. Sources: - NIST.SP.800-186 - Section 3.1.2 table 2. - NIST.FIPS.186-
crate/crypto/src/crypto/elliptic_curves/operation.rs:564
↓ 2 callers
Function
create_hsm_aes_key
Create an AES-256 key on the HSM with the given `sensitive` flag.
crate/server/src/tests/hsm/export_key_bytes.rs:31
↓ 2 callers
Function
create_hsm_ca
( kms: &Arc<KMS>, slot: usize, kind: CaKind, sensitive: bool, )
crate/server/src/tests/hsm/ssh_ca.rs:67
↓ 2 callers
Function
create_intermediate_ca
Create an intermediate CA issued by `root_id` (its CDP is injected by the server).
crate/test_kms_server/src/crl_tests.rs:1261
↓ 2 callers
Function
create_key_wrapped_by
`Create` a 256-bit AES key wrapped at rest by the HSM key `wrapping_key_uid`, as `user`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:906
↓ 2 callers
Function
create_ml_dsa_key_pair
Create an ML-DSA key pair. Supports ML-DSA-44, ML-DSA-65, ML-DSA-87 via OpenSSL 3.4+. When `rng` is supplied, a 32-byte seed is drawn from `KmsRng`
crate/crypto/src/crypto/pqc/ml_dsa.rs:24
↓ 2 callers
Function
create_ml_kem_key_pair
Create an ML-KEM key pair. Supports `ML-KEM-512`, `ML-KEM-768`, `ML-KEM-1024` via OpenSSL 3.4+. When `rng` is supplied, a 64-byte seed is drawn from
crate/crypto/src/crypto/pqc/ml_kem.rs:27
↓ 2 callers
Function
create_ml_kem_key_pair
Create a ML-KEM key pair using `run_ckms` and return (`private_key_id`, `public_key_id`)
crate/clients/ckms/src/tests/pqc/rotation_policy.rs:9
↓ 2 callers
Function
create_msk_object
( vendor_id: &str, msk_bytes: Zeroizing<Vec<u8>>, mut attributes: Attributes, mpk_uid: &str,
crate/crypto/src/crypto/cover_crypt/master_keys.rs:75
↓ 2 callers
Function
create_object_operation
Persist a brand-new KV-managed `SecretData` object (metadata), owned by `owner`.
crate/server/src/routes/kv/metadata.rs:330
↓ 2 callers
Function
create_opaque_object_ttlv_request
( object_value: Option<String>, object_id: Option<String>, tags: Vec<String>, _sensitive: bool
crate/clients/wasm/src/wasm.rs:1299
↓ 2 callers
Function
create_pair
(kms: &KMS, user: &UserId)
crate/server/src/core/operations/rekey/keypair/sql.rs:403
↓ 2 callers
Function
create_plain_symmetric_key
Create an AES-256 symmetric key owned by `owner` **without** the `aws-xks` tag, to model a non-XKS key that must remain unreachable from the XKS endpo
crate/server/src/routes/aws_xks/tests.rs:157
↓ 2 callers
Function
create_rsa
(kms: &Arc<KMS>)
crate/server/src/tests/azure_ekm/routes_tests.rs:202
↓ 2 callers
Function
create_rsa_gnupg_keypair
( kms_rest_client: &KmsClient, bits: usize, )
crate/clients/pkcs11/provider/src/tests.rs:744
↓ 2 callers
Function
create_rsa_key_pair_ttlv_request
( private_key_id: Option<String>, tags: Vec<String>, cryptographic_length: usize, sensitive: b
crate/clients/wasm/src/wasm.rs:866
↓ 2 callers
Function
create_secret_data
An owned `SecretData` object: an object type that can neither wrap nor unwrap keys.
crate/server/src/core/lint_cleanup_characterization_tests.rs:1032
← previous
next →
2,901–3,000 of 16,000, ranked by callers