MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 3 callersFunctionbuild_find_attributes
(meta: &Option<KeyMetadata>, filter: HsmObjectFilter)
crate/interfaces/src/hsm/hsm_store.rs:1563
↓ 3 callersFunctionbuild_keyset_attributes
Build an `Attributes` struct populated with keyset metadata from `KeyMetadata`. Used by `find_by_rotate_name` to return `rotate_name`/`generation`/`la
crate/interfaces/src/hsm/hsm_store.rs:1535
↓ 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:735
↓ 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:109
↓ 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:1380
↓ 3 callersFunctionbuild_secret_object
Build a `SecretData` object holding opaque `bytes`, tagged with `tags`.
crate/server/src/routes/kv/metadata.rs:308
↓ 3 callersFunctionbuild_selected_attribute
( attribute_name: &str, attribute_value: String, )
crate/clients/client_utils/src/attributes_utils.rs:604
↓ 3 callersFunctionbuild_sensitive_stub_object
Build a stub KMIP `Object` for a non-extractable (sensitive) HSM key. The `key_value` is intentionally empty because the key bytes cannot be exported
crate/interfaces/src/hsm/hsm_store.rs:1395
↓ 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:2055
↓ 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 callersMethodcall
Processes each request by checking the signature v4
crate/server/src/routes/aws_xks/sigv4_middleware.rs:154
↓ 3 callersFunctioncall_as
Status and body of a request authenticated as `username` by `auth_method`, behind the `ensure_auth_middleware` of `kms`.
crate/server/src/middlewares/ensure_auth.rs:143
↓ 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:382
↓ 3 callersFunctioncapture
Snapshots the objects `operation` may change and `user` may change: its target and the objects the target links to (key pair halves, certificates, rep
crate/server/src/core/operations/batch_undo.rs:144
↓ 3 callersFunctioncapture_generated_iv
Copy the IV the provider generated into `iv`, if it has not been drawn yet or already read.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:958
↓ 3 callersFunctioncek_cache_uid
Build the cache UID for a JOSE CEK from the RSA key uid and the raw `encrypted_key` bytes. The key uid is part of the cache key because the fingerpri
crate/server/src/routes/jose/cek_cache.rs:52
↓ 3 callersFunctionceremony_db
(dir: &Path)
crate/server_database/src/core/database_permissions.rs:308
↓ 3 callersFunctioncertificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/revocation_authority_tests.rs:115
↓ 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:120
↓ 3 callersFunctioncertify_csr
Helper: certify a PEM CSR with a CA.
crate/test_kms_server/src/certify_tests.rs:1099
↓ 3 callersFunctioncertify_ttlv_request
( certificate_signing_request: Option<Vec<u8>>, certificate_extensions: Option<Vec<u8>>, options:
crate/clients/wasm/src/wasm.rs:2544
↓ 3 callersFunctioncfg
()
crate/hsm/idemia_sphere/src/tests.rs:17
↓ 3 callersFunctioncfg
()
crate/hsm/luna/src/tests.rs:26
↓ 3 callersFunctionchacha20_xor
( key: &[u8], nonce: &[u8], counter_low: u32, input: &[u8], output: &mut [u8], )
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:1013
↓ 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:458
↓ 3 callersFunctioncheck_extractable_and_sensitive
Validate that the object may be exported/retrieved given its Sensitive, Extractable, and `NeverExtractable` attributes. Per KMIP 1.4 §3.48 / 2.1 §4.5
crate/server/src/core/operations/export_get.rs:65
↓ 3 callersFunctioncheck_rotation_attribute
Validates client-written rotation attributes: `rotate_name` must not contain `@` (reserved for keyset versioning); Rotate Interval / Rotate Offset are
crate/server/src/core/operations/attributes/policy.rs:127
↓ 3 callersFunctioncheck_secret_ownership
Refuse to overwrite a target `Secret` unless its controller owner reference matches.
crate/clients/k8s/operator/src/controller.rs:62
↓ 3 callersFunctioncheck_startup_params
Startup refusals introduced in 5.30 that read only `params`. They run before `KMS::instantiate`, so a refused configuration leaves the database untouc
crate/server/src/start_kms_server.rs:2260
↓ 3 callersMethodcheck_tag_length
Check that `tag_len` bytes is an acceptable tag length for decryption with this cipher. # Errors `CryptoError::InvalidTag` when the length is outside
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:311
↓ 3 callersFunctionchecked
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionckm_rsa_pkcs_decrypt
Decrypt using `CKM_RSA_PKCS` a.k.a PKCS #1 RSA V1.5 as specified in PKCS#11 v2.40 available at <https://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/c
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs.rs:104
↓ 3 callersFunctioncleanArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctioncleanup
(client: &KmsClient, ctx: &CngKeyCtx)
crate/clients/cng/src/key.rs:918
↓ 3 callersMethodclear_cache
Clear a value from the cache.
crate/server_database/src/core/unwrapped_cache.rs:134
↓ 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:386
↓ 3 callersFunctioncompare_attributes
Deep compare for Attributes: every field is compared by presence and value, except server-generated timestamps (`initial_date`, `last_change_date`) an
crate/clients/clap/src/tests/xml/compare.rs:510
↓ 3 callersFunctioncomplete_data
(path: &Path)
crate/server_database/src/tests/sqlite_migration_tests.rs:76
↓ 3 callersFunctioncompute_hmac
One-shot HMAC of `data` under `key` (also used by the Derive Key HMAC method).
crate/server/src/core/operations/mac.rs:550
↓ 3 callersFunctioncompute_hmac
Compute an HMAC-SHA256 tag on [`MAC_DATA`] with an Active key.
crate/server/src/tests/jose/key_state.rs:299
↓ 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 callersFunctionconfig_with_sqlite
Test config whose `SQLite` database is the file `sqlite_path`.
crate/server/src/core/kms/mod.rs:853
↓ 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:910
↓ 3 callersMethodcontext
(self, context: &str)
crate/hsm/base_hsm/src/error.rs:55
↓ 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:109
↓ 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:899
↓ 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_cached_key
Create a key and warm its object, unwrapped (plaintext) and rotate-name cache entries.
crate/server_database/src/core/database_objects.rs:2047
↓ 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_kek_in_db
Bootstrap a KEK inside the HSM. Mirrors [`create_kek_in_db`] but uses generic HSM configuration and reads the slot from `HSM_SLOT_ID`.
crate/test_kms_server/src/test_server.rs:655
↓ 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:236
↓ 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:323
↓ 3 callersFunctioncreate_keys
( kms_rest_client: &KmsClient, disk_encryption_tag: &str, )
crate/clients/pkcs11/provider/src/tests.rs:117
↓ 3 callersFunctioncreate_object
( kms: &KMS, uid: &str, owner: &UserId, bytes: &[u8], extra_tags: &[String], )
crate/server/src/routes/kv/metadata.rs:386
↓ 3 callersFunctioncreate_openssl_acceptor
Client Certificate Authentication Build an OpenSSL SslAcceptor supporting client cert auth
crate/server/src/socket_server.rs:660
↓ 3 callersFunctioncreate_pqc_key_pair
Create a PQC key pair and return the (`private_key_id`, `public_key_id`).
crate/clients/ckms/src/tests/pqc/mod.rs:24
↓ 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:434
↓ 3 callersFunctioncreate_rsa_ssh_keypair
( kms_rest_client: &KmsClient, bits: usize, )
crate/clients/pkcs11/provider/src/tests.rs:697
↓ 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:1161
↓ 3 callersFunctioncreate_signing_key_pair_request
Build the `CreateKeyPair` request of a key pair able to sign, from the algorithm names of `ckms certificates certify --algorithm` (`rsa2048`, `nist-p2
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:359
↓ 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_symmetric_key_and_tags
Create a new symmetric key and the corresponding system tags The tags will contain the user tags and the following: - "_kk" - the KMIP cryptographic a
crate/server/src/core/kms/other_kms_methods.rs:108
↓ 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:1421
↓ 3 callersFunctioncreate_wrapped_aes_key
(kms: &KMS, user: &UserId, wrapping_key_id: &str)
crate/server/src/core/lint_cleanup_characterization_tests.rs:840
↓ 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:46
↓ 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:1335
↓ 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:646
↓ 3 callersFunctioncsr_with_extension
(key: &PKey<Private>, ext: openssl::x509::X509Extension)
crate/server/src/core/operations/certify/template.rs:847
↓ 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:998
↓ 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:365
↓ 3 callersFunctiondb_with_failing_gcm_cleanup
A database whose default store fails every AES-GCM counter cleanup. Cache entries outlive the test, so an entry is only gone if the code under test ev
crate/server_database/src/core/database_objects.rs:1980
↓ 3 callersFunctiondecode_request_message
Decodes a Request Message TTLV item by item, so that an item whose operation the server does not implement fails alone with `Operation Not Supported`
crate/server/src/core/operations/message.rs:207
↓ 3 callersFunctiondecode_session_salt
Decode and validate the `ui_session_salt` secret. Accepts an all-hex string of even length >= 64, else standard or URL-safe base64 (padded or not) de
crate/server/src/start_kms_server.rs:843
↓ 3 callersFunctiondecrypt
(kms: &Arc<KMS>, user: &str, key: &str, body: Value)
crate/server/src/routes/spire/transit_encryption.rs:700
↓ 3 callersFunctiondecrypt
( req_http: HttpRequest, wrap_request: Json<EncryptedData>, path: Path<(String, String)>, kms:
crate/server/src/routes/ms_dke/mod.rs:186
↓ 3 callersFunctiondecrypt_ec_ttlv_request
( key_unique_identifier: &str, ciphertext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1375
↓ 3 callersMethoddefault
()
crate/clients/ckms/src/tests/certificates/import.rs:37
↓ 3 callersFunctiondefault_cryptographic_parameters
( cryptographic_parameters: Option<&CryptographicParameters>, )
crate/crypto/src/crypto/rsa/mod.rs:20
↓ 3 callersFunctiondefault_oidc_runtime
An OIDC runtime with default settings and no discovery document.
crate/server/src/routes/ui_auth.rs:1111
↓ 3 callersMethoddefault_prepare_finalization
Prepare retirement and dependant updates without persisting them.
crate/server/src/core/operations/rekey/common.rs:113
↓ 3 callersFunctiondek_algorithm
Algorithm of the test DEK encryption: the FIPS provider refuses PKCS#1 v1.5 encryption, so a FIPS build uses OAEP-SHA-256.
crate/server/src/tests/google_cse/mod.rs:342
↓ 3 callersFunctiondelay
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctiondelegated_vector_paths
Vectors of every served version (all but 3.0) whose stem starts with `prefix`, one of `DELEGATED_PREFIXES`.
crate/clients/clap/src/tests/xml/runner.rs:86
↓ 3 callersMethoddelete_keys
(&self, keys: &[&str])
crate/server_database/src/tests/redis_migration_tests.rs:146
↓ 3 callersFunctiondeprecated
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionder_encode_length
Encode a DER length field (short-form or two-octet long-form). Certificate-extension values are always < 64 KiB, so the two low bytes of `len` suffic
crate/crypto/src/openssl/x509_extensions.rs:425
← previousnext →2,001–2,100 of 16,000, ranked by callers