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
↓ 4 callers
Function
current
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
decrypt
Unwrap a previously wrapped Data Encryption Key (DEK). Uses the `key_id` provided by kube-apiserver (persisted in etcd at encrypt time) to select the
crate/clients/k8s/plugin/src/service.rs:152
↓ 4 callers
Method
decrypt_big
Decrypts the ciphertext using the specified key and tweak and returns the plaintext as a `BigUint`. # Parameters - `ciphertext`: A `BigUint` represe
crate/crypto/src/crypto/fpe/integer.rs:232
↓ 4 callers
Function
decrypt_cases
()
crate/server/src/tests/google_cse/crypto_paths.rs:317
↓ 4 callers
Function
decrypt_request
(arn: &str, enc: &EncryptResponse)
crate/server/src/routes/aws_xks/tests.rs:130
↓ 4 callers
Function
deepmerge
(s,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
delete
(&self, _: &str)
crate/server/src/core/operations/locate.rs:321
↓ 4 callers
Function
delete_attribute
(kms: &Arc<KMS>, delete_request: DeleteAttribute)
crate/server/src/tests/test_set_attribute.rs:87
↓ 4 callers
Method
delete_gcm_invocations
Forget the AES-GCM invocation count of a destroyed key.
crate/server_database/src/core/database_objects.rs:521
↓ 4 callers
Function
der_encode_length
Encode DER length (lengths of 2^24 bytes or more are not supported).
crate/clients/cng/src/blob.rs:493
↓ 4 callers
Function
der_parse_length
Parse DER length encoding (supports both short form and long form).
crate/clients/pkcs11/provider/src/kms_object.rs:1305
↓ 4 callers
Function
der_read_tlv
Skip a DER TLV and return the value slice.
crate/clients/cng/src/blob.rs:198
↓ 4 callers
Method
derive_per_user_ceremony_key_name
Derive an obfuscated Redis key name for a per-user ceremony record.
crate/server_database/src/stores/redis/redis_with_findex.rs:1039
↓ 4 callers
Function
destroy_created_since
Destroy the objects these tests created on the slot since the `before` snapshot of [`object_handles`]: new objects whose id (`Session::get_object_id`:
crate/hsm/base_hsm/src/tests_shared.rs:245
↓ 4 callers
Method
digest
The digest of the signature: SHA-2 for RSA and ECDSA, null for `EdDSA` (which hashes internally).
crate/server/src/core/certificate/oracle_signing.rs:111
↓ 4 callers
Function
disable_proxies_for_tests
()
crate/test_kms_server/src/test_server.rs:122
↓ 4 callers
Function
disk_encryption_label
The label under which a disk-encryption key is exposed: the first user-visible tag. System tags (starting with `_`), empty tags and the disk-encrypti
crate/clients/pkcs11/provider/src/kms_object.rs:369
↓ 4 callers
Function
ecdsa_der_to_raw
Convert a DER-encoded ECDSA signature to raw PKCS#11 format (r || s). # Arguments `der` - DER-encoded signature bytes in SEQUENCE { r INTEGER, s INTE
crate/clients/pkcs11/provider/src/kms_object.rs:1177
↓ 4 callers
Function
ecdsa_raw_to_der
Convert raw PKCS#11 ECDSA signature (r || s) to DER-encoded format. Each component is expected to be exactly `byte_size` bytes, zero-padded.
crate/clients/pkcs11/provider/src/kms_object.rs:1215
↓ 4 callers
Function
eddsa_secret_body
Body of an unencrypted v4 `EdDSA`-legacy secret key packet (algorithm 22, Ed25519) whose secret MPI is `header || value`, followed by its checksum, as
crate/clients/client_utils/src/openpgp_format.rs:295
↓ 4 callers
Function
eh
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
eku_to_oid
Resolve an EKU name or dotted OID to a dotted OID.
crate/server/src/core/operations/certify/template.rs:123
↓ 4 callers
Function
emptyPairs
()
ui/src/actions/Secrets/KvSecrets.tsx:29
↓ 4 callers
Function
emptySequence
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
encapsulate
Returns (shared secret, encapsulation). Every KEM packs both in `Data` as a serialized tuple: an encapsulation is a ciphertext and never travels in `I
crate/server/src/tests/configurable_kem_tests.rs:93
↓ 4 callers
Function
encodePath
(path: string)
ui/src/actions/Secrets/KvSecrets.tsx:36
↓ 4 callers
Function
encrypt
( kms: &KMS, request: Encrypt, user: &UserId, )
crate/server/src/core/operations/encrypt.rs:230
↓ 4 callers
Function
encrypt
( client: &SocketClient, key_id: &str, data: &[u8], aad: Option<&[u8]>, )
crate/server/src/tests/ttlv_tests/encrypt_1_4.rs:36
↓ 4 callers
Function
enforce_sigv4_request_freshness
( request: &http::Request<B>, server_timestamp: OffsetDateTime, )
crate/server/src/routes/aws_xks/sigv4_middleware.rs:275
↓ 4 callers
Method
enforce_usage_limits
Enforce `UsageLimits` before a cryptographic operation. Returns `Err(Permission_Denied)` when the key's remaining usage budget is insufficient for th
crate/interfaces/src/stores/object_with_metadata.rs:274
↓ 4 callers
Function
ensure_json_object
Reject protected headers that are not JSON objects (e.g. JSON arrays or primitives) before deserializing into typed structs whose fields would otherwi
crate/server/src/routes/jose/mod.rs:241
↓ 4 callers
Function
ensure_no_proxy_for_localhost
()
crate/test_kms_server/src/test_server.rs:78
↓ 4 callers
Function
escapeHTML
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
execute
Execute the operation once, returning `true` on success. For `PreSerialized` ops the request bytes are sent without any serialization, and the respon
crate/clients/clap/src/actions/bench/load.rs:164
↓ 4 callers
Method
exit_json
(self, **result)
ansible/tests/unit/test_modules.py:57
↓ 4 callers
Method
export
( &self, _slot_id: usize, object_id: &[u8], )
crate/server/src/core/operations/certify/hsm_subject_tests.rs:118
↓ 4 callers
Function
export_key
( dll: &KspDll, h_provider: usize, h_key: usize, blob_type: &str, )
crate/clients/clap/src/actions/cng_verify.rs:221
↓ 4 callers
Method
export_private_pkcs8
Export the private key as PKCS#8 DER bytes from the KMS. Used by `NCryptExportKey` with the `PKCS8_PRIVATEKEY` blob type.
crate/clients/cng/src/key.rs:393
↓ 4 callers
Method
export_public_blob
Export the public key as a `BCRYPT_RSAKEY_BLOB` or `BCRYPT_ECCKEY_BLOB`.
crate/clients/cng/src/key.rs:353
↓ 4 callers
Function
export_public_key_spki
Export the public key associated with a key-pair (SPKI DER). For RSA and EC key pairs the KMS returns the public key in PKCS#8 (SPKI) format when `Ke
crate/clients/cng/src/backend.rs:277
↓ 4 callers
Function
export_ttlv_request
( unique_identifier: &str, unwrap: bool, key_format: &str, wrap_key_id: Option<String>, wr
crate/clients/wasm/src/wasm.rs:1705
↓ 4 callers
Function
extract_object_uid
Extracts the `UniqueIdentifier` for audit purposes from a single-operation TTLV. `is_response = false` — looks for `UniqueIdentifier` as a **direct c
crate/server/src/routes/kmip/audit.rs:245
↓ 4 callers
Function
extract_share_bytes
Extract raw share bytes from a `SplitKey`'s `KeyBlock`.
crate/server/src/core/operations/join_split_key.rs:491
↓ 4 callers
Function
fail_closed_create
(tag: &str)
crate/server/src/tests/audit_middleware.rs:1200
↓ 4 callers
Function
fetch_all_tags
Authorize `operation` on `kid`, then return the resolved UID and all current tags from the DB column (includes system tags such as `_kk`). Reading ta
crate/server/src/routes/jose/tags.rs:122
↓ 4 callers
Function
ffi_guard
Contains unwinding panics and permanently rejects work after one occurs. Captured state and the panic payload are abandoned, not dropped or reused; al
crate/clients/pkcs11/module/src/pkcs11.rs:82
↓ 4 callers
Function
file_uri
Build a `file://` URI for an absolute path (three slashes: scheme + empty authority + absolute path), matching `SR-CRL-10`'s convention. This URI is
crate/server/src/tests/test_validate.rs:1441
↓ 4 callers
Method
finalize
(self, id: i64, prev_hash: [u8; 32])
crate/access/src/audit/event.rs:155
↓ 4 callers
Function
find
Resolves a benchmark key by its KMIP unique identifier (`CKA_ID` then `CKA_LABEL`; KMIP uids are unique per object, so no class filter is needed).
crate/clients/clap/src/actions/pkcs11/bench/ops.rs:65
↓ 4 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/stores/redis/redis_with_findex.rs:1307
↓ 4 callers
Method
find_all_private_keys
(&self)
crate/clients/pkcs11/provider/src/backend.rs:318
↓ 4 callers
Function
find_attributes
(db: &DB)
crate/server_database/src/tests/find_attributes_test.rs:23
↓ 4 callers
Function
find_due_for_rotation_test
Verify that `find_due_for_rotation` returns exactly the objects that are `Active`, have `rotate_automatic = true`, and whose rotation deadline has alr
crate/server_database/src/tests/database_tests.rs:781
↓ 4 callers
Function
find_field_in_json
Find the first leaf value in a TTLV JSON tree matching the given tag name.
crate/test_kms_server/src/vector_runner.rs:849
↓ 4 callers
Function
find_session
Callers hold g_mu. */
crate/hsm/base_hsm/tests/fixtures/v3_message_adapter.c:80
↓ 4 callers
Function
find_values
(node, tag)
ansible/plugins/module_utils/kms_api.py:60
↓ 4 callers
Function
finishMaybe
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
finish_certificate
( tbs: &[u8], ca: &PublicKey, algorithm: SshSignatureAlgorithm, signature: &[u8], )
crate/server/src/routes/ssh/certificate.rs:344
↓ 4 callers
Function
fixture
(kms: &KMS, user: &UserId)
crate/server/src/core/lint_cleanup_characterization_tests.rs:1255
↓ 4 callers
Function
force_save_kms_cli_config
(ctx: &TestsContext)
crate/clients/ckms/src/tests/utils/config.rs:134
↓ 4 callers
Function
full_private_blob
Build a `BCRYPT_RSAFULLPRIVATE_BLOB` with the given field lengths; each field is filled with a distinct byte pattern.
crate/clients/cng/src/blob.rs:1057
↓ 4 callers
Function
gcm_invocations_orphan_purge_test
Counters left behind by a KMS that was downgraded and deleted keys are purged at the next startup, so a reused UID does not inherit a stale count; cou
crate/server_database/src/tests/database_tests.rs:1641
↓ 4 callers
Function
gcm_invocations_test
The AES-GCM invocation count adds up across concurrent reservations, refuses to pass the cap of SP 800-38D §8.3 without changing, and is forgotten on
crate/server_database/src/tests/database_tests.rs:1595
↓ 4 callers
Method
generateId
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
generate_load_json_output
Write `target/criterion/load_{protocol_slug}.json` — one JSON object per line. Each line: `{"protocol":"…","operation":"…","concurrency":N,"throughpu
crate/clients/clap/src/actions/bench/load.rs:1355
↓ 4 callers
Method
generated_iv
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:1112
↓ 4 callers
Method
getElementClass
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
getExtensions
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
getKnownSyntaxHighlighterLanguage
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
getMember
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
getParameterSchema
(s,{isOAS3:o}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
getTailOffset
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
getValue
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
get_attributes
(kms: &Arc<KMS>, uid: &str, tag: Tag)
crate/server/src/tests/test_always_sensitive.rs:47
↓ 4 callers
Function
get_attributes
( kms_rest_client: &KmsClient, id_or_tags: &str, attribute_tags: &[Tag], attribute_link_types:
crate/clients/clap/src/actions/attributes/get.rs:114
↓ 4 callers
Function
get_cert_der
(kms: &Arc<KMS>, owner: &UserId, cert_id: &str)
crate/server/src/tests/test_validate.rs:1452
↓ 4 callers
Function
get_ec_public_key_request
(uid: &str)
crate/kmip/src/kmip_2_1/requests/get.rs:34
↓ 4 callers
Method
get_encoding
(&self)
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:949
↓ 4 callers
Function
get_key_and_cipher
( request: &Encrypt, owm: &'a ObjectWithMetadata, )
crate/server/src/core/operations/encrypt.rs:864
↓ 4 callers
Method
get_min_compatible_version
(&self)
crate/server_database/src/stores/migrate.rs:262
↓ 4 callers
Function
get_or_insert_parameter
Reading an absent parameter never creates it; insertion chooses one stable value that subsequent read-only lookups and competing inserts return unchan
crate/server_database/src/tests/database_tests.rs:467
↓ 4 callers
Method
get_or_insert_parameter
Return the server-internal parameter `name` from the main database, storing `value` first if it is absent. Concurrent callers all get the first stored
crate/server_database/src/core/database_objects.rs:577
↓ 4 callers
Method
get_parameter
(&self, name: &str)
crate/server_database/src/stores/migrate.rs:563
↓ 4 callers
Function
get_root_cause
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
get_state
Query the `State` attribute of a key via KMIP `GetAttributes`.
crate/server/src/tests/jose/key_state.rs:709
↓ 4 callers
Function
get_tags
GET tags from a key; returns the parsed response body.
crate/server/src/tests/jose/tags.rs:76
↓ 4 callers
Function
get_user_and_resource_name
Validates the provided authentication and authorization tokens, and extracts the content. This function takes the authentication and authorization to
crate/server/src/routes/google_cse/operations.rs:298
↓ 4 callers
Method
get_using_handle
(&self, handle: CK_OBJECT_HANDLE)
crate/clients/pkcs11/module/src/objects_store.rs:70
↓ 4 callers
Function
google_cse_auth
( proxy_params: Option<&ProxyParams>, )
crate/server/src/tests/google_cse/utils.rs:396
↓ 4 callers
Function
grant
(kms: &KMS, path: &str, user: &str, operations: &[KmipOperation])
crate/server/src/routes/kv/tests.rs:137
↓ 4 callers
Function
hashing_algorithm_to_openssl_ref
( hashing_algorithm: HashingAlgorithm, )
crate/crypto/src/openssl/hashing.rs:30
↓ 4 callers
Function
hour_old_certificate
Ed25519 certificate created an hour ago, its primary key flagged sign + certify only.
crate/crypto/src/crypto/openpgp/mod.rs:1220
↓ 4 callers
Function
http_json
Send an HTTP request and return the parsed JSON body, or a descriptive error including the URI and backend name.
crate/secret_backends/src/common.rs:52
↓ 4 callers
Function
hybrid_kem_encapsulate
Hybrid KEM encapsulation: produces a (`shared_secret`, `ciphertext`) pair. `algorithm` identifies the hybrid KEM variant. `public_key_raw` should be
crate/crypto/src/crypto/pqc/hybrid_kem.rs:59
↓ 4 callers
Function
idemia_simulator_is_fips
()
crate/hsm/base_hsm/src/test_helpers.rs:37
↓ 4 callers
Function
ie
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
import
Import a new object
crate/server/src/core/operations/import.rs:117
↓ 4 callers
Method
inject_decrypt_artifacts
Inject `EncryptResponse` artifacts (ciphertext, IV/nonce, tag) into any Decrypt request batch items that have missing or empty placeholder fields. Exi
crate/clients/clap/src/tests/xml/request.rs:298
↓ 4 callers
Method
insert
Insert a freshly computed result for `(name, generation, owner)` and return the shared list (cached or not) so the caller does not need to clone it.
crate/server_database/src/core/rotate_name_cache.rs:152
↓ 4 callers
Function
insert_cek
Insert a successfully unwrapped CEK into the `UnwrappedCache`. `kmip_key_object` is the RSA key KMIP object used as the fingerprint source. Errors ar
crate/server/src/routes/jose/cek_cache.rs:163
← previous
next →
1,601–1,700 of 16,000, ranked by callers