MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 3 callersFunctionbuild_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 callersFunctionbuild_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 callersFunctionbuild_private_key_from_der_bytes
( key_format_type: KeyFormatType, bytes: Zeroizing<Vec<u8>>, )
crate/clients/client_utils/src/import_utils.rs:101
↓ 3 callersFunctionbuild_protected_header
Build a base64url-encoded `protected` header for the unwrap endpoint.
crate/server/src/tests/jose/unwrap.rs:74
↓ 3 callersFunctionbuild_request
Build a minimal RequestMessage containing a single Decrypt operation
crate/clients/clap/src/tests/xml/request.rs:1166
↓ 3 callersFunctionbuild_selected_attribute
( attribute_name: &str, attribute_value: String, )
crate/clients/client_utils/src/attributes_utils.rs:603
↓ 3 callersFunctionbuild_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 callersFunctionbusy_response
`503` when the concurrent enrollment limit is reached.
crate/server/src/routes/enrollment.rs:229
↓ 3 callersFunctionc
(o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncan_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 callersFunctioncertify
Certify `subject`, self-signed when `issuer` is `None`; returns the certificate id.
crate/server/src/tests/revocation_authority_tests.rs:61
↓ 3 callersMethodcertify
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 callersFunctioncertify_csr
Helper: certify a PEM CSR with a CA.
crate/test_kms_server/src/certify_tests.rs:1116
↓ 3 callersFunctionchacha20_xor
( key: &[u8], nonce: &[u8], counter_low: u32, input: &[u8], output: &mut [u8], )
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:775
↓ 3 callersFunctioncheck_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 callersFunctioncheck_grant
Requires ownership or an explicit grant for attributes the policy marks `RequiresGrant`.
crate/server/src/core/operations/attributes/policy.rs:77
↓ 3 callersFunctioncheck_rotate_name
Rejects `rotate_name` values containing `@`, which is reserved for keyset versioning.
crate/server/src/core/operations/attributes/policy.rs:44
↓ 3 callersFunctionchecked
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionck_usize
Fallible `CK_ULONG -> usize` conversion.
crate/clients/clap/src/actions/pkcs11/capabilities.rs:187
↓ 3 callersFunctioncleanArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionclient_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 callersMethodcode
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncoerceElementMatchingCallback
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncollect_bench_points
Walk `target/criterion/` and collect all benchmark data points.
crate/clients/clap/src/actions/bench/output.rs:383
↓ 3 callersFunctioncompare_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 callersFunctioncompute_hmac
Compute an HMAC-SHA256 tag on [`MAC_DATA`] with an Active key.
crate/server/src/tests/jose/key_state.rs:277
↓ 3 callersFunctionconf_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 callersFunctionconfigure_client_cert_verification
Configure client certificate verification
crate/server/src/tls_config.rs:196
↓ 3 callersMethodconnect
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 callersMethodconstructor
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncontains
(haystack: &[u8], needle: &[u8])
crate/crypto/src/openssl/scep_cms.rs:968
↓ 3 callersMethodcontext
(self, context: &str)
crate/hsm/base_hsm/src/error.rs:46
↓ 3 callersFunctioncontext_tree_createNode
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodcoord_size
(self)
crate/clients/cng/src/blob.rs:108
↓ 3 callersFunctioncopyProps
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncount_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 callersFunctioncreateCertificate
(page: Page, algorithm: string, subjectName = "CN=E2E Test,O=Cosmian")
ui/tests/e2e/helpers.ts:443
↓ 3 callersFunctioncreateHtmlReadyId
(s,o="_")
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncreateLineElement
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncreate_aes_key_with_size
( app: &S, tag: &str, bits: i32, )
crate/server/src/tests/kmip_policy/helpers.rs:76
↓ 3 callersFunctioncreate_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 callersFunctioncreate_ec_key_pair
( identity: KeyPairIdentity<'_>, spec: EcKeySpec, material: EcKeyMaterial<'_>, )
crate/crypto/src/crypto/elliptic_curves/operation.rs:680
↓ 3 callersFunctioncreate_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 callersFunctioncreate_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 callersFunctioncreate_key
( _req_http: HttpRequest, _request: GetKeyMetadataRequest, key_id: String, kms: &Arc<KMS>, )
crate/server/src/routes/aws_xks/key_metadata.rs:298
↓ 3 callersFunctioncreate_key_pair
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:253
↓ 3 callersFunctioncreate_openssl_acceptor
Client Certificate Authentication Build an OpenSSL SslAcceptor supporting client cert auth
crate/server/src/socket_server.rs:532
↓ 3 callersFunctioncreate_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 callersFunctioncreate_rsa_kp
( rt: &Runtime, client: &KmsClient, name: &str, bits: usize, )
crate/clients/clap/src/actions/bench/helpers.rs:416
↓ 3 callersFunctioncreate_rsa_ssh_keypair
( kms_rest_client: &KmsClient, bits: usize, )
crate/clients/pkcs11/provider/src/tests.rs:494
↓ 3 callersFunctioncreate_secret_data_kmip_object
Create a secret data for the given type
crate/kmip/src/kmip_2_1/requests/create.rs:162
↓ 3 callersFunctioncreate_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 callersFunctioncreate_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 callersMethodcreate_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 callersFunctioncreate_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 callersFunctioncrl_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 callersFunctioncse_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 callersFunctioncsr_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 callersFunctioncsr_with_extension
(key: &PKey<Private>, ext: openssl::x509::X509Extension)
crate/server/src/core/operations/certify/template.rs:850
↓ 3 callersFunctioncsr_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 callersFunctioncurlify
(s,o,i,u="")
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncurve_from_crv
Map a JOSE `crv` string to a KMIP `RecommendedCurve`.
crate/server/src/routes/jose/algorithm.rs:374
↓ 3 callersFunctiondecrypt_ec_ttlv_request
( key_unique_identifier: &str, ciphertext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1317
↓ 3 callersMethoddecrypt_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, encrypted
crate/hsm/base_hsm/src/session/session_impl.rs:1722
↓ 3 callersMethoddefault
()
crate/clients/ckms/src/tests/certificates/import.rs:35
↓ 3 callersFunctiondelay
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethoddelete
(&self, _slot_id: usize, _object_id: &[u8])
crate/server/src/core/operations/certify/hsm_subject_tests.rs:143
↓ 3 callersFunctiondeprecated
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionder_encode_length
(len: usize)
crate/crypto/src/openssl/x509_extensions.rs:413
↓ 3 callersFunctionder_encode_length
(out: &mut Vec<u8>, len: usize)
crate/clients/cng/src/blob.rs:451
↓ 3 callersFunctionder_read_tlv
Skip a DER TLV and return the value slice.
crate/clients/cng/src/blob.rs:197
↓ 3 callersFunctiondereference
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodderive
(ceremony_secret: &[u8; CEREMONY_SECRET_LENGTH])
crate/server_database/src/ceremony_keys.rs:69
↓ 3 callersMethodderive_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 callersMethodderive_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 callersFunctionderive_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 callersMethoddeserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethoddestroy_all
Destroy all registered keys with `remove: true` to delete from the HSM.
crate/clients/clap/src/actions/bench/helpers.rs:53
↓ 3 callersFunctione2e_ecies_roundtrip_with_policy
( curve: RecommendedCurve, allowed_shake: CryptographicAlgorithm, )
crate/server/src/tests/kmip_policy/e2e_ecies.rs:29
↓ 3 callersFunctionec
(nid: Nid)
crate/server/src/tests/kmip_policy/certify.rs:28
↓ 3 callersFunctionec_algorithm
(curve: Option<EcCurve>)
crate/interfaces/src/hsm/hsm_store.rs:104
↓ 3 callersFunctionec_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 callersFunctionec_key
()
crate/server/src/core/certificate/oracle_signing.rs:534
↓ 3 callersFunctionec_key_format_type
(object_type: ObjectType)
crate/interfaces/src/hsm/hsm_store.rs:108
↓ 3 callersFunctionec_sign
Sign [`SIGN_DATA`] with the private key and return the raw signature bytes.
crate/server/src/tests/jose/key_state.rs:469
↓ 3 callersFunctioneditableVNode
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodemail
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionemitReadable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodempty
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionemptyList
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionemptyOrderedMap
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionencrypt_ec_ttlv_request
( key_unique_identifier: &str, plaintext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1399
↓ 3 callersMethodencrypt_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 callersFunctionend
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodenforce_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 callersFunctionensureSize
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionensure_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 callersFunctionensure_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 callersFunctionensure_pkcs11_lib
()
crate/clients/ckms/src/tests/pkcs11.rs:28
↓ 3 callersFunctionenvelope_with
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:916
← previousnext →1,501–1,600 of 12,829, ranked by callers