Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
12,829 in github.com/Cosmian/kms
⨍
Functions
12,829
◇
Types & classes
2,591
↓ 13 callers
Method
get_unwrapped
Unwrap the object (if need be) and return the unwrapped object. The unwrapped object is cached in memory. # Arguments `uid` - The unique identifier of
crate/server/src/core/kms/other_kms_methods.rs:57
↓ 13 callers
Method
hsm_lib
Get a reference to the underlying `HsmLib` for direct PKCS#11 function calls.
crate/hsm/base_hsm/src/base_hsm.rs:155
↓ 13 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:412
↓ 13 callers
Function
import_key
(params: ImportKeyParams)
crate/clients/ckms/src/tests/shared/import.rs:47
↓ 13 callers
Function
invalid
(msg: impl Into<String>)
crate/server/src/core/operations/certify/template.rs:113
↓ 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:725
↓ 13 callers
Method
is_wrapped
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:449
↓ 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:1027
↓ 13 callers
Function
revoke_ops
Helper: revoke operations on an HSM key
crate/server/src/tests/hsm/permissions.rs:76
↓ 13 callers
Function
rsa_pkcs_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:565
↓ 13 callers
Function
save_pkcs11_client_config
()
crate/clients/pkcs11/provider/src/tests.rs:58
↓ 13 callers
Method
sign
( &self, _key_pw: &Password, hash: HashAlgorithm, data: &[u8], )
crate/crypto/src/crypto/openpgp/mod.rs:222
↓ 13 callers
Function
stripHash
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 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:75
↓ 13 callers
Method
valueOf
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 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:76
↓ 13 callers
Method
wrapping_key_uid
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:457
↓ 12 callers
Function
Db
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callers
Function
G
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callers
Function
Lr
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callers
Function
asn1_object
The [`Asn1Object`] of a NID. `rust-openssl` has no `OBJ_nid2obj` wrapper; the short name round-trips through `OBJ_txt2obj`, which resolves short name
crate/crypto/src/openssl/oid.rs:14
↓ 12 callers
Function
build_ocsp_response
( request_der: &[u8], _issuer_cert: &X509Ref, signer_cert: &X509Ref, signer_key: &PKeyRef<Priv
crate/crypto/src/openssl/ocsp.rs:423
↓ 12 callers
Function
build_test_request
Build a minimal OCSP request for a given serial number using the openssl crate's high-level API.
crate/crypto/src/openssl/ocsp.rs:1091
↓ 12 callers
Method
call_get_attributes
( &self, key_handle: CK_OBJECT_HANDLE, template: &mut [CK_ATTRIBUTE], )
crate/hsm/base_hsm/src/session/session_impl.rs:3306
↓ 12 callers
Function
certify_keypair
Helper: certify with `generate_key_pair=true`, optionally CA-signed.
crate/test_kms_server/src/certify_tests.rs:202
↓ 12 callers
Function
check_ecc_mask_against_flags
Check that bits set in `mask` are only bits set in `flags`. If any bit set in `mask` is not set in `flags`, raise an error. If `mask` is None, raise
crate/crypto/src/crypto/elliptic_curves/operation.rs:44
↓ 12 callers
Function
cleanup_key_pair
Cleanup helper: revoke + destroy a key pair (best-effort).
crate/clients/cng/src/tests.rs:37
↓ 12 callers
Function
co_create_key
Helper to create a symmetric key (CO operation)
crate/clients/ckms/src/tests/rbac_tests.rs:33
↓ 12 callers
Function
co_destroy_key
Helper to destroy a key (CO operation — revokes first, then destroys)
crate/clients/ckms/src/tests/rbac_tests.rs:88
↓ 12 callers
Function
concurrent_sign_does_not_degrade
Assert that concurrent HSM signing does not experience throughput collapse under concurrency (8 threads vs 1 thread).
crate/hsm/base_hsm/src/tests_shared.rs:1570
↓ 12 callers
Function
create_aes_key
Create an AES-256 key and return its UID.
crate/server/src/tests/jose/key_state.rs:40
↓ 12 callers
Method
decrypt
( &self, _slot_id: usize, _key_id: &[u8], _algorithm: CryptoAlgorithm,
crate/server/src/tests/hsm/fake_hsm_authz.rs:185
↓ 12 callers
Method
deserialize
(deserializer: D)
crate/kmip/src/ttlv/interval.rs:74
↓ 12 callers
Function
dummy_config
A minimal OAuth2 config that refers to a reachable-but-wrong token URL (127.0.0.1:1) so that the token-exchange step always fails quickly without hang
crate/clients/client/src/http_client/tests.rs:364
↓ 12 callers
Function
enforce
( params: &ServerParams, operation_tag: &str, op: &Operation, )
crate/server/src/tests/kmip_policy/helpers.rs:64
↓ 12 callers
Method
get_info_struct
Get PKCS#11 info as Info struct. This method calls `C_GetInfo` and returns the `Info` structure with parsed library information.
crate/hsm/base_hsm/src/hsm_lib.rs:481
↓ 12 callers
Method
hsm_capabilities
Get the HSM vendor capability flags (e.g. attribute quirks, size limits).
crate/hsm/base_hsm/src/session/session_impl.rs:293
↓ 12 callers
Function
kmip_certificate_to_openssl
(certificate: &Object)
crate/crypto/src/openssl/certificate.rs:27
↓ 12 callers
Function
kms_import_pgp
Import armored key material into the shared KMS under a process-unique UID.
crate/test_kms_server/src/pgp_gnupg_tests.rs:239
↓ 12 callers
Function
make_event
(id: i64, prev_hash: [u8; 32], result: AuditResult)
crate/access/src/audit/hash.rs:150
↓ 12 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:261
↓ 12 callers
Function
params_with_default_policy
()
crate/server/src/tests/kmip_policy/helpers.rs:35
↓ 12 callers
Method
parse
(additional_data: Option<&[u8]>)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:30
↓ 12 callers
Function
pgp_create_request
(alg: CryptographicAlgorithm, bits: Option<i32>)
crate/test_kms_server/src/pgp_gnupg_tests.rs:304
↓ 12 callers
Function
postNoTTLVRequest
(path: string, request: object, serverUrl: string)
ui/src/utils/utils.ts:188
↓ 12 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
↓ 12 callers
Function
rfc5649_wrap
(plaintext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc5649.rs:36
↓ 12 callers
Function
rsa
(bits: u32)
crate/server/src/core/operations/certify/template.rs:627
↓ 12 callers
Function
serialize_and_deserialize
(ttlv: &TTLV)
crate/kmip/src/ttlv/wire/ttlv_bytes_deserializer.rs:228
↓ 12 callers
Function
sign_verify_roundtrip
(algorithm_name: &str)
crate/crypto/src/crypto/pqc/slh_dsa.rs:55
↓ 12 callers
Method
size
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callers
Function
stringify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callers
Function
test_client
Start (or reuse) the shared in-process KMS test server and return an owner `KmsClient`. A temporary Tokio runtime is used only for the async setup; i
crate/clients/cng/src/tests.rs:27
↓ 12 callers
Function
unwrap_key_block
Unwrap a key block with a wrapping key # Arguments `object_key_block` - the key block of the object to unwrap `unwrapping_key` - the unwrapping key #
crate/crypto/src/crypto/wrap/unwrap_key.rs:105
↓ 12 callers
Function
user
(name: &str)
crate/server/src/tests/sub_ca_tests.rs:58
↓ 12 callers
Function
with_clean_env
(f: F)
crate/server/src/config/command_line/clap_config.rs:929
↓ 11 callers
Function
E
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Function
R
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 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:68
↓ 11 callers
Function
audit
Name a `/v1/crypto` request in the audit log as `METHOD /route/pattern` and, when given, the key it acts on. Calling it again overwrites the previous
crate/server/src/routes/jose/mod.rs:256
↓ 11 callers
Function
audit_now
()
crate/access/src/audit/event.rs:184
↓ 11 callers
Function
bench_uid
Deterministic unique identifier of a benchmark setup key: `bench-<name>`, or `<hsm_prefix>::bench-<name>` for an HSM-resident key (`hsm_prefix` = `hsm
crate/clients/clap/src/actions/bench/helpers.rs:304
↓ 11 callers
Function
build_create_covercrypt_master_keypair_request
Build a `CreateKeyPair` request for an `CoverCrypt` Master Key
crate/clients/client_utils/src/cover_crypt_utils.rs:22
↓ 11 callers
Function
build_jwks_manager_with_key
Build a `JwksManager` pre-loaded with a single RSA public key (no HTTP fetch).
crate/server/src/tests/google_cse/utils.rs:59
↓ 11 callers
Function
cert_serial
Return the serial number bytes from a DER-encoded certificate.
crate/server/src/tests/crl_tests.rs:182
↓ 11 callers
Function
certs_of
Certificates carried by a certs-only CMS (`SignedData`).
crate/server/src/tests/enrollment_tests.rs:290
↓ 11 callers
Method
context
(self, context: &str)
crate/crypto/src/error/result.rs:19
↓ 11 callers
Function
createSymKey
(page: Page)
ui/tests/e2e/helpers.ts:326
↓ 11 callers
Function
create_ml_dsa_ca
Create an ML-DSA-44 CA and return (`cert_id`, `private_key_id`).
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:120
↓ 11 callers
Function
create_persisted_key
( dll: &KspDll, h_provider: usize, alg: &[u16], name: &str, )
crate/clients/clap/src/actions/cng_verify.rs:166
↓ 11 callers
Method
current_mut
Get the current TTLV element which is the last element on the stack
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:82
↓ 11 callers
Function
delete_key
(dll: &KspDll, h_provider: usize, h_key: usize)
crate/clients/clap/src/actions/cng_verify.rs:586
↓ 11 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
↓ 11 callers
Method
export
( &self, _slot_id: usize, object_id: &[u8], )
crate/server/src/tests/hsm/fake_hsm_authz.rs:145
↓ 11 callers
Function
finalize_key
(dll: &KspDll, h_provider: usize, h_key: usize)
crate/clients/clap/src/actions/cng_verify.rs:213
↓ 11 callers
Function
func
(items2: LevelKeysProps[], level = 1)
ui/src/components/layout/Sidebar.tsx:93
↓ 11 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:205
↓ 11 callers
Method
getConfigs
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Function
get_redis_url
()
crate/server_database/src/tests/mod.rs:50
↓ 11 callers
Function
grant_access
Grants access to a user
crate/clients/ckms/src/tests/access.rs:68
↓ 11 callers
Function
hsm_config_path
(name: &str)
crate/test_kms_server/src/test_server.rs:160
↓ 11 callers
Function
import_certificate
( import_certificate_input: ImportCertificateInput, )
crate/clients/ckms/src/tests/certificates/import.rs:54
↓ 11 callers
Function
iteratorValue
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Method
list_uids_for_tags
(&self, tags: &HashSet<String>)
crate/server_database/src/core/database_objects.rs:434
↓ 11 callers
Function
make_kms
()
crate/server/src/tests/sub_ca_tests.rs:54
↓ 11 callers
Method
message
( &self, request: cosmian_kms_server_database::reexport::cosmian_kmip::kmip_0::kmip_messages::
crate/server/src/core/kms/kmip.rs:601
↓ 11 callers
Function
not_supported
()
crate/server/src/core/operations/certify/hsm_subject_tests.rs:67
↓ 11 callers
Function
openssl_seeded_rng
The PGP crate requires an infallible rand 0.8 `CryptoRng` (rand_core 0.6) and offers no direct-seed entry point, so its RNG stream is `KmsRng::seeded_
crate/crypto/src/crypto/openpgp/mod.rs:61
↓ 11 callers
Function
pkcs_req_csr
(key: &PKey<Private>, cn: &str, challenge: &str)
crate/server/src/tests/enrollment_tests.rs:992
↓ 11 callers
Method
position
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Function
remove_leftover_key
Remove the key with this deterministic identifier, and its `_pk` public key, left by an earlier run or protocol pass, so that it can be created again.
crate/clients/clap/src/actions/bench/helpers.rs:326
↓ 11 callers
Function
revoke_cert
Revoke a certificate with the given reason code.
crate/server/src/tests/crl_tests.rs:160
↓ 11 callers
Function
scep_roundtrip
Send one `PKIOperation` the way a SCEP client does and decode the `CertRep`.
crate/server/src/tests/enrollment_tests.rs:933
↓ 11 callers
Function
seed_generation_zero
Writes a clean 3-row generation 0 (ids 0, 1, 2) and returns the sink so the caller can drop it before corrupting the table directly.
crate/server_database/src/stores/audit/pgsql.rs:1012
↓ 11 callers
Function
self_signed
(cn: &str)
crate/crypto/src/openssl/scep_cms.rs:703
↓ 11 callers
Function
setup_observing_metrics
()
crate/server/src/core/otel_metrics.rs:671
↓ 11 callers
Method
store
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Function
test_private_key_conversion_pkcs
( private_key: &PKey<Private>, id: Id, key_size: u32, kft: KeyFormatType,
crate/crypto/src/openssl/private_key.rs:563
↓ 11 callers
Function
test_public_key_conversion_pkcs
( public_key: &PKey<Public>, id: Id, key_size: u32, kft: KeyFormatType, )
crate/crypto/src/openssl/public_key.rs:547
← previous
next →
401–500 of 12,829, ranked by callers