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
↓ 3 callers
Function
build_malformed_request_response
Return an OCSP `malformedRequest` error response (minimal DER). Per RFC 6960 §2.3 the responder returns `malformedRequest` when the request does not
crate/server/src/routes/ocsp/handler.rs:719
↓ 3 callers
Function
build_pool
Builds a 1-connection pool for `url`, honoring `sslmode`/`sslrootcert`/`sslcert`/`sslkey` exactly like the object-store connection (see `prepare_pg_co
crate/server_database/src/stores/audit/pgsql.rs:107
↓ 3 callers
Function
build_private_key_from_der_bytes
( key_format_type: KeyFormatType, bytes: Zeroizing<Vec<u8>>, )
crate/clients/client_utils/src/import_utils.rs:101
↓ 3 callers
Function
build_protected_header
Build a base64url-encoded `protected` header for the unwrap endpoint.
crate/server/src/tests/jose/unwrap.rs:74
↓ 3 callers
Function
build_request
Build a minimal RequestMessage containing a single Decrypt operation
crate/clients/clap/src/tests/xml/request.rs:1166
↓ 3 callers
Function
build_selected_attribute
( attribute_name: &str, attribute_value: String, )
crate/clients/client_utils/src/attributes_utils.rs:603
↓ 3 callers
Function
build_test_event
Builds a would-be-valid event for `id` chained onto `prev_hash`, with `row_hash` left zeroed \u2014 callers compute it (and may then corrupt any field
crate/clients/clap/src/actions/audit.rs:1372
↓ 3 callers
Function
busy_response
`503` when the concurrent enrollment limit is reached.
crate/server/src/routes/enrollment.rs:229
↓ 3 callers
Function
c
(o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
can_receive_envelope
The certificate is returned encrypted to the signer: only RSA and EC keys can be CMS recipients, so any other key is refused before anything is issued
crate/server/src/routes/scep/pki_operation.rs:381
↓ 3 callers
Function
certify
Certify `subject`, self-signed when `issuer` is `None`; returns the certificate id.
crate/server/src/tests/revocation_authority_tests.rs:61
↓ 3 callers
Method
certify
This request is used to generate a Certificate object for a public key. This request supports the certification of a new public key, as well as the ce
crate/clients/client/src/kms_rest_client.rs:119
↓ 3 callers
Function
certify_csr
Helper: certify a PEM CSR with a CA.
crate/test_kms_server/src/certify_tests.rs:1116
↓ 3 callers
Function
chacha20_xor
( key: &[u8], nonce: &[u8], counter_low: u32, input: &[u8], output: &mut [u8], )
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:775
↓ 3 callers
Function
check_certificate_and_public_key_linked
( owner_client_conf_path: &str, certificate_id: &str, certificate_attributes: &Attributes, )
crate/clients/ckms/src/tests/certificates/certify.rs:460
↓ 3 callers
Function
check_grant
Requires ownership or an explicit grant for attributes the policy marks `RequiresGrant`.
crate/server/src/core/operations/attributes/policy.rs:77
↓ 3 callers
Function
check_rotate_name
Rejects `rotate_name` values containing `@`, which is reserved for keyset versioning.
crate/server/src/core/operations/attributes/policy.rs:44
↓ 3 callers
Function
checked
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
ck_usize
Fallible `CK_ULONG -> usize` conversion.
crate/clients/clap/src/actions/pkcs11/capabilities.rs:187
↓ 3 callers
Function
cleanArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
client_key
The table key of `client`: IPv4-mapped IPv6 addresses count as IPv4, IPv6 addresses as their /64 prefix.
crate/server/src/routes/enrollment_guard.rs:78
↓ 3 callers
Method
code
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
coerceElementMatchingCallback
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
collect_bench_points
Walk `target/criterion/` and collect all benchmark data points.
crate/clients/clap/src/actions/bench/output.rs:383
↓ 3 callers
Function
compare_attributes
Deep compare for Attributes. Compares each Option field by presence and value; for vectors (Name, Link, VendorAttribute), compares length and elements
crate/clients/clap/src/tests/xml/compare.rs:472
↓ 3 callers
Function
compute_hmac
Compute an HMAC-SHA256 tag on [`MAC_DATA`] with an Active key.
crate/server/src/tests/jose/key_state.rs:277
↓ 3 callers
Function
conf_with_mock
Write the owner client conf with the Gmail API redirected to `mock`.
crate/clients/ckms/src/tests/google_cmd/gmail_api.rs:20
↓ 3 callers
Function
configure_client_cert_verification
Configure client certificate verification
crate/server/src/tls_config.rs:196
↓ 3 callers
Method
connect
Connects to `url`, acquires `instance_id`'s advisory lock, and ensures the schema exists and is current. A held lock is retried with backoff for up t
crate/server_database/src/stores/audit/pgsql.rs:167
↓ 3 callers
Method
constructor
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
contains
(haystack: &[u8], needle: &[u8])
crate/crypto/src/openssl/scep_cms.rs:968
↓ 3 callers
Method
context
(self, context: &str)
crate/hsm/base_hsm/src/error.rs:46
↓ 3 callers
Function
context_tree_createNode
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
coord_size
(self)
crate/clients/cng/src/blob.rs:108
↓ 3 callers
Function
copyProps
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
count_non_destroyed_keys_test
Verify that `count_non_destroyed_keys` counts key objects by their `ObjectType` attribute and state: - `Active` and `Deactivated` keys are counted - `
crate/server_database/src/tests/database_tests.rs:648
↓ 3 callers
Function
createCertificate
(page: Page, algorithm: string, subjectName = "CN=E2E Test,O=Cosmian")
ui/tests/e2e/helpers.ts:443
↓ 3 callers
Function
createHtmlReadyId
(s,o="_")
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
createLineElement
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
create_aes_key_with_size
( app: &S, tag: &str, bits: i32, )
crate/server/src/tests/kmip_policy/helpers.rs:76
↓ 3 callers
Function
create_derivation_object_request
Build a `Create` request for base objects that can be used for key derivation operations. This function can create either symmetric keys or secret dat
crate/kmip/src/kmip_2_1/requests/create.rs:246
↓ 3 callers
Function
create_ec_key_pair
( identity: KeyPairIdentity<'_>, spec: EcKeySpec, material: EcKeyMaterial<'_>, )
crate/crypto/src/crypto/elliptic_curves/operation.rs:680
↓ 3 callers
Function
create_ec_keypair_with_id
Create an EC P-256 keypair whose private key UID equals `key_id`. Returns `(private_key_id, public_key_id)`.
crate/clients/ckms/src/tests/elliptic_curve/rotation_policy.rs:19
↓ 3 callers
Function
create_hsm_root
Offline-root stand-in: a self-signed root whose non-extractable key pair `root_sk_id` is in the HSM. Returns the root certificate id.
crate/server/src/tests/hsm/sub_ca.rs:232
↓ 3 callers
Function
create_key
( _req_http: HttpRequest, _request: GetKeyMetadataRequest, key_id: String, kms: &Arc<KMS>, )
crate/server/src/routes/aws_xks/key_metadata.rs:298
↓ 3 callers
Function
create_key_pair
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:253
↓ 3 callers
Function
create_openssl_acceptor
Client Certificate Authentication Build an OpenSSL SslAcceptor supporting client cert auth
crate/server/src/socket_server.rs:532
↓ 3 callers
Function
create_rsa_keypair_with_id
Create a 2048-bit RSA keypair whose private key UID equals `key_id`. Returns `(private_key_id, public_key_id)`.
crate/clients/ckms/src/tests/rsa/rotation_policy.rs:19
↓ 3 callers
Function
create_rsa_kp
( rt: &Runtime, client: &KmsClient, name: &str, bits: usize, )
crate/clients/clap/src/actions/bench/helpers.rs:416
↓ 3 callers
Function
create_rsa_ssh_keypair
( kms_rest_client: &KmsClient, bits: usize, )
crate/clients/pkcs11/provider/src/tests.rs:494
↓ 3 callers
Function
create_secret_data_kmip_object
Create a secret data for the given type
crate/kmip/src/kmip_2_1/requests/create.rs:162
↓ 3 callers
Function
create_secret_data_ttlv_request
( secret_type: &str, secret_value: Option<String>, secret_id: Option<String>, tags: Vec<String
crate/clients/wasm/src/wasm.rs:1099
↓ 3 callers
Function
create_split_key
Split `source_uid` into `total_parts` shares via `ckms sym keys create-split-key`. Returns the list of share UIDs printed by the server (one per line
crate/clients/ckms/src/tests/symmetric/split_key.rs:23
↓ 3 callers
Method
create_split_key
This operation requests the server to split an existing Managed Cryptographic Object into N parts, each stored as a `SplitKey` KMIP object. KMIP 2.1 §
crate/server/src/core/kms/kmip.rs:135
↓ 3 callers
Function
create_test_cert_with_extensions
Build a self-signed test certificate carrying the given extra extensions, used to exercise `verify_delegated_responder_authorization`.
crate/crypto/src/openssl/ocsp.rs:1559
↓ 3 callers
Function
crl_number_to_sql
Convert a CRL number to the signed SQL `BIGINT`/`INTEGER` column value, saturating at `i64::MAX`.
crate/server_database/src/stores/sql/mod.rs:41
↓ 3 callers
Function
cse_key_encrypt
Encrypt a key Tries to encrypt it, using the `resource_name`. # Arguments `key` - A base64-encoded string representing the key to wrap. `user` - A st
crate/server/src/routes/google_cse/operations.rs:1250
↓ 3 callers
Function
csr_matches_certificate_identity
`true` when the Subject and the `SubjectAltName` of `csr` are identical to those of `cert` (RFC 7030 §4.2.2; also required for SCEP renewals so that a
crate/server/src/routes/enrollment.rs:644
↓ 3 callers
Function
csr_with_extension
(key: &PKey<Private>, ext: openssl::x509::X509Extension)
crate/server/src/core/operations/certify/template.rs:850
↓ 3 callers
Function
csr_with_raw_basic_constraints
A validly signed CSR whose single attribute (OID `attr_oid`, content bytes of the OID) requests `basicConstraints` with the given raw extension value.
crate/server/src/core/operations/certify/template.rs:1001
↓ 3 callers
Function
curlify
(s,o,i,u="")
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
curve_from_crv
Map a JOSE `crv` string to a KMIP `RecommendedCurve`.
crate/server/src/routes/jose/algorithm.rs:374
↓ 3 callers
Function
decrypt_ec_ttlv_request
( key_unique_identifier: &str, ciphertext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1317
↓ 3 callers
Method
decrypt_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, encrypted
crate/hsm/base_hsm/src/session/session_impl.rs:1722
↓ 3 callers
Method
default
()
crate/clients/ckms/src/tests/certificates/import.rs:35
↓ 3 callers
Function
delay
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
delete
(&self, _slot_id: usize, _object_id: &[u8])
crate/server/src/core/operations/certify/hsm_subject_tests.rs:143
↓ 3 callers
Function
deprecated
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
der_encode_length
(len: usize)
crate/crypto/src/openssl/x509_extensions.rs:413
↓ 3 callers
Function
der_encode_length
(out: &mut Vec<u8>, len: usize)
crate/clients/cng/src/blob.rs:451
↓ 3 callers
Function
der_read_tlv
Skip a DER TLV and return the value slice.
crate/clients/cng/src/blob.rs:197
↓ 3 callers
Function
dereference
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
derive
(ceremony_secret: &[u8; CEREMONY_SECRET_LENGTH])
crate/server_database/src/ceremony_keys.rs:69
↓ 3 callers
Method
derive_key
This operation is used to derive a new key from an existing key using a specified derivation method such as PBKDF2 or HKDF. The server SHALL perform t
crate/clients/client/src/kms_rest_client.rs:236
↓ 3 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:810
↓ 3 callers
Function
derive_session_key_from_url
Derive a session cookie encryption key from the public URL and a user-provided salt. This function creates a deterministic key from the public URL an
crate/server/src/start_kms_server.rs:723
↓ 3 callers
Method
deserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
destroy_all
Destroy all registered keys with `remove: true` to delete from the HSM.
crate/clients/clap/src/actions/bench/helpers.rs:53
↓ 3 callers
Function
e2e_ecies_roundtrip_with_policy
( curve: RecommendedCurve, allowed_shake: CryptographicAlgorithm, )
crate/server/src/tests/kmip_policy/e2e_ecies.rs:29
↓ 3 callers
Function
ec
(nid: Nid)
crate/server/src/tests/kmip_policy/certify.rs:28
↓ 3 callers
Function
ec_algorithm
(curve: Option<EcCurve>)
crate/interfaces/src/hsm/hsm_store.rs:104
↓ 3 callers
Function
ec_curve_to_recommended_curve
Map an `EcCurve` (HSM interface curve enum) to the corresponding KMIP `RecommendedCurve`. FIPS-approved NIST prime curves are always covered; the Edwa
crate/interfaces/src/hsm/hsm_store.rs:37
↓ 3 callers
Function
ec_key
()
crate/server/src/core/certificate/oracle_signing.rs:534
↓ 3 callers
Function
ec_key_format_type
(object_type: ObjectType)
crate/interfaces/src/hsm/hsm_store.rs:108
↓ 3 callers
Function
ec_sign
Sign [`SIGN_DATA`] with the private key and return the raw signature bytes.
crate/server/src/tests/jose/key_state.rs:469
↓ 3 callers
Function
editableVNode
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
email
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
emitReadable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
empty
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
emptyList
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
emptyOrderedMap
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
encrypt_ec_ttlv_request
( key_unique_identifier: &str, plaintext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1399
↓ 3 callers
Method
encrypt_message_aes_gcm
Encrypt `plaintext` under `key_handle` using AES-GCM as a PKCS#11 v3.0 "message" operation (`C_MessageEncryptInit`/`C_EncryptMessage`/`C_MessageEncryp
crate/hsm/base_hsm/src/session/message_aead.rs:78
↓ 3 callers
Function
end
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 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:257
↓ 3 callers
Function
ensureSize
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
ensure_active_certificate_of_ca
Check that `cert` was issued by the CA `ca_cert` (`ca_uid`), is within its validity period and is tracked by the KMS in the `Active` state (i.e. not r
crate/server/src/routes/enrollment.rs:481
↓ 3 callers
Function
ensure_backend_registered
Performs the KMS backend/config initialization that `C_GetFunctionList` used to do inline. Returns `Err(CKR_FUNCTION_FAILED)` if the KMS client cannot
crate/clients/pkcs11/provider/src/lib.rs:147
↓ 3 callers
Function
ensure_pkcs11_lib
()
crate/clients/ckms/src/tests/pkcs11.rs:28
↓ 3 callers
Function
envelope_with
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:916
← previous
next →
1,501–1,600 of 12,829, ranked by callers