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
↓ 16 callers
Function
self_signed
(key: &PKey<Private>, cn: &str)
crate/server/src/tests/enrollment_tests.rs:264
↓ 16 callers
Method
set_wrapping_key_id
Set the wrapping key id This is the key that will be used to wrap the key on creation The wrapping key id is stored as a vendor attribute # Arguments
crate/kmip/src/kmip_2_1/extra/wrap_on_create.rs:21
↓ 16 callers
Function
setup_observing_metrics
()
crate/server/src/core/otel_metrics.rs:847
↓ 16 callers
Function
sign_test_jwt
Sign `claims` as an RS256 JWT carrying `kid`.
crate/server/src/tests/google_cse/utils.rs:88
↓ 16 callers
Function
start_default_test_kms_server_with_crypto_officer_users
Privileged users. Base configuration is loaded from `test_data/configs/server/rbac/crypto_officer_users.toml`; the `crypto_officer_users` field is in
crate/test_kms_server/src/test_server.rs:1089
↓ 16 callers
Function
step_ok
(name: &str)
crate/clients/clap/src/actions/cng_verify.rs:618
↓ 16 callers
Function
validate_crl_url
Validates that a CRL Distribution Point URL is safe to fetch. Mitigations applied (COSMIAN-2026-021): - Only `http://` and `https://` schemes are per
crate/server/src/core/certificate/mod.rs:164
↓ 16 callers
Function
wrap_and_cache
Wrap the object using a wrapping key from the database or HSM, then cache the unwrapped copy. An object that is already wrapped is stored as-is. If i
crate/server/src/core/wrapping/wrap.rs:50
↓ 16 callers
Method
write_event_atomic
(&mut self, event: &AuditEvent)
crate/server_database/src/stores/audit/pgsql.rs:855
↓ 15 callers
Function
B
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 15 callers
Function
assert_error
Assert a structured CSE error reply: expected status, exact body shape, `details` content.
crate/server/src/tests/google_cse/token_validation.rs:69
↓ 15 callers
Function
authn_token
An authentication token issued by the local identity provider.
crate/server/src/tests/google_cse/utils.rs:182
↓ 15 callers
Function
b64_decode
Helper: decode a base64url (no-padding) string to bytes, returning `CryptoApiError::BadRequest` with a descriptive message on failure.
crate/server/src/routes/jose/error.rs:122
↓ 15 callers
Function
backend
Returns the currently registered backend. Returns [`ModuleError::UserNotLoggedIn`] when no backend is registered (i.e. before `C_GetFunctionList` or a
crate/clients/pkcs11/module/src/traits/backend.rs:240
↓ 15 callers
Function
certify_pqc_self_signed
Self-signed PQC certificate creation + basic link verification.
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:81
↓ 15 callers
Function
create_ec_key_pair
( cli_conf_path: &str, curve: &str, tags: &[&str], sensitive: bool, )
crate/clients/ckms/src/tests/elliptic_curve/create_key_pair.rs:14
↓ 15 callers
Function
create_pqc_key_pair_request
Build a `CreateKeyPair` request for a post-quantum algorithm (ML-KEM or ML-DSA).
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:279
↓ 15 callers
Function
create_test_ca
Generate a self-signed CA certificate + private key for testing.
crate/crypto/src/openssl/ocsp.rs:922
↓ 15 callers
Function
decode_jwt_authorization_token
Decode a json web token (JWT) used for Google CSE
crate/server/src/routes/google_cse/jwt.rs:139
↓ 15 callers
Method
default
()
crate/server/src/config/wizard/cert_gen.rs:56
↓ 15 callers
Function
extractUuid
(text: string)
ui/tests/e2e/helpers.ts:16
↓ 15 callers
Function
from_request
Build an [`ObjectHandle`] from an optional `UniqueIdentifier` request field. Extracts and validates the unique identifier from a KMIP request, elimin
crate/server/src/core/uid_utils.rs:20
↓ 15 callers
Function
generate_csr
Generate a PKCS#10 CSR for the private key `private_key_id`. Signs with the exact key requested: HSM keys through the crypto oracle, database keys in
crate/server/src/core/operations/generate_csr.rs:109
↓ 15 callers
Function
get_cert_der
Retrieve the DER-encoded certificate from the KMS.
crate/server/src/tests/crl_tests.rs:190
↓ 15 callers
Method
import
This operation requests the server to Import a Managed Object specified by its Unique Identifier. The request specifies the object being imported and
crate/clients/client/src/kms_rest_client.rs:413
↓ 15 callers
Function
init
Initialize test environment once before any tests run
crate/crypto/src/lib.rs:142
↓ 15 callers
Function
isIterable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 15 callers
Method
is_wrapped
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:463
↓ 15 callers
Function
make_chain
Build a valid N-event hash chain, writing to `path` and returning the events.
crate/clients/clap/src/actions/audit.rs:1180
↓ 15 callers
Function
scope
The `/azureekm[/<path_prefix>]` scope with its production middleware stack. Shared by the HTTP server and the route tests, so the tests exercise the
crate/server/src/routes/azure_ekm/mod.rs:102
↓ 15 callers
Function
search_incompatible_key
(hsm: &BaseHsm<P>, cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:2258
↓ 15 callers
Method
serialize
Serialize a `RequestMessage` to the wire body for this transport.
crate/clients/clap/src/actions/bench/transport.rs:136
↓ 15 callers
Function
test_db
()
crate/server_database/src/core/database_objects.rs:1100
↓ 15 callers
Method
validate
This operation requests the server to validate a certificate chain and return information on its validity. Only a single certificate chain SHALL be in
crate/server/src/core/kms/kmip.rs:767
↓ 15 callers
Method
validate_csr
Validate `csr` against this template. Returns `KmsError::InvalidRequest` (HTTP 422) describing the first violation, or the requests parsed from the CS
crate/server/src/core/operations/certify/template.rs:390
↓ 14 callers
Function
V
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 14 callers
Method
as_secs
(self)
crate/kmip/src/ttlv/interval.rs:41
↓ 14 callers
Function
assert_markers
( pool: &P, completed: &[MigrationStep], )
crate/server_database/src/tests/sqlite_migration_tests.rs:123
↓ 14 callers
Function
assert_policy_denied
(res: Result<(), KmsError>)
crate/server/src/tests/kmip_policy/helpers.rs:55
↓ 14 callers
Function
assert_valid_chain
(events: &[AuditEvent])
crate/server/src/core/audit/store.rs:458
↓ 14 callers
Function
create_base_symmetric_key_request
Helper function to create a symmetric key for testing `DeriveKey` operations
crate/server/src/tests/derive_key_tests.rs:58
↓ 14 callers
Function
create_named_ca
Create a self-signed CA with a custom common name. This is the multi-CA variant of [`create_ca`]; the plain helper always uses the same CN which caus
crate/test_kms_server/src/crl_tests.rs:69
↓ 14 callers
Function
deny
(reason: ErrorReason, msg: impl Into<String>)
crate/server/src/core/operations/algorithm_policy.rs:762
↓ 14 callers
Function
destroy_all
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:212
↓ 14 callers
Method
encrypt
NIST SP 800-38G §6 letters: `len_n`=n, `tweak_len_t`=t, `len_u`=u, `len_v`=v, `bytes_b`=b, `bytes_d`=d, `block_p`=P, `round`=i, `block_r`=R, `block_s`
crate/crypto/src/crypto/fpe/ff1.rs:361
↓ 14 callers
Method
encrypt
( &'a self, _slot_id: usize, _key_id: &'a [u8], _algorithm: CryptoAlgorithm,
crate/server/src/core/operations/certify/hsm_subject_tests.rs:157
↓ 14 callers
Method
enforce_create_permission
Enforce that the caller has `Create` access-right. When `crypto_officer.users` is configured, the user must either: - have been explicitly granted th
crate/server/src/core/kms/permissions.rs:275
↓ 14 callers
Method
fill_public_bytes
Fill a buffer with random bytes for values that **leave the server in clear** (nonces, IVs, certificate serials, KMIP `RNGRetrieve`, PKCS#11 `C_Genera
crate/crypto/src/crypto/rng/mod.rs:141
↓ 14 callers
Method
find
( &self, researched_attributes: Option<&Attributes>, state: Option<State>, use
crate/interfaces/src/hsm/hsm_store.rs:582
↓ 14 callers
Function
find_attrs
Single call site of `build_find_attributes` (its filter parameter shape is the only thing a refactor may change).
crate/interfaces/src/hsm/hsm_store.rs:3350
↓ 14 callers
Function
get_request
(path: &str)
crate/server/src/routes/kv/tests.rs:122
↓ 14 callers
Function
import_key
(params: ImportKeyParams)
crate/clients/ckms/src/tests/shared/import.rs:48
↓ 14 callers
Function
make_state
(with_token_secret: bool)
crate/clients/k8s/operator/src/webhook.rs:381
↓ 14 callers
Function
multi_threaded_rsa
( slot: &Arc<SlotManager>, digest: RsaOaepDigest, threads: usize, )
crate/hsm/base_hsm/src/tests_shared.rs:1787
↓ 14 callers
Function
openssl_private_key_to_kmip
Convert an openssl private key to a KMIP private Key (`Object::PrivateKey`) of the given `KeyFormatType`
crate/crypto/src/openssl/private_key.rs:257
↓ 14 callers
Method
owner_id
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:92
↓ 14 callers
Function
postNoTTLVRequest
(path: string, request: object, serverUrl: string)
ui/src/utils/utils.ts:188
↓ 14 callers
Function
run_encrypt_decrypt_test
( cli_conf_path: &str, key_id: &str, data_encryption_algorithm: DataEncryptionAlgorithm, key_e
crate/clients/ckms/src/tests/symmetric/encrypt_decrypt.rs:111
↓ 14 callers
Function
selectOptionById
(page: Page, cssSelector: string, optionText: string)
ui/tests/e2e/helpers.ts:218
↓ 14 callers
Method
sign
( &self, _key_pw: &Password, hash: HashAlgorithm, data: &[u8], )
crate/crypto/src/crypto/openpgp/mod.rs:222
↓ 14 callers
Function
unauthorized
()
crate/server/src/tests/google_cse/token_validation.rs:60
↓ 14 callers
Method
unshift
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 14 callers
Function
unused
()
crate/server/src/core/operations/locate.rs:278
↓ 14 callers
Function
wrap_bytes
Wrap `bytes` with the `google_cse` key (through `/google_cse/wrap`), return the wrapped key.
crate/server/src/tests/google_cse/crypto_paths.rs:77
↓ 14 callers
Method
wrapping_key_uid
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:471
↓ 13 callers
Method
as_ref
(&self)
crate/interfaces/src/user_id.rs:64
↓ 13 callers
Function
b64
(bytes: &[u8])
crate/server/src/tests/google_cse/crypto_paths.rs:47
↓ 13 callers
Function
body_of
( resp: ServiceResponse<B>, )
crate/server/src/tests/enrollment_tests.rs:314
↓ 13 callers
Function
cert_serial
Return the serial number bytes from a DER-encoded certificate.
crate/server/src/tests/crl_tests.rs:181
↓ 13 callers
Function
cleanup_key_pair
Cleanup helper: revoke + destroy a key pair (best-effort).
crate/clients/cng/src/tests.rs:36
↓ 13 callers
Method
contains
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callers
Function
create
(kms: &KMS, request: Create, owner: &UserId)
crate/server/src/core/operations/create.rs:47
↓ 13 callers
Function
create_aes_key
Create an AES-256 symmetric key and return its UID.
crate/server/src/tests/revoke_tests.rs:54
↓ 13 callers
Function
create_kek
(kek_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:287
↓ 13 callers
Method
decrypt
( &self, _slot_id: usize, key_id: &[u8], _algorithm: CryptoAlgorithm,
crate/server/src/tests/hsm/fake_hsm_authz.rs:244
↓ 13 callers
Method
decrypt
This operation requests the server to perform a decryption operation on the provided data using a Managed Cryptographic Object as the key for the decr
crate/clients/client/src/kms_rest_client.rs:228
↓ 13 callers
Function
decrypt_fixture_session
(supports_message: bool, args: &[&str])
crate/hsm/base_hsm/src/session/session_impl.rs:4693
↓ 13 callers
Method
decrypt_object
(&self, uid: &str, ciphertext: &[u8])
crate/server_database/src/stores/redis/objects_db.rs:221
↓ 13 callers
Method
delete
Delete an object from the database.
crate/server_database/src/core/database_objects.rs:540
↓ 13 callers
Method
end
(self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:651
↓ 13 callers
Function
enforce
( params: &ServerParams, operation_tag: &str, op: &Operation, )
crate/server/src/tests/kmip_policy/helpers.rs:64
↓ 13 callers
Function
generate_aes_key
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:268
↓ 13 callers
Function
generate_crl
Generate a CRL for the given issuer certificate. # Arguments `kms` — KMS instance `issuer_certificate_id` — UID of the CA certificate `validity_days`
crate/server/src/core/operations/generate_crl.rs:269
↓ 13 callers
Function
get_redis_url
()
crate/server_database/src/tests/mod.rs:52
↓ 13 callers
Method
invalidate
Invalidate a single entry (called on mutations).
crate/server_database/src/core/object_cache.rs:170
↓ 13 callers
Function
isKeyed
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callers
Method
is_usage_authorized_for
Check that `flag` bit is set in object's `CryptographicUsageMask`. If FIPS mode is disabled, check if the Unrestricted bit is set too. Return `true`
crate/kmip/src/kmip_2_1/kmip_attributes.rs:740
↓ 13 callers
Function
kmip_certificate_to_openssl
(certificate: &Object)
crate/crypto/src/openssl/certificate.rs:27
↓ 13 callers
Method
open
Inverse of [`Self::seal`], refusing an expired or idle session. Revocation is checked by [`Self::read_sealed`].
crate/server/src/middlewares/ui_session.rs:303
↓ 13 callers
Function
params_with_default_policy
()
crate/server/src/tests/kmip_policy/helpers.rs:35
↓ 13 callers
Function
parse_mechanism
(mechanism: CK_MECHANISM)
crate/clients/pkcs11/module/src/core/mechanism.rs:184
↓ 13 callers
Function
raw_client
A raw, unpooled connection used only to simulate a privileged administrator bypassing the append-only guard (disabling triggers) or attempting to muta
crate/server_database/src/stores/audit/pgsql.rs:1042
↓ 13 callers
Method
read
(de: &mut Deserializer)
crate/server_database/src/stores/redis/permissions.rs:118
↓ 13 callers
Method
rekey
This request is used to generate a replacement key for an existing symmetric key. It is analogous to the Create operation, except that attributes of t
crate/server/src/core/kms/kmip.rs:676
↓ 13 callers
Method
reset_usage_limits_count
The server sets the Usage Limits Count to the Total when the attribute is created (KMIP 2.1 §4.59: a client Count is ignored on object creation).
crate/kmip/src/kmip_2_1/kmip_attributes.rs:496
↓ 13 callers
Function
revoke
( cli_conf_path: &str, sub_command: &str, key_id: &str, revocation_reason: &str, )
crate/clients/ckms/src/tests/shared/revoke.rs:23
↓ 13 callers
Function
revoke_cert
Revoke a certificate with the given reason code.
crate/server/src/tests/crl_tests.rs:159
↓ 13 callers
Function
revoke_ops
Helper: revoke operations on an HSM key
crate/server/src/tests/hsm/permissions.rs:78
↓ 13 callers
Function
run_all_xml_vectors_in_dir
Run every XML vector of a directory (sorted) against the shared test server. `DELEGATED_PREFIXES` vectors are skipped here: their dedicated tests in
crate/clients/clap/src/tests/xml/runner.rs:66
↓ 13 callers
Function
save_pkcs11_client_config
()
crate/clients/pkcs11/provider/src/tests.rs:73
← previous
next →
401–500 of 16,000, ranked by callers