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
↓ 5 callers
Method
query
Send a Query operation to interrogate server capabilities and metadata.
crate/clients/client/src/kms_rest_client.rs:382
↓ 5 callers
Function
read_audit_events
Reads back every event of a JSONL audit file.
crate/server/src/tests/audit_middleware.rs:995
↓ 5 callers
Function
read_from_json_file
Read an object T from a JSON file # Errors If the file cannot be opened or read, an error is returned.
crate/clients/client/src/file_utils.rs:36
↓ 5 callers
Function
read_request
Read one TTLV message (8-byte header followed by its body). Returns `Ok(None)` when the client closed the connection or stayed idle past [`SOCKET_IO_
crate/server/src/socket_server.rs:544
↓ 5 callers
Method
recertify
`ReCertify` — certificate rotation with a new UID. Creates a fresh certificate for the same subject/issuer and links old → new via `ReplacementObject
crate/server/src/core/kms/kmip.rs:689
↓ 5 callers
Method
record_cluster_heartbeat
Persist this server's heartbeat and remove expired node records.
crate/server_database/src/core/mod.rs:404
↓ 5 callers
Function
refresh_jwks_for_token
Refresh, throttled per key set by [`JwksManager::refresh`], the JWKS of the configurations whose issuer is the `iss` claim of `token`, or of every con
crate/server/src/middlewares/jwt/jwks.rs:238
↓ 5 callers
Function
reject_multi_part_for_oracle
Reject a multi-part request for keys served by a crypto oracle (HSM), which cannot hold streaming state across requests (KMIP 2.1 §6.1: multi-part sup
crate/server/src/core/operations/key_ops/multi_part.rs:117
↓ 5 callers
Function
repo_root
Resolve a path relative to the repository root (two levels up from `CARGO_MANIFEST_DIR`).
crate/test_kms_server/src/vector_runner.rs:998
↓ 5 callers
Function
request_cookie
Value of the cookie `name` among the `Cookie` request headers (RFC 6265 §5.4): the first pair whose trimmed name matches exactly, with one pair of sur
crate/server/src/middlewares/ui_session.rs:326
↓ 5 callers
Function
request_der
DER `TimeStampReq` for `SHA-256(…) = imprint`, with `nonce` and `certReq = true`. # Errors Returns an error if OpenSSL cannot build or encode the req
crate/crypto/src/openssl/tsa.rs:188
↓ 5 callers
Function
resetToNonEmailMatchState
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Method
reset_count
Start a full budget: the server sets the Count to the Total and ignores any client Count.
crate/kmip/src/kmip_2_1/kmip_types.rs:2314
↓ 5 callers
Function
resolve_oracle_verify_input
Resolve the payload a crypto oracle should verify, together with whether that payload is already a digest. `data` and `digested_data` are mutually ex
crate/server/src/core/operations/signature_verify.rs:283
↓ 5 callers
Method
retrieve
(&self, uid: &str)
crate/interfaces/src/hsm/hsm_store.rs:341
↓ 5 callers
Method
revoke_crypto_officer_activation
Revoke `activated_by`'s active Crypto Officer ceremony record. `revoked_by` is stored in the audit column (who issued the revocation). Only `activate
crate/server_database/src/core/database_permissions.rs:137
↓ 5 callers
Function
rsa_public_blob
Serialises an RSA public key (modulus + public exponent) into a `BCRYPT_RSAKEY_BLOB` as expected by Windows CNG `BCryptImportKeyPair`. Layout (little
crate/clients/cng/src/blob.rs:41
↓ 5 callers
Function
rsa_public_blob_from_pkcs1_der
Parse PKCS#1 RSA public-key DER bytes and return a `BCRYPT_RSAKEY_BLOB`. PKCS#1 `RSAPublicKey` ::= SEQUENCE { modulus INTEGER, publicExponent INTEGER
crate/clients/cng/src/blob.rs:64
↓ 5 callers
Method
run
(&self, kms_rest_client: KmsClient)
crate/clients/clap/src/actions/symmetric/decrypt.rs:134
↓ 5 callers
Function
saveDecryptedFile
(data: Uint8Array, fileName: string, mimeType: string)
ui/src/utils/utils.ts:273
↓ 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_enrolled_aes
An AES key enrolled in the keyset named after itself, as a generation-0 head.
crate/server/src/tests/hsm/fake_hsm_rotation.rs:526
↓ 5 callers
Function
seed_key_pair
A private key `id` and its public key `{id}_pk`, both un-enrolled and without dates.
crate/server/src/tests/hsm/fake_hsm_rotation.rs:538
↓ 5 callers
Method
seed_parameters
(&self, parameters: &[(&str, &str)])
crate/server_database/src/tests/redis_migration_tests.rs:134
↓ 5 callers
Function
seed_postgres_chain
(url: &str, n: i64)
crate/clients/clap/src/actions/audit.rs:2101
↓ 5 callers
Function
serialize
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
set
Store an in-process env override under `key`. # Panics Panics if the internal `RwLock` has been poisoned (should never happen in a normal test run).
crate/test_kms_server/src/test_env.rs:35
↓ 5 callers
Function
set_attribute
( kms: &KMS, mut request: SetAttribute, user: &UserId, )
crate/server/src/core/operations/attributes/set.rs:61
↓ 5 callers
Function
set_constraints
Executes Set Constraints: replaces the server constraint set (cleared when absent).
crate/server/src/core/operations/constraints.rs:155
↓ 5 callers
Function
set_cookies
(resp: &actix_web::dev::ServiceResponse<B>)
crate/server/src/routes/ui_auth.rs:1164
↓ 5 callers
Method
set_cryptographic_usage_mask
Set the attributes's `CryptographicUsageMask`.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:721
↓ 5 callers
Method
set_parameter
(&self, name: &str, value: &str)
crate/server_database/src/stores/migrate.rs:567
↓ 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
set_usage_mask
(kms: &KMS, uid: &str, mask: CryptographicUsageMask)
crate/server/src/tests/wrap_certificate_usage_mask.rs:57
↓ 5 callers
Function
sha256_wide
()
crate/clients/clap/src/actions/cng_verify.rs:70
↓ 5 callers
Method
sign
(&self)
crate/kmip/src/ttlv/kmip_big_int.rs:104
↓ 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:378
↓ 5 callers
Function
sign_request
( algorithm: &str, digest: &[u8], wrapped_private_key: String, )
crate/server/src/tests/google_cse/crypto_paths.rs:192
↓ 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:113
↓ 5 callers
Function
sign_test_jwt
(claims: &impl serde::Serialize)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:529
↓ 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:81
↓ 5 callers
Function
size
(n: usize)
crate/server_database/src/core/object_cache.rs:321
↓ 5 callers
Function
spawn_mock_auth_verifier
Start a local auth-verifier answering `GET /v1/auth/token/lookup-self` with `body` for token `good-token` only (HTTP 403 otherwise). Returns its base
crate/server/src/middlewares/spire_token.rs:601
↓ 5 callers
Function
spawn_mock_http_once
Spawn a one-shot raw-TCP HTTP/1.1 server on `port` that reads a single request and replies with the supplied `status_line` and JSON `body`. Returns t
crate/clients/client/src/http_client/tests.rs:715
↓ 5 callers
Function
start_default_test_kms_server_with_utimaco_and_kek
With Utimaco HSM # Panics - if the `workspace_dir` does not exist - if the `kek_id` is empty
crate/test_kms_server/src/test_server.rs:571
↓ 5 callers
Function
start_default_test_kms_server_with_utimaco_hsm
With Utimaco HSM
crate/test_kms_server/src/test_server.rs:493
↓ 5 callers
Function
start_ssh_server
()
crate/clients/ckms/src/tests/ssh/mod.rs:21
↓ 5 callers
Function
tagged_attributes
()
crate/server_database/src/stores/sql/locate_query.rs:756
↓ 5 callers
Function
test_acceptor
The socket server TLS acceptor configured with the test server certificate and client CA, checking client certificates against the CRLs in `crl_dir` w
crate/server/src/socket_server.rs:741
↓ 5 callers
Function
test_app_with_audit_mode
[`test_app_with_audit`] with explicit `--audit-fail-closed` behaviour of the middleware.
crate/server/src/tests/test_utils.rs:579
↓ 5 callers
Function
test_rng
`ChaCha20` seeded from `KmsRng`: the test inputs need an infallible `RngExt`.
crate/crypto/src/crypto/fpe/tests.rs:16
↓ 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:1236
↓ 5 callers
Function
test_sign_ec_curve
Helper function to test signing for elliptic curves
crate/server/src/tests/test_sign.rs:234
↓ 5 callers
Function
timestamp
(pki: &Pki, imprint: &[u8; 32], nonce: [u8; 8])
crate/crypto/src/openssl/tsa.rs:472
↓ 5 callers
Function
tlv
DER TLV with short or long-form length.
crate/clients/cng/src/blob.rs:706
↓ 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_u32
(&self)
crate/crypto/src/crypto/fpe/ff1.rs:214
↓ 5 callers
Method
to_zeroizing
(&self)
crate/kmip/src/sensitive.rs:62
↓ 5 callers
Function
transit_tag_name
Build the KMIP tag string for a transit key name.
crate/server/src/routes/spire/transit.rs:75
↓ 5 callers
Function
try_encrypt
Attempt to encrypt; returns Ok on 200, Err(status) otherwise.
crate/server/src/tests/jose/key_state.rs:112
↓ 5 callers
Function
tx_and_list
(db: &DB)
crate/server_database/src/tests/database_tests.rs:34
↓ 5 callers
Function
unpack_kem_encapsulation
Inverse of [`pack_kem_encapsulation`]: returns `(shared secret, encapsulation)`.
crate/crypto/src/crypto/pqc/mod.rs:53
↓ 5 callers
Function
unwrap
( app: &impl Service<Request, Response = ServiceResponse<BoxBody>, Error = actix_web::Error>, key: &st
crate/server/src/tests/azure_ekm/routes_tests.rs:148
↓ 5 callers
Function
unwrap_if_requested
( object_with_metadata: &mut ObjectWithMetadata, key_wrap_type: &Option<KeyWrapType>, kms: &KMS,
crate/server/src/core/operations/export_get.rs:1073
↓ 5 callers
Function
unwrapped_key_bytes
Key material of `uid` as the server unwraps it from its stored (possibly KEK-wrapped) form.
crate/server/src/tests/test_utils.rs:126
↓ 5 callers
Method
update
(&mut self, bytes: &[u8])
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:1166
↓ 5 callers
Function
upsert
(db: &DB)
crate/server_database/src/tests/database_tests.rs:507
↓ 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:963
↓ 5 callers
Function
utils_btoa
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
v21
(response: &ResponseMessage, index: usize)
crate/server/src/tests/ttlv_tests/batch_semantics_2_1.rs:88
↓ 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_against_auth_verifier
Validate a raw token against the auth-verifier and return the entity info.
crate/server/src/middlewares/spire_token.rs:132
↓ 5 callers
Function
validate_cse_authorization_token
Validate the authorization token and return the calling user See [doc](https://developers.google.com/workspace/cse/guides/encrypt-and-decrypt-data?hl=
crate/server/src/routes/google_cse/jwt.rs:450
↓ 5 callers
Function
validate_cse_privileged_token
Validate the authentication token of a privileged endpoint (`privilegedwrap`, `privilegedunwrap`, `privilegedprivatekeydecrypt`). Accepted callers, i
crate/server/src/routes/google_cse/jwt.rs:398
↓ 5 callers
Function
vanilla
(authorization: &str)
crate/server/src/routes/aws_xks/sigv4.rs:402
↓ 5 callers
Function
vanilla_authorization
()
crate/server/src/routes/aws_xks/sigv4.rs:406
↓ 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:423
↓ 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:2276
↓ 5 callers
Function
verify_auth_verifier_jwt_subject
Validate a Auth Verifier server JWT, check that its session is still live, and return its `sub` claim (the authenticated username). Shared between th
crate/server/src/middlewares/auth_verifier/token.rs:148
↓ 5 callers
Function
verify_chain_link
(current: &AuditEvent, prev: Option<&AuditEvent>)
crate/access/src/audit/hash.rs:133
↓ 5 callers
Method
version
(self)
crate/server_database/src/stores/migrate.rs:77
↓ 5 callers
Function
version_tag
Build the exact tag identifying version `version` of `path`.
crate/server/src/routes/kv/metadata.rs:106
↓ 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:68
↓ 5 callers
Function
with_cookie
(token: &str)
crate/server/src/middlewares/auth_verifier/middleware.rs:188
↓ 5 callers
Method
with_cron_lock
Run one scheduled job only when this server acquires its database lock. `SQLite` uses a no-op lock because it is single-node only. shortcut: Redis r
crate/server_database/src/core/mod.rs:376
↓ 5 callers
Function
wrap_dek
Wrap [`DEK`] for [`USER`] on the Drive test resource and return the wrapped key.
crate/server/src/tests/google_cse/token_validation.rs:165
↓ 5 callers
Function
wrap_with
Wrap a fresh AES key with `wrapping_key_uid`.
crate/server/src/tests/wrap_certificate_usage_mask.rs:74
↓ 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:295
↓ 5 callers
Function
write_temp
(name: &str, content: &str)
crate/clients/k8s/operator/src/config.rs:211
↓ 5 callers
Function
writer_loop
Consumes queued events and returns the sink after shutdown synchronisation.
crate/server/src/core/audit/writer.rs:21
↓ 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
← previous
next →
1,401–1,500 of 16,000, ranked by callers