MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 3 callersMethodprehashed
`true` when the signer signs the [`digest`](Self::digest) of the data (RSA, ECDSA); `false` when it signs the raw data (`EdDSA` cannot take a digest).
crate/server/src/core/certificate/oracle_signing.rs:122
↓ 3 callersFunctionpreserialized_wire_op
Serialize a KMIP operation to binary TTLV wire bytes (one-time cost at preparation). Wraps the operation in a `RequestMessage` as required by the bina
crate/clients/clap/src/actions/bench/load.rs:271
↓ 3 callersFunctionprivileged_decrypt_request
( algorithm: &str, encrypted_data_encryption_key: String, wrapped_private_key: String, spki_ha
crate/server/src/tests/google_cse/crypto_paths.rs:549
↓ 3 callersFunctionprivileged_test_app
A test application whose `google_cse_privileged_users` lists the user of [`DUMMY_TOKEN`].
crate/server/src/tests/google_cse/mod.rs:83
↓ 3 callersFunctionprobe_slot
Run `check` for one slot with a bounded wait, at most one probe in flight, and a short cache.
crate/server/src/routes/health.rs:212
↓ 3 callersMethodprocess
Run the benchmark suite using criterion. Spawns a blocking task with a fresh tokio runtime (required because criterion's measurement loop is synchron
crate/clients/clap/src/actions/bench/clap.rs:37
↓ 3 callersFunctionprocessBuffer
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionprocess_message
Processes a Request Message decoded by [`decode_request_message`].
crate/server/src/core/operations/message.rs:448
↓ 3 callersFunctionprotoChain
(s,o=[s])
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionprovision_restricted_writer
Idempotently provisions the hardened-deployment role: `SELECT`/`INSERT` on `kms_audit_events`, `SELECT`/`INSERT`/`UPDATE` on `kms_audit_control`, no D
crate/server_database/src/stores/audit/pgsql.rs:1919
↓ 3 callersFunctionpublic_jwk_members
Public JWK members (`x`, `y`, `n`, `e`) of the generated public key `kid_public`. All `None` for a curve without a JWK form (e.g. Ed448, secp256k1).
crate/server/src/routes/jose/keys.rs:178
↓ 3 callersMethodpurge_key
Abort every multi-part operation using the key `key_uid`. Called when the key is destroyed or revoked as compromised, so its key schedule does not out
crate/server/src/core/operations/key_ops/multi_part.rs:353
↓ 3 callersFunctionqh
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionquery_rows
(path: &Path, sql: &str)
crate/server_database/src/tests/sqlite_migration_tests.rs:49
↓ 3 callersMethodrandInt
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionraw_binary_post
POST raw binary bytes to the KMIP binary endpoint and return the HTTP status. The binary endpoint is `/kmip` (not `/kmip/2_1`). A network / connectio
crate/clients/clap/src/tests/serialization/batch_abuse.rs:29
↓ 3 callersMethodraw_get_attributes
Raw `C_GetAttributeValue` call, returning the `CK_RV` unchanged so callers can decide how to interpret HSM-specific error codes (e.g. [`call_get_attri
crate/hsm/base_hsm/src/session/session_impl.rs:3477
↓ 3 callersFunctionreadLineBreak
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionread_body_capped
Read the body of `resp`, giving up as soon as it exceeds `max` bytes so that a hostile or broken peer cannot make the KMS buffer an unbounded response
crate/server/src/middlewares/auth_verifier/mod.rs:59
↓ 3 callersFunctionread_limited_body
Read a request body of at most [`MAX_ENROLLMENT_BODY`] bytes; the error is the response to send back.
crate/server/src/routes/enrollment.rs:213
↓ 3 callersFunctionread_only_error
Error for an attribute the server manages for this operation. KMIP 2.1 names two result reasons: Add and Set Attribute return `Read Only Attribute` (
crate/server/src/core/operations/attributes/policy.rs:25
↓ 3 callersFunctionrecertify
KMIP `ReCertify` operation — certificate rotation with new UID. Creates a new certificate for the same subject/issuer, assigns a fresh UID, and links
crate/server/src/core/operations/recertify.rs:77
↓ 3 callersFunctionrecord
Builds the undo record of an executed item from the stored state it left; `None` when its effects cannot be reverted.
crate/server/src/core/operations/batch_undo.rs:295
↓ 3 callersMethodrecord_success
Forget the failures of `client` after a successful authentication.
crate/server/src/routes/enrollment_guard.rs:148
↓ 3 callersFunctionrecord_uid
UID of the SSH record `record_key`: HMAC-SHA256 under the server-internal UID key, truncated to a UUID. KMIP clients cannot compute it, so they cannot
crate/server/src/routes/ssh/storage.rs:182
↓ 3 callersFunctionredis_master_key_from_password_with_salt
Derive a Redis Master Key from a password and a salt
crate/server_database/src/stores/redis/redis_with_findex.rs:106
↓ 3 callersMethodrefresh_key_scan
Run a full key scan and replace the cached snapshot with it.
crate/server_database/src/stores/redis/redis_with_findex.rs:364
↓ 3 callersMethodregister
Register an HSM key UID for cleanup at the end of the benchmark.
crate/clients/clap/src/actions/bench/helpers.rs:47
↓ 3 callersFunctionregister_fallback_backend
Register a backend whose `find_all_private_keys` returns the given key id and whose other `find_all_*` methods return empty sets.
crate/clients/pkcs11/module/src/tests.rs:2087
↓ 3 callersFunctionreimport_cert_with_issuer
Re-import the DER of `leaf_id` as a new certificate linked to `ca_id`, as a client importing a third-party certificate with its issuer does. Returns t
crate/test_kms_server/src/crl_tests.rs:1161
↓ 3 callersFunctionreject_reserved_cse_user
A Google CSE token must not name a reserved service identity (such as the AWS XKS one): the email becomes the KMS user that owns or is granted the key
crate/server/src/routes/google_cse/jwt.rs:523
↓ 3 callersFunctionreject_reserved_uid
Reject `uid` if it is a reserved identifier (see [`RESERVED_UIDS`]).
crate/server_database/src/core/database_objects.rs:36
↓ 3 callersMethodrekey_hsm
Rotate an HSM-resident AES key (`object_type == SymmetricKey`) or key pair (`object_type == PrivateKey`) and return the UID of the new (private) key.
crate/server/src/core/operations/rekey/hsm.rs:137
↓ 3 callersMethodrekey_keypair
This request is used to generate a replacement key pair for an existing public/private key pair. It is analogous to the Create Key Pair operation, ex
crate/clients/client/src/kms_rest_client.rs:562
↓ 3 callersFunctionremote_conf
Write a copy of the `CKMS_CSE_CONF` config pointing at `server_url` without access token; the source file is never modified. Returns the copy's path.
crate/clients/ckms/src/tests/google_cmd/remote_cse.rs:26
↓ 3 callersFunctionremove
( cli_conf_path: &str, master_secret_key_id: &str, attribute: &str, )
crate/clients/ckms/src/tests/cover_crypt/access_structure.rs:173
↓ 3 callersFunctionreplaceEntities
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionrequest_attrs
()
crate/crypto/src/openssl/scep_cms.rs:676
↓ 3 callersFunctionrequested_hsm_algorithm
HSM algorithm requested by KMIP parameters; `None` = HSM default (AES-GCM / RSA-OAEP-SHA256).
crate/server/src/core/wrapping/wrap.rs:340
↓ 3 callersFunctionrequire_minimum
(module, name, minimum)
ansible/plugins/module_utils/kms_api.py:17
↓ 3 callersFunctionrequire_non_empty
Check that a required credential is non-empty.
crate/secret_backends/src/common.rs:41
↓ 3 callersFunctionrequire_user
The acting user, which `Create`/`Upsert` need to own the written object.
crate/server_database/src/stores/redis/redis_with_findex.rs:312
↓ 3 callersMethodreseed
(&self, seed: &[u8])
crate/crypto/src/crypto/rng/mod.rs:197
↓ 3 callersMethodreset
(&self)
crate/server_database/src/tests/redis_migration_tests.rs:92
↓ 3 callersFunctionresign_all_structures
(key: &PKey<Private>, oid: &str)
crate/server/src/core/certificate/oracle_signing.rs:589
↓ 3 callersFunctionresolve_config
Entry point: replace every `secret://` string in `value` using the selected backend. Does nothing when `config.backend` is `None`.
crate/secret_backends/src/lib.rs:141
↓ 3 callersMethodresolve_enumeration_values
Recursively resolve enumeration variant names to their numeric codes. When a TTLV tree is deserialized from JSON, enumeration values like `"Create"`
crate/kmip/src/ttlv/ttlv_struct.rs:148
↓ 3 callersFunctionresolve_key_lineage
The registered Azure EKM key followed by its Re-Key successors, oldest first. Azure keeps calling the id it registered, but Re-Key gives the replacem
crate/server/src/routes/azure_ekm/handlers.rs:178
↓ 3 callersFunctionresolve_kv_mount
Resolve the KV mount name. An empty value (what a TOML generated from `Default` contains) means the documented default `kv`. Collisions are only an er
crate/server/src/config/params/server_params.rs:1433
↓ 3 callersFunctionresolve_pkcs12_password
The password of a PKCS#12 container designated by `identifier`. KMIP 2.1 §6.1.19: the container is protected by the Secret Data object designated by
crate/server/src/core/operations/export_get.rs:1475
↓ 3 callersMethodresolve_secrets
Return a copy of this configuration where every `secret://` string is replaced by the value fetched from the backend selected with the `CKMS_SECRET_BA
crate/clients/ckms/src/config.rs:126
↓ 3 callersMethodresolve_secrets_with
Same as [`Self::resolve_secrets`] with explicit backend settings. # Errors Return an error if a secret cannot be fetched or the resolved TOML is not
crate/clients/ckms/src/config.rs:142
↓ 3 callersFunctionresolve_uid_or_keyset
Resolve a keyset reference in a rekey operation to a concrete UID. This combines [`ObjectHandle::as_keyset_ref`] + [`resolve_keyset_to_single_uid`] i
crate/server/src/core/uid_utils.rs:268
↓ 3 callersFunctionresolve_uids
Resolve an [`ObjectHandle`] to the set of concrete object UIDs it addresses. A `Tags` handle expands to every UID carrying all of the requested tags;
crate/server/src/core/uid_utils.rs:73
↓ 3 callersFunctionresponse
(body: &'static [u8])
crate/clients/client/src/http_client/client.rs:725
↓ 3 callersFunctionresponse_header
(request_header: &RequestMessageHeader)
crate/server/src/core/operations/message.rs:331
↓ 3 callersFunctionrestart
( owner: &str, kek_uuid: Uuid, sqlite_path: &Path, default_unwrap: bool, )
crate/server/src/tests/hsm/hybrid_kem_dek.rs:191
↓ 3 callersFunctionrestricted_writer_url
Swaps the credentials of `base` for the restricted `kms_audit_writer` role (see [`provision_restricted_writer`]), keeping the same scheme, host, port,
crate/server_database/src/stores/audit/pgsql.rs:1905
↓ 3 callersFunctionrestrictive_policy_kms
Policy allowing only P-384, RSA 3072/4096 and AES-256: P-256, RSA-2048 and AES-128 are denied, in FIPS and non-FIPS builds alike.
crate/server/src/tests/kmip_policy/routes.rs:48
↓ 3 callersMethodretrieveFixedFields
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodretrieve_eligible_keys
Retrieve all objects of `object_type` matching the given identifier. Lifecycle-state filtering is left to [`KMS::select_unique_key`], which runs it a
crate/server/src/core/operations/rekey/common.rs:55
↓ 3 callersMethodretrieve_tags
Retrieve the tags of the object with the given `uid`
crate/server_database/src/stores/redis/redis_with_findex.rs:1184
↓ 3 callersFunctionrevoke
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/revocation_authority_tests.rs:196
↓ 3 callersMethodrevoke
Invalidate `ticket`, issued to `user`, whatever requests it has left.
crate/server/src/core/operations/login.rs:179
↓ 3 callersFunctionrevoke_key
Revoke `key_id` (Cessation of Operation) for cleanup.
crate/server/src/tests/ttlv_tests/integrations/vast.rs:231
↓ 3 callersFunctionrevoke_key
Revoke a key in the KMS (required before destroy for Active keys).
crate/clients/cng/src/backend.rs:225
↓ 3 callersFunctionrevoke_user_decryption_keys
Revoke all the user decryption keys associated with the master secret key
crate/server/src/core/cover_crypt/revoke_user_decryption_keys.rs:17
↓ 3 callersFunctionrewrap_with_client
[`rewrap`], with the client used to reach the original KACLS produced by `connect` (production: `kacls_client`, which enforces the SSRF guard). # Err
crate/server/src/routes/google_cse/operations.rs:1128
↓ 3 callersFunctionroot_dir
()
crate/test_kms_server/src/test_server.rs:143
↓ 3 callersFunctionrotation_from_dates
Rebuild the rotation schedule of an HSM key from its `CKA_START_DATE` / `CKA_END_DATE`. `HsmStore::update_object` is a no-op for KMIP attributes, so
crate/interfaces/src/hsm/hsm_store.rs:1278
↓ 3 callersFunctionrsa_aes_key_wrap_sha1_unwrap
Unwrap (decrypt) the given ciphertext using `RSA_AES_KEY_WRAP_SHA_1` This is a two-step unwrapping process: 1. RSA-OAEP with SHA-1 unwraps the ephemer
crate/clients/clap/src/tests/shared/openssl_utils.rs:47
↓ 3 callersFunctionrsa_oaep_params
()
crate/clients/clap/src/actions/bench/helpers.rs:200
↓ 3 callersFunctionrsa_public_blob_from_spki_der
Parse a `SubjectPublicKeyInfo` (SPKI) DER and return a `BCRYPT_RSAKEY_BLOB`. SPKI wraps a PKCS#1 `RSAPublicKey` in an `AlgorithmIdentifier` + BIT STR
crate/clients/cng/src/blob.rs:72
↓ 3 callersFunctionrun
Run the scenario and write `cek_switch_timeline.json`, `cek_switch_summary.json` and `cek_switch_samples.csv` to the criterion home.
crate/clients/clap/src/actions/bench/cek_switch.rs:415
↓ 3 callersFunctionrun_google
(conf_path: &str, args: &[&str])
crate/clients/ckms/src/tests/google_cmd/gmail_api.rs:29
↓ 3 callersFunctionrun_item
Runs a Set Attribute batch item with Undo semantics and returns its undo record.
crate/server/src/core/operations/batch_undo.rs:481
↓ 3 callersFunctionsafe_openssl_version_info
()
crate/server/src/openssl_providers.rs:40
↓ 3 callersFunctionsample_event
(id: i64, prev_hash: [u8; 32])
crate/server/src/core/audit/file_sink.rs:428
↓ 3 callersFunctionsan_entries
Sorted raw DER of every `GeneralName` in a `SubjectAltName` extension value. Comparing the encoded names avoids any dependence on a parser's `Debug` r
crate/server/src/routes/enrollment.rs:591
↓ 3 callersMethodsave_to
Write the configuration to `path`, readable by its owner only (0600 on Unix). The TOML is written to an owner-only temporary file next to `path`, the
crate/clients/ckms/src/config.rs:87
↓ 3 callersFunctionscrollToY
(i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersMethodseal
Encrypt a ceremony payload into a sealed record (base64-encoded). Format: base64(IV ‖ ciphertext ‖ GCM-tag) The `role` parameter is used as Addition
crate/server_database/src/ceremony_keys.rs:98
↓ 3 callersMethodsearch_one_keyword
Search for a keyword
crate/server_database/src/stores/redis/permissions.rs:179
↓ 3 callersFunctionsecret
(refresh_interval: Option<&str>)
crate/clients/k8s/operator/src/controller.rs:414
↓ 3 callersFunctionseed
( database: &InMemoryMigrationBackend, db_version: &str, min_compatible: Option<&str>,
crate/server_database/src/stores/migrate.rs:687
↓ 3 callersFunctionseed_parameters
(path: &Path, parameters: &[(&str, &str)])
crate/server_database/src/tests/sqlite_migration_tests.rs:89
↓ 3 callersMethodseed_parameters
(&self, parameters: &[(&str, &str)])
crate/server_database/src/tests/sql_migration_tests.rs:97
↓ 3 callersFunctionseed_postgres_sealed_instance
Seeds a fresh instance whose generation 0 ends with a tampered event, reconnects to trigger the automatic seal-and-roll recovery (sealing generation 0
crate/clients/clap/src/actions/audit.rs:2110
↓ 3 callersMethodserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionserializeRequest
(s={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callersFunctionserialize_deserialize
(object: &T)
crate/kmip/src/ttlv/tests/kmip_2_1_tests.rs:767
↓ 3 callersMethodserialize_str
(self, v: &str)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:280
↓ 3 callersFunctionserver_accepts
Run one server-side TLS handshake with `acceptor` and return whether the *server accepted it.
crate/server/src/socket_server.rs:792
↓ 3 callersFunctionsession_pair
The `auth_session=<value>` pair of the `Set-Cookie` header of `resp`.
crate/server/src/routes/ui_auth.rs:1615
↓ 3 callersFunctionsession_store_failure
()
crate/server/src/routes/ui_auth.rs:864
↓ 3 callersFunctionset_ckms_conf
Points the provider at `conf` through `CKMS_CONF`; call it before the library is loaded.
crate/clients/clap/src/actions/pkcs11/verify.rs:36
↓ 3 callersFunctionset_claim
Overwrite one claim of a claim set built by [`valid_claims`].
crate/server/src/middlewares/jwt/jwt_token_auth.rs:705
↓ 3 callersMethodset_cryptographic_usage_mask_bits
Set the bits in `mask` to the attributes's `CryptographicUsageMask` bits.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:726
↓ 3 callersFunctionset_hsm_attribute
(kms: &KMS, uid_str: &str, attribute: Attribute)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:1036
↓ 3 callersMethodset_key_pair_unique_identifier
( &mut self, private_key_unique_identifier: T, public_key_unique_identifier: T, )
crate/clients/clap/src/actions/console.rs:94
← previousnext →2,401–2,500 of 16,000, ranked by callers