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
↓ 13 callers
Method
size
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callers
Function
stripHash
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callers
Method
tag_size
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:249
↓ 13 callers
Function
temp_path
(label: &str)
crate/server/src/tests/audit_middleware.rs:34
↓ 13 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:26
↓ 13 callers
Function
today
()
crate/server/src/tests/hsm/fake_hsm_rotation.rs:509
↓ 13 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
↓ 13 callers
Method
valueOf
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 13 callers
Function
wrap_object
Wrap an Object with a wrapping key The wrapping key is fetched from the database The key is wrapped using the wrapping key # Arguments `object` - the
crate/server/src/core/wrapping/wrap.rs:521
↓ 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
Method
as_str
(&self)
crate/kmip/src/kmip_2_1/kmip_types.rs:1850
↓ 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_create_covercrypt_master_keypair_request
Build a `CreateKeyPair` request for an `CoverCrypt` Master Key
crate/clients/client_utils/src/cover_crypt_utils.rs:25
↓ 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:386
↓ 12 callers
Function
build_test_request
(ca_cert: &X509, _serial_hex: &str, with_nonce: bool)
crate/crypto/src/openssl/ocsp.rs:959
↓ 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:3508
↓ 12 callers
Function
certify_keypair
Helper: certify with `generate_key_pair=true`, optionally CA-signed.
crate/test_kms_server/src/certify_tests.rs:198
↓ 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
check_role_permission
Enforce role-based access control before dispatching a KMIP operation. ## Design Two enforcement layers work together: 1. **Dispatch-level (this fu
crate/server/src/core/operations/dispatch.rs:97
↓ 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
creation_time
()
crate/kmip/src/time_utils.rs:44
↓ 12 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:112
↓ 12 callers
Method
decrypt
Same NIST SP 800-38G §6 letter mapping as `encrypt`.
crate/crypto/src/crypto/fpe/ff1.rs:441
↓ 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:361
↓ 12 callers
Function
ekm_app
The production `/azureekm` scope; `user` is the identity a client certificate would give (`None`: no certificate).
crate/server/src/tests/azure_ekm/routes_tests.rs:66
↓ 12 callers
Method
find
Return uid, state and attributes of the object identified by its owner, and possibly by its attributes and/or its `state`
crate/server_database/src/core/database_objects.rs:612
↓ 12 callers
Function
hsm_config_path
(name: &str)
crate/test_kms_server/src/test_server.rs:160
↓ 12 callers
Function
issue_cert
Issue an end-entity certificate from the CA.
crate/test_kms_server/src/crl_tests.rs:148
↓ 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:230
↓ 12 callers
Method
lock
Lock the store after moving its expired streams into `evicted`. The caller declares `evicted` before the guard, so the streams are dropped after the l
crate/server/src/core/operations/key_ops/multi_part.rs:333
↓ 12 callers
Function
make_event
(id: i64, prev_hash: [u8; 32], result: AuditResult)
crate/access/src/audit/hash.rs:149
↓ 12 callers
Function
ml_kem_decapsulate
ML-KEM decapsulation: recovers the shared secret from a ciphertext. The `private_key_der` should be PKCS#8 DER bytes.
crate/crypto/src/crypto/pqc/ml_kem.rs:64
↓ 12 callers
Function
openssl_public_key_to_kmip
Convert an openssl public key to a KMIP public Key (`Object::PublicKey`) of the given `KeyFormatType`
crate/crypto/src/openssl/public_key.rs:227
↓ 12 callers
Function
path_metadata
(kms: &KMS, path: &str)
crate/server/src/routes/kv/tests.rs:130
↓ 12 callers
Function
pgp_create_request
(alg: CryptographicAlgorithm, bits: Option<i32>)
crate/test_kms_server/src/pgp_gnupg_tests.rs:295
↓ 12 callers
Method
post_bytes
Send an HTTP POST request with raw bytes and a specified content type. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:516
↓ 12 callers
Function
put
(ttl: Option<&str>, expected_owner: Option<&str>)
crate/clients/clap/src/actions/kv.rs:391
↓ 12 callers
Function
rfc5649_unwrap
(ciphertext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc5649.rs:85
↓ 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:624
↓ 12 callers
Method
run
Run one part of an operation. The state is created by `init` for single-part and initial requests, or taken from the store for continuations. `proces
crate/server/src/core/operations/key_ops/multi_part.rs:366
↓ 12 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:1027
↓ 12 callers
Function
serialize_and_deserialize
(ttlv: &TTLV)
crate/kmip/src/ttlv/wire/ttlv_bytes_deserializer.rs:274
↓ 12 callers
Function
sign_verify_roundtrip
(algorithm_name: &str)
crate/crypto/src/crypto/pqc/slh_dsa.rs:54
↓ 12 callers
Function
stringify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 12 callers
Function
structure
(tag: &str, children: Vec<TTLV>)
crate/server/src/routes/kmip/audit.rs:504
↓ 12 callers
Method
tag
`key_id|data`, the fake ciphertext / signature / MAC of `data` under `key_id`.
crate/server/src/tests/hsm/fake_hsm_rotation.rs:128
↓ 12 callers
Method
url
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 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:1046
↓ 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
Method
add
Add a permission to the user on an object
crate/server_database/src/stores/redis/permissions.rs:239
↓ 11 callers
Function
aes_cbc_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:950
↓ 11 callers
Function
aes_gcm_encrypt_generated_iv
Encrypt with AES-GCM; the 96-bit IV is generated by the OpenSSL provider (an approved DRBG inside the FIPS module, NIST SP 800-38D §8.2.2) and returne
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:623
↓ 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
authz
An authorization token for the Drive test resource and an empty perimeter.
crate/server/src/tests/google_cse/token_validation.rs:131
↓ 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:323
↓ 11 callers
Function
certs_of
Certificates carried by a certs-only CMS (`SignedData`).
crate/server/src/tests/enrollment_tests.rs:291
↓ 11 callers
Function
cfg
()
crate/hsm/utimaco/src/tests.rs:19
↓ 11 callers
Function
config
(accept_spiffe_subject: bool)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:542
↓ 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_aes_key
(kms: &KMS, user: &UserId, tags: &[&str])
crate/server/src/core/lint_cleanup_characterization_tests.rs:55
↓ 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:165
↓ 11 callers
Function
create_rsa_key_pair
Create an RSA key pair in the KMS with the given bit length and name tag, and return `(private_uuid, public_uuid)`. The private key is created with `
crate/clients/cng/src/backend.rs:575
↓ 11 callers
Function
delete_key
(dll: &KspDll, h_provider: usize, h_key: usize)
crate/clients/clap/src/actions/cng_verify.rs:585
↓ 11 callers
Function
ecdsa_sign_all_curves_and_hashes
Signs data on the HSM with ECDSA (P-224/P-256/P-384/P-521, SHA-256/384/512) and independently verifies each signature with OpenSSL against the exporte
crate/hsm/base_hsm/src/tests_shared.rs:1464
↓ 11 callers
Function
encrypt
Encrypts a file using the given symmetric key and access policy.
crate/clients/ckms/src/tests/symmetric/encrypt_decrypt.rs:26
↓ 11 callers
Function
encrypt_with
(kms: &KMS, uid_str: &str)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:744
↓ 11 callers
Method
export
( &self, _slot_id: usize, object_id: &[u8], )
crate/server/src/tests/hsm/fake_hsm_authz.rs:183
↓ 11 callers
Function
export_certificate
( cli_conf_path: &str, certificate_id: &str, certificate_file: &str, certificate_format: Optio
crate/clients/ckms/src/tests/certificates/export.rs:384
↓ 11 callers
Method
finalize
End the MAC: the 16-byte tag for CMAC, `IV || tag` (28 bytes) for GMAC. # Errors Returns an error if OpenSSL fails.
crate/crypto/src/crypto/symmetric/mac.rs:92
↓ 11 callers
Function
finalize_key
(dll: &KspDll, h_provider: usize, h_key: usize)
crate/clients/clap/src/actions/cng_verify.rs:212
↓ 11 callers
Function
func
(items2: LevelKeysProps[], level = 1)
ui/src/components/layout/Sidebar.tsx:93
↓ 11 callers
Method
getConfigs
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Method
get_attributes
This operation requests one or more attributes associated with a Managed Object. The object is specified by its Unique Identifier, and the attributes
crate/clients/client/src/kms_rest_client.rs:351
↓ 11 callers
Method
get_bytes
Perform a GET request and return the raw response bytes. Useful for endpoints that return non-JSON content (e.g. DER/PEM encoded data).
crate/clients/client/src/kms_rest_client.rs:897
↓ 11 callers
Function
grant_access
Grants access to a user
crate/clients/ckms/src/tests/access.rs:68
↓ 11 callers
Method
id
(&self)
crate/interfaces/src/hsm/interface.rs:285
↓ 11 callers
Function
import_certificate
( import_certificate_input: ImportCertificateInput, )
crate/clients/ckms/src/tests/certificates/import.rs:56
↓ 11 callers
Method
internal_uid_key
The server-wide secret key from which internal records derive their UIDs (HMAC key). The leader region initializes it before serving; followers only
crate/server/src/core/kms/mod.rs:201
↓ 11 callers
Function
iteratorValue
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callers
Function
lib_path
(env_var: &str, default_path: &str)
crate/hsm/base_hsm/src/tests_shared.rs:61
↓ 11 callers
Function
live_auth_verifier
A validator of a mock Auth Verifier on which every session is live.
crate/server/src/middlewares/auth_verifier/token.rs:414
↓ 11 callers
Method
locate
This operation requests that the server search for one or more Managed Objects, depending on the attributes specified in the request. All attributes a
crate/server/src/core/kms/kmip.rs:538
↓ 11 callers
Method
log
The sshd log, for failure messages.
crate/server/src/tests/hsm/sshd.rs:185
↓ 11 callers
Function
make_kms
()
crate/server/src/tests/sub_ca_tests.rs:54
↓ 11 callers
Function
make_owm
(uid: &str)
crate/server_database/src/core/object_cache.rs:191
↓ 11 callers
Function
not_supported
()
crate/server/src/core/operations/certify/hsm_subject_tests.rs:67
↓ 11 callers
Function
now
()
crate/server/src/middlewares/ui_session.rs:122
↓ 11 callers
Function
open_test_session
Open a serial session on the test slot.
crate/clients/pkcs11/module/src/tests.rs:1738
↓ 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:993
↓ 11 callers
Method
random_vec
Generate a vector of random bytes with automatic zeroization. The returned `Zeroizing<Vec<u8>>` automatically zeros its contents when dropped, suitab
crate/crypto/src/crypto/rng/mod.rs:153
↓ 11 callers
Method
register_objects_store
Register an Objects store for Objects `uid` starting with `<prefix>::`. This function registers an `ObjectsStore` for objects whose unique identifier
crate/server_database/src/core/database_objects.rs:103
← previous
next →
501–600 of 16,000, ranked by callers