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
↓ 4 callers
Function
client_ip
Address of the client of `req`, honouring `X-Forwarded-For` only from the configured trusted proxies (the same rule as the audit middleware).
crate/server/src/routes/enrollment.rs:102
↓ 4 callers
Method
clone
(&self)
crate/clients/k8s/csi_provider/src/provider.rs:396
↓ 4 callers
Function
cloneUnlessOtherwiseSpecified
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
close
Close the session and log out if necessary
crate/hsm/base_hsm/src/session/session_impl.rs:326
↓ 4 callers
Function
co_export_key
Helper to export a key (CO operation - key output)
crate/clients/ckms/src/tests/rbac_tests.rs:80
↓ 4 callers
Function
compute_resource_key_hash
Compute resource key hash The resource key hash is a mechanism allowing Google to verify the integrity of the wrapped encryption keys without having
crate/server/src/routes/google_cse/operations.rs:1306
↓ 4 callers
Function
concat
(...s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
contact
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
content_version
Compute a deterministic version string for `bytes` as the lower-hex SHA-256 digest of the content. A change in content → different version → rotation
crate/clients/k8s/csi_provider/src/service.rs:244
↓ 4 callers
Function
copy
({className:s=null,width:o=15,height:i=16,...u})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
copy_to_output_buffer
PKCS#11 two-phase output: reports the required length when `p_out` is null, fails with `BufferTooSmall` (still reporting the length) when the caller b
crate/clients/pkcs11/module/src/sessions.rs:159
↓ 4 callers
Function
createBuffer
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
createDeepLinkPath
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
create_aes_key
Helper: create a symmetric AES-256 key for encryption tests
crate/server/src/tests/security_regression.rs:27
↓ 4 callers
Function
create_aes_key
(app: &S, alg: &str)
crate/server/src/tests/jose/cek_kid.rs:54
↓ 4 callers
Function
create_ca
Create a self-signed CA certificate.
crate/test_kms_server/src/crl_tests.rs:118
↓ 4 callers
Function
create_derivable_symmetric_key_with_client
Create a symmetric key that can be used for derivation using `KmsClient` directly
crate/clients/ckms/src/tests/derive_key/derive_key_tests.rs:112
↓ 4 callers
Function
create_ec_keypair
Create an EC P-256 keypair and return `(private_uid, public_uid)`.
crate/server/src/tests/jose/key_state.rs:444
↓ 4 callers
Function
create_ec_pair
Create an EC P-256 key pair and return `(private_uid, public_uid)`.
crate/server/src/tests/revoke_tests.rs:74
↓ 4 callers
Function
create_hybrid_kem_key_pair
Create a hybrid KEM key pair. Supports `X25519MLKEM768` and `X448MLKEM1024` via OpenSSL 3.6+. Note: `SecP256r1MLKEM768` and `SecP384r1MLKEM1024` are
crate/crypto/src/crypto/pqc/hybrid_kem.rs:30
↓ 4 callers
Function
create_key_with_state
Create and store a fresh 256-bit AES symmetric key in the given `state`.
crate/server/src/tests/test_modify_attribute.rs:43
↓ 4 callers
Function
create_mac
Compute a MAC via the CLI. `extra_args` are appended after `["mac", "compute"]`.
crate/clients/ckms/src/tests/mac.rs:15
↓ 4 callers
Function
create_pqc_key_pair
Build a KMIP key pair from key bytes.
crate/crypto/src/crypto/pqc/mod.rs:565
↓ 4 callers
Function
create_raw_ec_key_pair
Builds a key pair from a raw-encoded (X25519, X448, Ed25519, Ed448) private key.
crate/crypto/src/crypto/elliptic_curves/operation.rs:277
↓ 4 callers
Function
create_rsa_key_pair
( vendor_id: &str, private_key_uid: &str, public_key_uid: &str, mut common_attributes: Attribu
crate/crypto/src/crypto/rsa/operation.rs:208
↓ 4 callers
Function
create_sym_key
(kms: &Arc<KMS>, sensitive: bool)
crate/server/src/tests/test_always_sensitive.rs:31
↓ 4 callers
Function
create_test_ca
Helper: generate a self-signed CA certificate for testing.
crate/crypto/src/openssl/crl.rs:521
↓ 4 callers
Method
created_at
(&self)
crate/crypto/src/crypto/openpgp/mod.rs:208
↓ 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:316
↓ 4 callers
Function
decrypt_fpe
( key: &[u8], data: &[u8], additional_data: Option<&[u8]>, tweak: Option<&[u8]>, )
crate/crypto/src/crypto/fpe/kmip_fpe.rs:216
↓ 4 callers
Function
decrypt_request
(arn: &str, enc: &EncryptResponse)
crate/server/src/routes/aws_xks/tests.rs:136
↓ 4 callers
Function
deepmerge
(s,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
default_cryptographic_parameters
( cryptographic_parameters: Option<&CryptographicParameters>, )
crate/crypto/src/crypto/rsa/mod.rs:20
↓ 4 callers
Function
delete_attribute
(kms: &Arc<KMS>, delete_request: DeleteAttribute)
crate/server/src/tests/test_set_attribute.rs:87
↓ 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:1273
↓ 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:115
↓ 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:314
↓ 4 callers
Function
ecdh_key_agreement
Perform a NIST-curve (P-256/P-384/P-521) ECDH key agreement and return the shared secret. `private_key_scalar` is the raw big-endian private scalar `
crate/crypto/src/crypto/elliptic_curves/operation.rs:380
↓ 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:1145
↓ 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:1183
↓ 4 callers
Function
ecdsa_verify
( verification_key: &PKey<Public>, data: &[u8], signature: &[u8], crypto_params: &Cryptographi
crate/crypto/src/crypto/elliptic_curves/verify.rs:22
↓ 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:296
↓ 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
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
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
encrypt
(kms: &KMS, user: &str, uid: &str)
crate/server/src/tests/hsm/fake_hsm_authz.rs:396
↓ 4 callers
Function
encrypt_fpe
( key: &[u8], data: &[u8], additional_data: Option<&[u8]>, tweak: Option<&[u8]>, )
crate/crypto/src/crypto/fpe/kmip_fpe.rs:174
↓ 4 callers
Function
enforce_sigv4_request_freshness
( request: &http::Request<B>, server_timestamp: DateTime<Utc>, )
crate/server/src/routes/aws_xks/sigv4_middleware.rs:265
↓ 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
error_response_ttlv
Generate an "Invalid Message" KMIP error response message in TTLV format
crate/server/src/routes/kmip/handlers.rs:51
↓ 4 callers
Function
escapeHTML
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
export_key
( dll: &KspDll, h_provider: usize, h_key: usize, blob_type: &str, )
crate/clients/clap/src/actions/cng_verify.rs:222
↓ 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:1640
↓ 4 callers
Method
extract_idp_configs
Parse this configuration into one identity provider configuration per JWT authentication provider. Each provider configuration string is parsed in th
crate/server/src/config/command_line/idp_auth_config.rs:76
↓ 4 callers
Function
extract_share_bytes
Extract raw share bytes from a `SplitKey`'s `KeyBlock`.
crate/server/src/core/operations/join_split_key.rs:455
↓ 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
Method
finalize
(self, id: i64, prev_hash: [u8; 32])
crate/access/src/audit/event.rs:155
↓ 4 callers
Method
finalize_decryption
(&mut self, tag: &[u8])
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:951
↓ 4 callers
Method
finalize_encryption
Finalize the encryption and return the ciphertext and the tag.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:911
↓ 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:1056
↓ 4 callers
Method
find_all
Return uid, state and attributes of ALL objects (bypasses all user filtering). Only called from the Administrator/CryptoOfficer Locate path. Callers
crate/server_database/src/core/database_objects.rs:506
↓ 4 callers
Method
find_all_private_keys
(&self)
crate/clients/pkcs11/provider/src/backend.rs:310
↓ 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:530
↓ 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:637
↓ 4 callers
Function
find_owned_transit_key
Find the transit key named `name` **owned by** `user`. Ownership is required (`user_must_be_owner = true`): a key another user tagged `vault_transit:
crate/server/src/routes/spire/transit.rs:345
↓ 4 callers
Function
find_session
Callers hold g_mu. */
crate/hsm/base_hsm/tests/fixtures/v3_message_adapter.c:80
↓ 4 callers
Function
finishMaybe
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
generateId
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 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:48
↓ 4 callers
Function
get_cached_crl
Retrieve the most recently cached CRL DER bytes for an issuer. Called by the public CRL endpoint (`GET /public/certificates/{issuer_id}/crl`). Cache
crate/server/src/core/operations/generate_crl.rs:87
↓ 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:939
↓ 4 callers
Function
get_root_cause
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
get_slot
Get a slot If a slot has already been opened, returns the opened slot. To close a slot before re-opening it with another password, call `close_slot()`
crate/hsm/base_hsm/src/base_hsm.rs:189
↓ 4 callers
Function
get_state
Query the `State` attribute of a key via KMIP `GetAttributes`.
crate/server/src/tests/jose/key_state.rs:680
↓ 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:281
↓ 4 callers
Method
get_using_handle
(&self, handle: CK_OBJECT_HANDLE)
crate/clients/pkcs11/module/src/objects_store.rs:72
↓ 4 callers
Function
has_all_keywords
`true` if the stored object still carries every keyword in `keywords`. Used to discard stale Findex hits (the index is written after the object, see `
crate/server_database/src/stores/redis/redis_with_findex.rs:252
↓ 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:1221
↓ 4 callers
Method
hsm_parts
Parse the components of an HSM key UID (`{prefix}::{slot}::{base_id}[@N]`). This is the single source of truth for HSM UID parsing; callers that need
crate/interfaces/src/object_handle.rs:68
↓ 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/server/src/config/command_line/secret_backends/common.rs:52
↓ 4 callers
Function
hybrid_kem_encapsulate
( algorithm: CryptographicAlgorithm, public_key_raw: &[u8], )
crate/crypto/src/crypto/pqc/hybrid_kem.rs:58
↓ 4 callers
Function
ie
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 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:246
↓ 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
← previous
next →
1,201–1,300 of 12,829, ranked by callers