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
↓ 2 callers
Function
create_self_signed_cert
(owner_client_conf_path: &str)
crate/clients/ckms/src/tests/certificates/certify.rs:905
↓ 2 callers
Function
create_slh_dsa_key_pair
Create an SLH-DSA key pair. Supports all 12 SLH-DSA variants (SHA2/SHAKE × 128/192/256 × s/f) via OpenSSL 3.6+. Key generation calls OpenSSL `EVP_PK
crate/crypto/src/crypto/pqc/slh_dsa.rs:22
↓ 2 callers
Method
create_split_key
Split a Managed Cryptographic Object into multiple split-key shares. The key is split using XOR-based split knowledge (all shares required). The retu
crate/clients/client/src/kms_rest_client.rs:190
↓ 2 callers
Function
create_symmetric_version
Create version `version` of the symmetric transit key `name` for `user`.
crate/server/src/routes/spire/transit_encryption.rs:264
↓ 2 callers
Function
create_test_ca_with_key
Helper: self-signed CA certificate (signed with SHA-256) for `pkey`.
crate/crypto/src/openssl/crl.rs:505
↓ 2 callers
Function
create_test_ca_with_key
Self-signed CA certificate (signed with SHA-256) for `pkey`.
crate/crypto/src/openssl/ocsp.rs:928
↓ 2 callers
Function
create_test_meter_provider
No-op provider — cheap, used only where value assertions aren't needed
crate/server/src/core/otel_metrics.rs:841
↓ 2 callers
Function
create_transit_key_impl
( req: HttpRequest, kms: Data<Arc<KMS>>, name: Path<String>, body: Json<CreateTransitKeyReques
crate/server/src/routes/spire/transit.rs:457
↓ 2 callers
Function
create_wrapped_dek
Creates a KEK and a DEK wrapped by it, and returns `(kek_uid, dek_uid)`.
crate/server/src/core/operations/rekey/symmetric/sql.rs:507
↓ 2 callers
Function
create_x448_key_pair
( vendor_id: &str, private_key_uid: &str, public_key_uid: &str, cryptographic_algorithm: &Cryp
crate/crypto/src/crypto/elliptic_curves/operation.rs:482
↓ 2 callers
Function
crypt2pay_all
(aes_gcm_check: fn(&Arc<SlotManager>) -> HResult<()>)
crate/hsm/crypt2pay/src/tests.rs:54
↓ 2 callers
Function
crypto_json_error_handler
Custom JSON deserialization error handler for `/v1/crypto/*` routes. When serde rejects a request body (e.g. unknown `JoseAlgorithm` variant), actix-
crate/server/src/routes/jose/error.rs:146
↓ 2 callers
Function
crypto_meta
(arn: &str, operation: &str)
crate/server/src/routes/aws_xks/tests.rs:108
↓ 2 callers
Method
crypto_officer_create_target
Crypto Officer checks for granting or revoking the `Create` right on `*`. Returns `None` when no Crypto Officer is configured (the `Create` change is
crate/server/src/core/kms/permissions.rs:29
↓ 2 callers
Function
cse_config_or_error
(cse_config: &Option<GoogleCseConfig>)
crate/server/src/routes/google_cse/jwt.rs:248
↓ 2 callers
Function
csr_attrs
DER of the `CsrAttrs` (RFC 7030 §4.5.2) for `template`: `extensionRequest` (the client is invited to send extension requests), then exactly one RFC 99
crate/server/src/routes/est/csrattrs.rs:50
↓ 2 callers
Function
csr_basic_constraints
Return the `basicConstraints` `cA` flag requested by a DER PKCS#10 CSR, or `None` when the CSR carries no `basicConstraints` extension request. # Err
crate/server/src/core/operations/certify/template.rs:160
↓ 2 callers
Function
csr_challenge_password
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/csr_attrs.rs:56
↓ 2 callers
Function
csr_with_san
A CSR with CN `dev` and one SAN extension built by `add`.
crate/server/src/core/operations/certify/template.rs:1096
↓ 2 callers
Function
ct_eq
Constant-time comparison (length is not secret); XOR-folds every byte.
crate/kmip/src/sensitive.rs:100
↓ 2 callers
Method
current_mut_structure
Get the current TTLV element which is the last element on the stack
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:120
↓ 2 callers
Function
curve
(recommended_curve: RecommendedCurve)
crate/server/src/core/operations/create_key_pair.rs:613
↓ 2 callers
Function
curve_bits
(curve: RecommendedCurve)
crate/crypto/src/crypto/elliptic_curves/operation.rs:111
↓ 2 callers
Function
curve_byte_size
(curve: EcCurve)
crate/hsm/base_hsm/src/session/ec.rs:140
↓ 2 callers
Function
curves
(curves: Vec<RecommendedCurve>)
crate/server/src/core/operations/algorithm_policy.rs:1319
↓ 2 callers
Function
custom_policy
(allowlists: KmipAllowlistsConfig)
crate/server/src/core/operations/algorithm_policy.rs:1312
↓ 2 callers
Function
d
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
datetime_to_rfc3339
Converts an `OffsetDateTime` to RFC3339 format. The offset is always printed numerically (`+00:00` for UTC, never `Z`) and sub-seconds are not printe
crate/crypto/src/crypto/anonymization/date_helper.rs:68
↓ 2 callers
Method
debase
Inverse of `rebase`: maps alphabet indices back to characters and reinserts non-alphabet characters at their original positions.
crate/crypto/src/crypto/fpe/alphabet.rs:231
↓ 2 callers
Function
decodeEntity
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
decode_associated_data
(value: Option<&str>)
crate/server/src/routes/spire/transit_encryption.rs:194
↓ 2 callers
Function
decode_csr
Decode the PKCS#10 request body: base64 (RFC 7030 §4.2.1, RFC 5967), line breaks allowed. A raw DER body (leading `SEQUENCE` byte) is tolerated from l
crate/server/src/routes/est/enroll.rs:56
↓ 2 callers
Function
decode_pem_to_der
Decode a PEM-encoded private key to raw DER bytes. Strips `-----BEGIN ... -----` and `-----END ... -----` headers and base64-decodes.
crate/clients/cng/src/key.rs:408
↓ 2 callers
Function
decode_request_ttlv
Best-effort decode of a binary KMIP request, `None` when it is not valid TTLV.
crate/server/src/routes/kmip/handlers.rs:487
↓ 2 callers
Function
decode_test_hex
(hex_value: &str, label: &str)
crate/crypto/src/crypto/elliptic_curves/operation.rs:1041
↓ 2 callers
Function
decode_unwrapped_key
Decode the unwrapped key into a `KeyValue` # Arguments `key_wrapping_data` - the key wrapping data `key_format_type` - the expected key format type `
crate/crypto/src/crypto/wrap/unwrap_key.rs:207
↓ 2 callers
Function
decode_with_refresh
Validate `token` against the first of `configs` accepting it. When none does, refresh the JWKS of the token's issuer and retry once: the KACLS `/certs
crate/server/src/routes/google_cse/jwt.rs:261
↓ 2 callers
Function
decoding_error_reason
Result reason of a request message that cannot be decoded: the spec's specific reasons for an undefined tag or enumeration value, else Invalid Message
crate/server/src/routes/kmip/handlers.rs:296
↓ 2 callers
Method
decrement_active_connections
Decrement active connections
crate/server/src/core/otel_metrics.rs:606
↓ 2 callers
Function
decrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/elliptic_curve/encrypt_decrypt.rs:46
↓ 2 callers
Function
decrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/certificates/encrypt.rs:63
↓ 2 callers
Function
decrypt
crate/hsm/base_hsm/tests/fixtures/fips_gcm_hsm.c:288
↓ 2 callers
Method
decrypt
( &self, _slot_id: usize, key_id: &[u8], algorithm: CryptoAlgorithm, d
crate/server/src/tests/hsm/fake_hsm_rotation.rs:300
↓ 2 callers
Method
decrypt
( &mut self, ciphertext: Vec<u8>, p_data: CK_BYTE_PTR, pul_data_len: CK_ULONG_
crate/clients/pkcs11/module/src/sessions.rs:919
↓ 2 callers
Method
decrypt_aes_cbc_multi_round
Decrypt data using AES-CBC in multiple rounds before removing PKCS#7 padding. This function performs AES-CBC decryption of the given ciphertext, spli
crate/hsm/base_hsm/src/session/session_impl.rs:1483
↓ 2 callers
Function
decrypt_as
( kms: &KMS, uid_str: &str, ciphertext: &[u8], user: &UserId, )
crate/server/src/tests/hsm/fake_hsm_rotation.rs:766
↓ 2 callers
Function
decrypt_data
Helper: decrypt data using a key
crate/server/src/tests/hsm/permissions.rs:137
↓ 2 callers
Function
decrypt_data
Decrypt data using a private key in the KMS.
crate/clients/cng/src/backend.rs:507
↓ 2 callers
Function
decrypt_failed
(reason: &dyn std::fmt::Display)
crate/server/src/routes/spire/transit_encryption.rs:332
↓ 2 callers
Function
decrypt_file
( client: cosmian_kms_client::KmsClient, kek: &str, enc: std::path::PathBuf, o
crate/clients/clap/src/actions/symmetric/decrypt.rs:563
↓ 2 callers
Method
decrypt_final
Finish the active decryption operation and append any remaining bytes.
crate/hsm/base_hsm/src/session/session_impl.rs:1739
↓ 2 callers
Function
decrypt_impl
( req: &HttpRequest, kms: &KMS, name: &str, body: DecryptTransitRequest, )
crate/server/src/routes/spire/transit_encryption.rs:460
↓ 2 callers
Method
decrypt_message_aes_gcm
Decrypt `ciphertext` (with detached `tag`/`iv`) under `key_handle` using AES-GCM as a PKCS#11 v3.0 "message" operation (`C_MessageDecryptInit`/`C_Decr
crate/hsm/base_hsm/src/session/message_aead.rs:242
↓ 2 callers
Function
decrypt_pgp_ttlv_request
( key_unique_identifier: &str, ciphertext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1280
↓ 2 callers
Function
decrypt_request
( key_id: UniqueIdentifier, block_cipher_mode: BlockCipherMode, data: Vec<u8>, )
crate/server/src/tests/bulk_encrypt_decrypt_tests.rs:191
↓ 2 callers
Function
decrypt_rsa_ttlv_request
( key_unique_identifier: &str, ciphertext: Vec<u8>, encryption_algorithm: JsValue, hash_fn: Js
crate/clients/wasm/src/wasm.rs:1354
↓ 2 callers
Function
decrypt_sym_ttlv_request
( key_unique_identifier: &str, ciphertext: Vec<u8>, authentication_data: Option<Vec<u8>>, data
crate/clients/wasm/src/wasm.rs:1331
↓ 2 callers
Function
decrypt_truncated
Decrypt with the tag truncated to `len` bytes: `[single-part, streaming]` results.
crate/crypto/src/crypto/symmetric/tests.rs:77
↓ 2 callers
Function
decrypt_with_covercrypt
( owm: &ObjectWithMetadata, request: &Decrypt, )
crate/server/src/core/operations/decrypt.rs:552
↓ 2 callers
Function
decrypt_with_oracle
Decrypt on the token; a keyset walk supplies an authenticated default algorithm.
crate/server/src/core/operations/decrypt.rs:248
↓ 2 callers
Function
decrypt_with_private_key
( owm: &ObjectWithMetadata, request: &Decrypt, #[cfg(feature = "non-fips")] server_params: &Server
crate/server/src/core/operations/decrypt.rs:891
↓ 2 callers
Function
decryption_nonce
IV/Counter/Nonce of a symmetric decryption (KMIP 2.1 §6.1.11): - not used by the cipher (ECB) → none; - absent → `Missing Init
crate/server/src/core/operations/decrypt.rs:674
↓ 2 callers
Function
default_cors_origins
Build the default CORS allowed-origins list for `port` and `scheme`. Includes `localhost`, `127.0.0.1`, `0.0.0.0`, `[::1]`, and `[::]` so that the bu
crate/server/src/config/wizard/http_wizard.rs:13
↓ 2 callers
Function
defineProperty_defineProperty
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
definitions
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
delete
(&self, endpoint: &str)
crate/clients/clap/src/actions/google/gmail_client/client_builder.rs:124
↓ 2 callers
Function
delete_
(uid: &str, tx: &mut Transaction<'_>)
crate/server_database/src/stores/sql/mysql.rs:2005
↓ 2 callers
Function
delete_all_keys
(owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:447
↓ 2 callers
Method
delete_attribute
( &self, kms_rest_client: &KmsClient, id: &str, current_attribute: Option<Attr
crate/clients/clap/src/actions/attributes/delete.rs:33
↓ 2 callers
Method
delete_json
Send an HTTP DELETE request with a JSON body. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:552
↓ 2 callers
Method
delete_object_handle
(&self, id: &[u8])
crate/hsm/base_hsm/src/session/session_impl.rs:699
↓ 2 callers
Function
delete_tags
DELETE tags from a key; returns the parsed response body.
crate/server/src/tests/jose/tags.rs:54
↓ 2 callers
Function
deny_response
Reject the pod: an annotated pod must never run without its injected init-container.
crate/clients/k8s/operator/src/webhook.rs:145
↓ 2 callers
Function
der_element
The next DER element of `input` and the bytes after it.
crate/crypto/src/openssl/scep_cms.rs:274
↓ 2 callers
Function
der_encode_base128
Encode `n` in base-128 big-endian (DER OID arc encoding).
crate/crypto/src/openssl/x509_extensions.rs:474
↓ 2 callers
Function
der_encode_oid
Encode a dotted-decimal OID string as a DER OID TLV (tag `0x06`).
crate/crypto/src/openssl/x509_extensions.rs:445
↓ 2 callers
Function
der_encode_sequence
Wrap `content` in a DER SEQUENCE (tag `0x30`).
crate/crypto/src/openssl/x509_extensions.rs:437
↓ 2 callers
Function
der_encode_uint
Encode a DER INTEGER with sign padding if necessary.
crate/clients/cng/src/blob.rs:466
↓ 2 callers
Function
der_encodings
The same RSA key as PKCS#1 DER and as PKCS#8 DER.
crate/server/src/tests/google_cse/crypto_paths.rs:98
↓ 2 callers
Function
der_parse_unsigned_integer
(input: &[u8])
crate/clients/pkcs11/provider/src/kms_object.rs:1330
↓ 2 callers
Function
der_to_pem
Converts DER bytes to PEM bytes for keys
crate/clients/client_utils/src/export_utils.rs:78
↓ 2 callers
Method
derive_hkdf_key
Derive a new AES key from a base secret key using HKDF (`CKM_HKDF_DERIVE`, OASIS Cryptoki v3.0 §2.3.11 / RFC 5869). Performs the standard HKDF Extrac
crate/hsm/base_hsm/src/session/session_impl.rs:2729
↓ 2 callers
Function
derive_key_asymmetric_ttlv_request
( private_key_id: &str, peer_public_key_id: &str, derived_key_id: Option<String>, )
crate/clients/wasm/src/wasm.rs:3160
↓ 2 callers
Function
derive_pbkdf2
PBKDF2 key derivation using OpenSSL's `pbkdf2_hmac` Returns the derived key wrapped in [`Zeroizing`] so the bytes are scrubbed from memory when the v
crate/server/src/core/operations/derive_key.rs:1047
↓ 2 callers
Function
derive_pbkdf2_blocking
[`derive_pbkdf2`] on the blocking pool: PBKDF2 is CPU-bound for seconds and must not pin the HTTP worker.
crate/server/src/core/operations/derive_key.rs:1073
↓ 2 callers
Function
derive_signing_key
Derives the `SigV4` `kSigning` key for `date` (`YYYYMMDD`); accepts any secret length, so the full 43–64 character XKS range is supported.
crate/server/src/routes/aws_xks/sigv4.rs:335
↓ 2 callers
Method
deserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
deserialize_map
(self, visitor: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:923
↓ 2 callers
Method
deserialize_str
(self, visitor: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:544
↓ 2 callers
Function
deserialize_tagged_label
(bytes: Vec<u8>)
crate/hsm/base_hsm/src/session/mod.rs:113
↓ 2 callers
Function
destroy_operation
Destroy a KMIP Object
crate/server/src/core/operations/destroy.rs:37
↓ 2 callers
Function
destroy_request
(key_id: &str)
crate/server/src/routes/aws_xks/tests.rs:65
↓ 2 callers
Function
destroy_ttlv_request
(unique_identifier: String, remove: bool)
crate/clients/wasm/src/wasm.rs:1398
↓ 2 callers
Function
destroy_version_operations
Build the operations destroying a version object the way KMIP `Destroy` does: the secret bytes are wiped (not only the state changed), so a destroyed
crate/server/src/routes/kv/metadata.rs:485
↓ 2 callers
Function
di
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
disconnect
()
ui/tests/unit/setup.ts:55
↓ 2 callers
Function
discover_eligible_public_keys
Query the database for all public keys eligible for JWKS inclusion. Eligibility criteria: - `ObjectType::PublicKey` - Tagged [`JWKS_TAG`] (`"jwks"`)
crate/server/src/routes/jwks.rs:138
↓ 2 callers
Function
disk_encryption_tag
Tag the provider's `find_all_private_keys` filters on, overridable with `COSMIAN_PKCS11_DISK_ENCRYPTION_TAG` exactly like the provider's own default.
crate/clients/clap/src/actions/pkcs11/bench/setup.rs:142
↓ 2 callers
Function
dispatch
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
dk
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previous
next →
3,001–3,100 of 16,000, ranked by callers