MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 2 callersFunctionprepare_op
Serialize a single operation into `(url, body, content_type)` for posting.
crate/clients/clap/src/actions/bench/transport.rs:204
↓ 2 callersFunctionprepare_ops
Resolves `modes` into runnable `(label, op)` pairs, performing every one-time setup/object-discovery/probe call a mode's closure needs — shared by bot
crate/clients/clap/src/actions/pkcs11/bench/load.rs:351
↓ 2 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:231
↓ 2 callersFunctionprimary_self_signatures
Direct-key and User ID self-signatures over the primary key that verify against it.
crate/crypto/src/crypto/openpgp/mod.rs:416
↓ 2 callersMethodprimitive
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodprivate_key_id
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:99
↓ 2 callersFunctionprivate_key_link_of
Link to the private key of `public_key`. HSM objects carry no KMIP links: the private key of an HSM public key `<sk>_pk` is `<sk>`.
crate/server/src/core/operations/certify/resolve_issuer.rs:174
↓ 2 callersMethodprivate_key_mut
Get the private key
crate/crypto/src/crypto/mod.rs:78
↓ 2 callersFunctionprocess_certificate
( vendor_id: &str, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:308
↓ 2 callersFunctionprocess_covercrypt_key
( covercrypt_key: &mut Object, key_wrapping_specification: &Option<KeyWrappingSpecification>, key_
crate/server/src/core/operations/export_get.rs:1029
↓ 2 callersFunctionprocess_opaque_object
( vendor_id: &str, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:1203
↓ 2 callersFunctionprocess_private_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:516
↓ 2 callersFunctionprocess_public_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:386
↓ 2 callersFunctionprocess_secret_data
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:1037
↓ 2 callersFunctionprocess_symmetric_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:203
↓ 2 callersFunctionprocess_vault_token
( req: ServiceRequest, next: Next<B>, cache: &SpireTokenCache, auth_verifier_url: &Url, cl
crate/server/src/middlewares/spire_token.rs:281
↓ 2 callersFunctionprompt_optional_password
Prompt for an optional password; returns `None` if the user leaves it empty.
crate/clients/ckms/src/commands.rs:444
↓ 2 callersFunctionprompt_optional_text
Prompt for an optional text field; returns `None` if the user leaves it empty.
crate/clients/ckms/src/commands.rs:433
↓ 2 callersFunctionprompt_required_text
Prompt for a required (non-empty) text field.
crate/clients/ckms/src/commands.rs:423
↓ 2 callersMethodpublic_params
(&self)
crate/crypto/src/crypto/openpgp/mod.rs:216
↓ 2 callersFunctionq
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionqj
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionquery
(serial: &str, nid: i32)
crate/server/src/routes/ocsp/handler.rs:796
↓ 2 callersFunctionr
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionradix_min_len
Returns the minimum numeral-string length required by FF1 for `radix`. Mirrors the logic in `Radix::from_u32` without exposing the internal type.
crate/crypto/src/crypto/fpe/ff1.rs:501
↓ 2 callersFunctionrandom_pick
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 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:3278
↓ 2 callersFunctionraw_insert_event
Inserts an event directly into `kms_audit_events`, bypassing `PgAuditSink` entirely — used to simulate a raw client (or a compromised process sharing
crate/server_database/src/stores/audit/pgsql.rs:1412
↓ 2 callersFunctionraw_json_post
--------------------------------------------------------------------------- Helper: POST a JSON string to the JSON KMIP 2.1 endpoint. ----------------
crate/clients/clap/src/tests/serialization/wire_payloads.rs:36
↓ 2 callersFunctionraw_json_post
POST a JSON string to the KMIP JSON endpoint and return the HTTP status.
crate/clients/clap/src/tests/serialization/batch_abuse.rs:40
↓ 2 callersFunctionrb
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionread_bytes_from_files_to_bulk
Read all bytes from multiple files and serialize them into a unique vector using LEB128 serialization (bulk mode) # Errors If the file cannot be opene
crate/clients/client/src/file_utils.rs:154
↓ 2 callersFunctionread_counts
(library: &Library, symbol: &[u8])
crate/hsm/base_hsm/src/session/message_signature_tests.rs:55
↓ 2 callersFunctionread_object_from_json_ttlv_bytes
Read an object from KMIP JSON TTLV bytes slice
crate/server/src/tests/google_cse/mod.rs:96
↓ 2 callersFunctionread_object_from_json_ttlv_bytes
Read an object from KMIP JSON TTLV bytes slice # Errors If the file cannot be opened or read, an error is returned.
crate/clients/client/src/file_utils.rs:47
↓ 2 callersFunctionread_rows
(path: &Path)
crate/server/src/core/audit/file_sink.rs:381
↓ 2 callersMethodrebase
Maps each character in `input` to its index in the alphabet. Characters not in the alphabet are stored separately by position and reinserted verbatim
crate/crypto/src/crypto/fpe/alphabet.rs:221
↓ 2 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:66
↓ 2 callersMethodreconcile_findex_keywords
Re-insert the Findex keywords of the object currently stored under `uid` (no-op if it is absent). Repairs keywords wrongly removed by a racing writer.
crate/server_database/src/stores/redis/redis_with_findex.rs:786
↓ 2 callersMethodrecord
(&self, elapsed_ns: u64)
crate/clients/pkcs11/module/src/profiling.rs:157
↓ 2 callersMethodrecord_cache_operation
Record cache operation Both `operation` and `result` must be `'static` string literals (e.g. `"get"`, `"hit"`). Using `&'static str` avoids a `String
crate/server/src/core/otel_metrics.rs:569
↓ 2 callersMethodrecord_cascading_metrics
Record metrics for a cascading (linked-object) operation. Used by `destroy` and `revoke` when they cascade to related keys.
crate/server/src/core/kms/other_kms_methods.rs:538
↓ 2 callersMethodrecord_database_operation
Record a database operation (count + duration in one call). # Arguments `operation` – low-cardinality label (`"create"`, `"retrieve"`, …) `backend`
crate/server/src/core/otel_metrics.rs:482
↓ 2 callersMethodrecord_error
Record an error
crate/server/src/core/otel_metrics.rs:536
↓ 2 callersMethodrecord_failure
Count one failed authentication of `client`.
crate/server/src/routes/enrollment_guard.rs:104
↓ 2 callersMethodrecord_http_request
Record an HTTP request
crate/server/src/core/otel_metrics.rs:501
↓ 2 callersMethodrecord_operation
( &self, operation: &'static str, backend: MainDbKind,
crate/server_database/src/core/database_objects.rs:1061
↓ 2 callersMethodrecord_permission_grant
Record a permission grant. `user` is only ever used, hashed, as the `kms.permissions.granted.per_user.total` label — see [`Self::bounded_user_label`]
crate/server/src/core/otel_metrics.rs:387
↓ 2 callersFunctionrecursively_destroy_object
( unique_identifier: &UniqueIdentifier, remove: bool, cascade: bool, kms: &KMS, user: &Use
crate/server/src/core/operations/destroy.rs:76
↓ 2 callersFunctionrecursively_revoke_key
( unique_identifier: &UniqueIdentifier, revocation_reason: RevocationReason, compromise_occurrence
crate/server/src/core/operations/revoke.rs:78
↓ 2 callersMethodrefresh_internal
(&self, force: bool)
crate/server/src/middlewares/jwt/jwks.rs:160
↓ 2 callersFunctionregenerate_crl
Regenerate the CRL of `issuer_certificate_id` on behalf of the server. Used by automatic regeneration (post-Revoke and the refresh cron). Those run a
crate/server/src/core/operations/generate_crl.rs:150
↓ 2 callersFunctionregister
( kms: &KMS, mut request: Register, owner: &UserId, )
crate/server/src/core/operations/register.rs:26
↓ 2 callersMethodregister
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionreify
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionreimport_public_key
Re-import `object` under a fresh identifier and return that identifier.
crate/server/src/tests/pqc_import_tests.rs:27
↓ 2 callersFunctionreject_csr_basic_constraints
Reject a CSR that requests its own `basicConstraints` extension.
crate/server/src/routes/spire/pki.rs:391
↓ 2 callersFunctionreject_hsm_uid
Reject a Re-Key request when the UID refers to an HSM-managed key. HSM-managed keys have no KMIP attribute storage and are often non-extractable (`CK
crate/server/src/core/operations/rekey/common.rs:591
↓ 2 callersFunctionrejection
(header: &str)
crate/server/src/middlewares/jwt/jwt_config.rs:374
↓ 2 callersFunctionrekey
KMIP `ReKey` operation for symmetric keys (KMIP 2.1 §6.1.46). - For regular (SQL) keys: generates fresh key material, handles wrapping, links generat
crate/server/src/core/operations/rekey/symmetric/mod.rs:32
↓ 2 callersFunctionrekey
( cli_conf_path: &str, master_secret_key_id: &str, access_policy: &str, )
crate/clients/ckms/src/tests/cover_crypt/rekey.rs:35
↓ 2 callersMethodrekey
This request is used to generate a replacement key for an existing symmetric key. It is analogous to the Create operation, except that attributes of t
crate/clients/client/src/kms_rest_client.rs:578
↓ 2 callersFunctionrekey_ec_keypair
Rekey the EC keypair identified by `private_key_id`. Returns the new private key UID.
crate/clients/ckms/src/tests/elliptic_curve/rotation_policy.rs:42
↓ 2 callersMethodrekey_hsm_symmetric
Rotate an HSM-resident AES symmetric key. ## Rotation algorithm 1. Validate that the caller has `Rekey` permission. 2. Retrieve the old key's metada
crate/server/src/core/operations/rekey/symmetric/hsm.rs:85
↓ 2 callersFunctionrekey_keypair
KMIP `ReKeyKeyPair` operation for asymmetric key pairs. Per KMIP 1.4 §4.5: - Creates a replacement key pair with new Unique Identifiers. - Sets `Repl
crate/server/src/core/operations/rekey/keypair/mod.rs:45
↓ 2 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/server/src/core/kms/kmip.rs:653
↓ 2 callersFunctionrekey_keypair_ttlv_request
( private_key_unique_identifier: String, )
crate/clients/wasm/src/wasm.rs:2751
↓ 2 callersFunctionrekey_rsa_keypair
Rekey the RSA keypair identified by `private_key_id`. Returns the new private key UID.
crate/clients/ckms/src/tests/rsa/rotation_policy.rs:45
↓ 2 callersFunctionrekey_ttlv_request
(unique_identifier: String)
crate/clients/wasm/src/wasm.rs:2737
↓ 2 callersMethodremaining
Time left before the deadline, or `TimedOut` once it has passed.
crate/server/src/socket_server.rs:374
↓ 2 callersMethodremote_id
(&self)
crate/clients/pkcs11/module/src/sessions.rs:1133
↓ 2 callersFunctionrenderMapPreview
(map: Map<any, any>)
ui/src/components/common/HashMapDisplay.tsx:85
↓ 2 callersMethodrepair_if_needed
(&mut self)
crate/server/src/core/audit/file_sink.rs:111
↓ 2 callersFunctionrequested_derived_object_id
(attributes: &Attributes)
crate/server/src/core/operations/derive_key.rs:547
↓ 2 callersFunctionrequire_user
The acting user, which `Create`/`Upsert` need to own the written object.
crate/server_database/src/stores/redis/redis_with_findex.rs:210
↓ 2 callersFunctionreqwest_err
Attach operation context to a `reqwest` error for diagnostics.
crate/clients/clap/src/actions/vault/approle.rs:146
↓ 2 callersFunctionreqwest_proxy
The `reqwest` proxy of the `[proxy]` server settings, shared by the outbound clients of the identity providers (JWKS fetch, Auth Verifier session chec
crate/server/src/middlewares/jwt/jwks.rs:253
↓ 2 callersMethodreseed
(&self, seed: &[u8])
crate/crypto/src/crypto/rng/mod.rs:197
↓ 2 callersFunctionreset
Clears all collected Sign profiling samples.
crate/clients/pkcs11/module/src/profiling.rs:242
↓ 2 callersFunctionresign_parts
Set `algorithm` on `structure` and return its to-be-signed DER.
crate/server/src/core/certificate/oracle_signing.rs:284
↓ 2 callersMethodresolve
(&self, uri: &str)
crate/server/src/config/command_line/secret_backends/aws.rs:108
↓ 2 callersFunctionresolveBegin
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionresolveEnd
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionresolveIndex
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionresolveSchema$refField
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionresolve_config
Entry point called from `load_from_args`. Does nothing when `config.backend` is `None`.
crate/server/src/config/command_line/secret_backends/mod.rs:135
↓ 2 callersFunctionresolve_integer_alphabet
(metadata: &FpeMetadata)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:96
↓ 2 callersMethodresolve_key_algorithm
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:108
↓ 2 callersFunctionresolve_key_from_options
Resolve a wrapping/unwrapping key from one of the common key source options: - base64-encoded key bytes → AES symmetric key object - key ID in the KMS
crate/clients/clap/src/actions/shared/resolve_key.rs:23
↓ 2 callersFunctionresolve_keyset_to_single_uid
Resolve a keyset identifier to a single UID (for encrypt/sign operations). For `@latest` or `Bare` mode, resolves to the key with the highest `rotate
crate/server/src/core/uid_utils.rs:209
↓ 2 callersFunctionresolve_text_alphabet
(metadata: &FpeMetadata)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:92
↓ 2 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:250
↓ 2 callersMethodresolve_with_env
[`Self::resolve`] with an injectable environment lookup, so tests need not mutate the process environment.
crate/clients/clap/src/actions/audit.rs:118
↓ 2 callersFunctionresponse_bytes_mut
(response: &mut OcspResponse)
crate/server/src/core/certificate/oracle_signing.rs:443
↓ 2 callersFunctionrestore_db_from_dump
( mut mgr: ConnectionManager, path_to_file: File, )
crate/server/src/tests/migrate/utils.rs:17
↓ 2 callersMethodretire_for_replacement
Update these (old) attributes to record that they have been replaced. Per KMIP 1.4 §4.4 Table 173 / §4.5 Table 177 / §4.8 Table 187: - Sets `Replacem
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1887
↓ 2 callersFunctionretrieve_and_reconstruct_shares
Retrieve all share objects, validate consistency, and XOR-reconstruct the secret. Performs all validations shared by [`join_split_key`] and the Crypt
crate/server/src/core/operations/join_split_key.rs:65
↓ 2 callersFunctionretrieve_certificate_for_private_key
Retrieve the certificate associated to the given private key
crate/server/src/core/certificate/find.rs:249
↓ 2 callersFunctionretrieve_private_key_for_certificate
Retrieve the certificate associated to the given private key
crate/server/src/core/certificate/find.rs:353
↓ 2 callersFunctionretry_backoff
Capped linear backoff with random jitter: `attempt` ms (max 8) plus 0..=that again, so writers hammering one uid de-synchronise.
crate/server_database/src/stores/redis/redis_with_findex.rs:202
← previousnext →2,801–2,900 of 12,829, ranked by callers