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
↓ 5 callers
Method
seal
Encrypt a ceremony payload into a sealed record (base64-encoded). Format: base64(nonce ‖ ciphertext ‖ GCM-tag) The `role` parameter is used as Addit
crate/server_database/src/ceremony_keys.rs:92
↓ 5 callers
Function
seed
(cache: &RotateNameCache, name: &str, generation: Option<i32>, owner: &str)
crate/server_database/src/core/rotate_name_cache.rs:248
↓ 5 callers
Function
seed_postgres_chain
(url: &str, n: i64)
crate/clients/clap/src/actions/audit.rs:1418
↓ 5 callers
Function
serialize
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Method
set
(key: &'static str, value: Option<&str>)
crate/server/src/tests/google_cse/server_setup.rs:354
↓ 5 callers
Method
set_cryptographic_usage_mask
Set the attributes's `CryptographicUsageMask`.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:706
↓ 5 callers
Method
set_requested_validity_days
Set the requested validity days This is the number of days the certificate will be valid for The requested validity days is stored as a vendor attribu
crate/kmip/src/kmip_2_1/extra/certificates.rs:18
↓ 5 callers
Function
sha256_wide
()
crate/clients/clap/src/actions/cng_verify.rs:71
↓ 5 callers
Method
sign
(&self)
crate/kmip/src/ttlv/kmip_big_int.rs:113
↓ 5 callers
Method
sign
Sign the provided data, or stored payload if data is not provided.
crate/clients/pkcs11/module/src/sessions.rs:670
↓ 5 callers
Function
sign_hash
Sign a pre-hashed digest using a private key in the KMS. `hash_alg` names the algorithm that produced `hash` (e.g. `SHA256`). `padding_scheme` is `No
crate/clients/cng/src/backend.rs:364
↓ 5 callers
Function
sign_rsa_with_pkey
Sign using RSA with KMIP `Sign` request semantics (PKCS#1 v1.5 and RSASSA-PSS). - Honors `cryptographic_parameters.hashing_algorithm` when provided -
crate/crypto/src/crypto/rsa/sign.rs:94
↓ 5 callers
Function
sign_verify_round_trip
Sign `data` then verify the signature for a given algorithm and key pair. Also asserts that tampered data yields `valid=false` (or a non-200 response)
crate/server/src/tests/jose/common.rs:82
↓ 5 callers
Function
start_kms_server
Starts the Key Management System (KMS) server based on the provided configuration. The server is started using one of three methods: 1. Plain HTTP, 2
crate/server/src/start_kms_server.rs:506
↓ 5 callers
Method
status_code
(&self)
crate/server/src/routes/mod.rs:46
↓ 5 callers
Method
stream_cipher
( &self, mode: Mode, key: &[u8], nonce: &[u8], aad: &[u8], )
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:423
↓ 5 callers
Function
structure_header
Build a TTLV Structure header (8 bytes) claiming the given `content_len`.
crate/kmip/src/ttlv/tests/wire_edge_cases.rs:35
↓ 5 callers
Function
svid_claim
A SPIFFE JWT-SVID claim set: `spiffe://` subject, no `email`, with an audience.
crate/server/src/middlewares/jwt/jwt_token_auth.rs:297
↓ 5 callers
Function
tagged_attributes
()
crate/server_database/src/stores/sql/locate_query.rs:723
↓ 5 callers
Function
test_generate_key
(session_h: CK_ULONG)
crate/clients/pkcs11/module/src/utils.rs:17
↓ 5 callers
Function
test_key
()
crate/server_database/src/core/database_objects.rs:885
↓ 5 callers
Function
test_rng
`ChaCha20` seeded from `KmsRng`: the test inputs need an infallible `RngExt`.
crate/crypto/src/crypto/fpe/tests.rs:19
↓ 5 callers
Function
test_session
Builds a `Session` directly against the minimal fixture library, bypassing `SlotManager` (which the fixture does not implement enough of `C_GetSlotLis
crate/hsm/base_hsm/src/hsm_lib.rs:1027
↓ 5 callers
Function
test_sign_ec_curve
Helper function to test signing for elliptic curves
crate/server/src/tests/test_sign.rs:206
↓ 5 callers
Method
toObject
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Method
toReference
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Method
to_signed_bytes_be
(&self)
crate/kmip/src/ttlv/kmip_big_int.rs:73
↓ 5 callers
Method
track
(&mut self, id: impl Into<String>)
crate/test_kms_server/src/crl_tests.rs:97
↓ 5 callers
Function
try_create_ec_kp
( rt: &Runtime, client: &KmsClient, name: &str, curve: RecommendedCurve, )
crate/clients/clap/src/actions/bench/helpers.rs:447
↓ 5 callers
Function
try_encrypt
Attempt to encrypt; returns Ok on 200, Err(status) otherwise.
crate/server/src/tests/jose/key_state.rs:113
↓ 5 callers
Function
tx_and_list
(db: &DB)
crate/server_database/src/tests/database_tests.rs:31
↓ 5 callers
Function
unauthorized
(basic_allowed: bool)
crate/server/src/routes/est/enroll.rs:112
↓ 5 callers
Function
unpack_kem_encapsulation
Inverse of [`pack_kem_encapsulation`]: returns `(shared secret, encapsulation)`.
crate/crypto/src/crypto/kem.rs:162
↓ 5 callers
Function
unwrap_object
Unwrap a caller-supplied Object (e.g. `Import` with `KeyWrapType::NotWrapped`). The ciphertext is attacker-controlled, so the caller must be allowed
crate/server/src/core/wrapping/unwrap.rs:39
↓ 5 callers
Method
unwrapped_cache
(&self)
crate/server_database/src/core/mod.rs:246
↓ 5 callers
Function
upsert
(db: &DB)
crate/server_database/src/tests/database_tests.rs:288
↓ 5 callers
Method
user_can_perform_operation
Check whether `user` is allowed to perform `operation` on this object. Returns `true` if the user is the owner or has been explicitly granted the req
crate/server/src/core/kms/permissions.rs:308
↓ 5 callers
Function
user_labels
Collects every `user` attribute value recorded for a `u64` counter metric across all data points in the last exported batch.
crate/server/src/core/otel_metrics.rs:736
↓ 5 callers
Function
utils_btoa
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Method
validate
Check that the template itself is well formed (regular expressions compile, EKUs resolve, validity bounds are consistent). Called when the configurati
crate/server/src/core/operations/certify/template.rs:333
↓ 5 callers
Function
validate_cse_authorization_token
( authorization_token: &str, google_cse_kacls_url: &str, cse_config: &Option<GoogleCseConfig>,
crate/server/src/routes/google_cse/jwt.rs:336
↓ 5 callers
Method
validate_signed_token
( &self, token: &str, validate_subject: bool, )
crate/server/src/middlewares/jwt/jwt_config.rs:297
↓ 5 callers
Function
vault_token_optional_middleware
Optional vault-token middleware for scopes that also accept native KMS authentication. This middleware allows AppRole/SPIRE clients that hold a valid
crate/server/src/middlewares/spire_token.rs:409
↓ 5 callers
Method
verify
Verify a signature using the specified key and algorithm. Returns `Ok(false)` for a cryptographically invalid signature (`CKR_SIGNATURE_INVALID` / `C
crate/hsm/base_hsm/src/session/session_impl.rs:2168
↓ 5 callers
Function
verify_chain_link
(current: &AuditEvent, prev: Option<&AuditEvent>)
crate/access/src/audit/hash.rs:133
↓ 5 callers
Method
visit_seq
This is not officially supported in TTLV and will only be called if the user is attempting to deserialize an array of TTLV
crate/kmip/src/ttlv/deserialize.rs:65
↓ 5 callers
Function
with_cookie
(token: &str)
crate/server/src/middlewares/auth_verifier/middleware.rs:174
↓ 5 callers
Method
wrapped_key_bytes
Return the wrapped key bytes if the object is wrapped, an error otherwise
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:294
↓ 5 callers
Function
writer_loop
Consumes queued events and returns the sink after shutdown synchronisation.
crate/server/src/core/audit/writer.rs:18
↓ 5 callers
Function
x25519_key_agreement
( private_key_bytes: &[u8], peer_public_key_bytes: &[u8], )
crate/crypto/src/crypto/elliptic_curves/operation.rs:325
↓ 5 callers
Function
x509_signing_digest
(key: &PKeyRef<T>)
crate/crypto/src/openssl/hashing.rs:55
↓ 5 callers
Function
xclass
(...s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
yi
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Cb
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Ci
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Ck
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Hash
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Hk
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Ig
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Ji
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
KeyedSeq
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Mg
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Or
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Qj
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
Rg
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
_isPlaceholder
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
_objectSpread
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
_type_of
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
addText
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
append_reanchor
Appends a synthetic `audit:reanchor` row (as produced by `seal_and_roll`) to `path`'s chain, referencing a sealed evidence file. Writes the sealed fil
crate/clients/clap/src/actions/audit.rs:1099
↓ 4 callers
Function
applyOperation
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
as_canonical_str
(&self)
crate/access/src/audit/event.rs:53
↓ 4 callers
Method
as_str
(self)
crate/interfaces/src/object_handle.rs:53
↓ 4 callers
Function
assemble
Insert `signature` and return the DER of the signed structure.
crate/server/src/core/certificate/oracle_signing.rs:307
↓ 4 callers
Function
assert_is_private_key
Assert that `handle` refers to a private key in the store.
crate/clients/pkcs11/module/src/tests.rs:1375
↓ 4 callers
Function
assert_round_trip
(kms: &KMS, owner: &UserId, sk: &str, pk: &str)
crate/server/src/tests/configurable_kem_tests.rs:133
↓ 4 callers
Function
assert_signature_valid
Verify a signature server-side via the KMIP `SignatureVerify` operation and assert it is cryptographically valid.
crate/clients/pkcs11/provider/src/tests_v3.rs:71
↓ 4 callers
Function
assert_validate_by_uid_invalid
(kms: &Arc<KMS>, owner: &UserId, cert_ids: &[&str])
crate/server/src/tests/test_validate.rs:1464
↓ 4 callers
Method
atomic
( &self, user: &UserId, operations: &[AtomicOperation], )
crate/server_database/src/stores/redis/redis_with_findex.rs:992
↓ 4 callers
Function
authentication_failed_error
(message: impl Into<String>)
crate/server/src/routes/aws_xks/sigv4_middleware.rs:257
↓ 4 callers
Function
b
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
batch_export_objects
Export a batch of Objects from the KMS The objects are exported in a single request and the response is a list of results. The objects are exported i
crate/clients/client/src/export_utils.rs:124
↓ 4 callers
Function
bd
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
bi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
blitBuffer
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
block_cipher_mode_migration_after_json_deserialization
Test that any legacy value (`0x8000_000D`) is correctly migrated to `BlockCipherMode::AESKeyWrapPadding` (`0x0000_000C`) when objects are retrieved fr
crate/server_database/src/tests/database_tests.rs:439
↓ 4 callers
Function
buildFormData
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
build_cipher
Build a `SymCipher` from the data encryption algorithm and the DEK length.
crate/clients/clap/src/actions/symmetric/cipher_io.rs:31
↓ 4 callers
Function
build_x25519_derive_request
(private_uid: &str, peer_uid: &str, derived_uid: &str)
crate/server/src/tests/derive_key_tests.rs:641
↓ 4 callers
Function
call_open_session
( func_list: &CK_FUNCTION_LIST, slot_id: CK_SLOT_ID, )
crate/clients/clap/src/actions/pkcs11/verify.rs:285
↓ 4 callers
Method
capabilities
(&self)
crate/hsm/base_hsm/src/slots.rs:266
↓ 4 callers
Function
captureMatchIfValidAndReset
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
certificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/hsm/sub_ca.rs:91
↓ 4 callers
Function
certificate_serial_tag
`_serial=<HEX>` tag for a certificate object (same value as `set_certificate_serial_tag`), `None` for any other object or an unparsable certificate.
crate/server_database/src/stores/migrate.rs:24
↓ 4 callers
Function
certify_request
(subject: Option<&str>, links: &[(LinkType, &str)])
crate/server/src/tests/hsm/sub_ca.rs:63
↓ 4 callers
Function
ch
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
check_basic_compatibility
( _vendor_id: &str, researched_attributes: &Attributes, state: Option<State>, )
crate/interfaces/src/hsm/hsm_store.rs:1377
↓ 4 callers
Function
check_read_only
Rejects attributes the server manages for this operation.
crate/server/src/core/operations/attributes/policy.rs:36
↓ 4 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:101
↓ 4 callers
Function
ckm_rsa_aes_key_wrap
Asymmetrically wrap keys referring to PKCS#11 `CKM_RSA_AES_KEY_WRAP` available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-cu
crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs:35
← previous
next →
1,101–1,200 of 12,829, ranked by callers