MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 4 callersMethodrevoke
This operation requests the server to revoke a Managed Cryptographic Object or an Opaque Object. The request contains a reason for the revocation (e.g
crate/clients/client/src/kms_rest_client.rs:595
↓ 4 callersFunctionrevoke_access
Revoke access to a user
crate/clients/ckms/src/tests/access.rs:95
↓ 4 callersMethodrevoke_access
Remove an access authorization for a user (identified by `access.userid`) to an object (identified by `access.unique_identifier`) which is owned by `o
crate/server/src/core/kms/permissions.rs:132
↓ 4 callersMethodrevoke_ui_session
Revoke the Web UI session `sid` until `expires_at` (Unix seconds) for every KMS instance sharing this database; entries already expired at `now` are d
crate/server_database/src/core/database_permissions.rs:193
↓ 4 callersFunctionrsa_encrypt
RSA encryption of the DEK with the scheme of `dek_algorithm`
crate/server/src/tests/google_cse/mod.rs:351
↓ 4 callersFunctionrun
(request: () => Promise<() => void>)
ui/src/actions/Secrets/KvSecrets.tsx:126
↓ 4 callersFunctionrun
(input: &str)
crate/kmip/tests/ttlv_parser_characterization_tests.rs:12
↓ 4 callersFunctionrun_ckms_output
Run a ckms command and capture stdout on success, or return None on failure.
crate/clients/ckms/src/tests/rbac_tests.rs:691
↓ 4 callersFunctionrun_sign
( kms_rest_client: KmsClient, input_file: PathBuf, key_id: Option<String>, tags: Option<Vec<St
crate/clients/clap/src/actions/shared/sign.rs:14
↓ 4 callersFunctionrun_signature_verify
( kms_rest_client: KmsClient, data_file: &PathBuf, signature_file: &PathBuf, key_id: &Option<S
crate/clients/clap/src/actions/shared/signature_verify.rs:14
↓ 4 callersFunctionsanitize
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionsave_metadata
Persist `metadata` without changing the object's lifecycle state.
crate/server/src/routes/kv/metadata.rs:472
↓ 4 callersFunctionscep_pkcs_req_message
A `PKCSReq` with the right challenge, signed by a self-signed bootstrap certificate.
crate/server/src/tests/enrollment_tests.rs:922
↓ 4 callersFunctionscratch
(name: &str)
crate/access/src/audit/file_hash.rs:106
↓ 4 callersMethodseal
AES-256-GCM under the database key: `nonce || ciphertext || tag`, bound to `aad`.
crate/server_database/src/stores/redis/objects_db.rs:186
↓ 4 callersMethodseal
Cookie value: `base64url(iv || ciphertext || tag)` of the sealed session.
crate/server/src/middlewares/ui_session.rs:252
↓ 4 callersFunctionsecret_data_create_request
Build a `Create` request for a secret data - random Seed of 32 bytes generated server-side
crate/kmip/src/kmip_2_1/requests/create.rs:233
↓ 4 callersFunctionsecrets_equal
Compare two secrets in constant time (both are hashed first so that the length is not leaked).
crate/server/src/routes/enrollment.rs:96
↓ 4 callersFunctionseed_postgres_chain_with
Seeds a fresh instance with `n` events via `PgAuditSink`, returning its `instance_id`. `mutate` runs on each event just before it is written, letting
crate/clients/clap/src/actions/audit.rs:2077
↓ 4 callersFunctionseeded_key_type
Algorithm name and seed length (bytes) of the algorithms OpenSSL derives from a seed: ML-KEM takes a 64-byte seed (FIPS 203 §7.1), ML-DSA a 32-byte se
crate/crypto/src/crypto/pqc/mod.rs:85
↓ 4 callersFunctionself_signature
Signature config of type `typ` by the primary key of `secret`, with `extra` hashed subpackets. Created one second in the future so it is newer than th
crate/crypto/src/crypto/openpgp/mod.rs:1247
↓ 4 callersMethodserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionserver_error
(context: &str, error: impl std::fmt::Display)
crate/server/src/tests/hsm/sshd.rs:16
↓ 4 callersFunctionservice
(wrapping_key_uid: &str)
crate/clients/k8s/plugin/src/service.rs:296
↓ 4 callersFunctionset_certificate_serial_tag
Replace any `_serial=` tag in `tags` with the one for `serial_hex` (computed from the certificate DER). Dropping first defeats client-planted or inher
crate/kmip/src/kmip_2_1/extra/tagging.rs:39
↓ 4 callersFunctionset_deactivation_date
Set the `DeactivationDate` attribute on a key via KMIP `SetAttribute`.
crate/server/src/tests/jose/key_state.rs:667
↓ 4 callersFunctionset_hsm_kek
Set the HSM key encryption key of a test server.
crate/test_kms_server/src/test_server.rs:631
↓ 4 callersMethodset_key_label
( &self, _slot_id: usize, key_id: &[u8], label: &str, )
crate/server/src/tests/hsm/fake_hsm_rotation.rs:467
↓ 4 callersMethodset_min_compatible_version
(&self, version: &str)
crate/server_database/src/stores/migrate.rs:266
↓ 4 callersMethodset_parameter
Store or replace the server-internal parameter `name` in the main database.
crate/server_database/src/core/database_objects.rs:590
↓ 4 callersMethodset_x509_extension_file
Set an X509 extensions file containing a `v3_ca` parag. # Arguments `x509_extension_file` - The X509 extensions file to set # Returns The X509 exten
crate/kmip/src/kmip_2_1/extra/certificates.rs:57
↓ 4 callersFunctionsetup
(p: Page)
ui/tests/e2e/helpers.ts:404
↓ 4 callersFunctionsign_with
(kms: &KMS, uid_str: &str)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:957
↓ 4 callersMethodsignature_verify
This operation requests the server to perform a signature verify operation on the provided data using a Managed Cryptographic Object as the key for th
crate/clients/client/src/kms_rest_client.rs:690
↓ 4 callersMethodslot
(&mut self, family: MessageFamily)
crate/hsm/base_hsm/src/session/message_context.rs:102
↓ 4 callersFunctionspawn_browser_simulation
Issue a minimal HTTP GET to `url` (on a plain TCP connection) after sleeping `delay_ms` milliseconds. Runs on a dedicated OS thread so it does not co
crate/clients/client/src/http_client/tests.rs:499
↓ 4 callersFunctionspawn_generate_key_pair
Runs [`generate_key_pair`] on the blocking pool: RSA prime search (up to `MAX_RSA_MODULUS_LENGTH` bits) would otherwise stall the HTTP worker for seco
crate/server/src/core/operations/create_key_pair.rs:577
↓ 4 callersFunctionstart_ceremony_test_kms_server
Ceremony-mode test server. Loads configuration from `test_data/configs/server/rbac/crypto_officers.toml` (`require_ceremony = true`, CO users: `owner
crate/test_kms_server/src/test_server.rs:1109
↓ 4 callersFunctionstart_default_test_kms_server_with_jwt_auth
Plain-HTTP server with JWT authentication enabled (Auth0 `IdP`). Configuration is loaded from `test_data/configs/server/auth/plain_jwt.toml`.
crate/test_kms_server/src/test_server.rs:463
↓ 4 callersFunctionstart_kv_server
Start a plain-HTTP server with the KV store enabled on `mount`; returns it with its unique default owner.
crate/clients/ckms/src/tests/kv/mod.rs:22
↓ 4 callersMethodstatus
Health-check polled by kube-apiserver every ~60 s. Returns `version="v2"`, `healthz="ok"` and the current KEK UID as `key_id`. A change in `key_id`
crate/clients/k8s/plugin/src/service.rs:83
↓ 4 callersMethodstatus_code
(&self)
crate/server/src/routes/kv/error.rs:62
↓ 4 callersFunctionstored_object
The stored object of `uid`, as it is in the database.
crate/server/src/tests/row_binding_tests.rs:55
↓ 4 callersFunctionstructure_header
Build a TTLV Structure header (8 bytes) claiming the given `content_len`.
crate/kmip/src/ttlv/tests/wire_edge_cases.rs:35
↓ 4 callersMethodsubject
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:94
↓ 4 callersFunctionsum
Push `data` into the stream state; the last part returns everything pushed so far.
crate/server/src/core/operations/key_ops/multi_part.rs:483
↓ 4 callersFunctiontag_case
(writer: &RedisWithFindex)
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:87
↓ 4 callersFunctiontags
( db: &DB, verify_attributes: bool, )
crate/server_database/src/tests/tagging_tests.rs:21
↓ 4 callersFunctionte
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctiontemp_path
(label: &str)
crate/server/src/core/audit/file_sink.rs:421
↓ 4 callersFunctiontest_app_with_google_cse
Creates a test application instance using an explicit `ClapConfig` and an explicit Google CSE token-validation configuration. Combined with `google_c
crate/server/src/tests/test_utils.rs:449
↓ 4 callersFunctiontest_db_softhsm2_impl
Full key lifecycle exercised against the HSM-backed KMS. Stages (each one exercises HSM wrap/unwrap at the DB layer): 1. **Create** — AES-256 key, s
crate/test_kms_server/src/db_hsm_tests.rs:72
↓ 4 callersFunctiontest_kem
(cli_conf_path: &str, name: &str, algorithm: &str)
crate/clients/ckms/src/tests/pqc/mod.rs:164
↓ 4 callersFunctiontest_kms_follower
Like `test_kms_with_config`, but the node runs as a `region_role = follower`. `SQLite` stands in for a replicated database; `ServerParams::try_from` r
crate/server/src/tests/test_utils.rs:52
↓ 4 callersFunctiontest_ui_session_cookie_with
( revocations: Arc<dyn SessionRevocations>, )
crate/server/src/middlewares/ui_session.rs:378
↓ 4 callersMethodtoReference
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionto_cef_line_with_source
( event: &AuditEvent, kms_version: &str, source: Option<(&str, i64)>, )
crate/access/src/audit/cef.rs:50
↓ 4 callersFunctionto_ec_public_key
Convert to an Elliptic Curve KMIP Public Key. Supported curves are: X25519, Ed25519, X448, Ed448, P-192, P-224, P-256, P-384, P-521. `pkey_bits_numbe
crate/crypto/src/crypto/elliptic_curves/operation.rs:133
↓ 4 callersMethodto_u32
(&self)
crate/kmip/src/ttlv/wire/kmip_tag.rs:22
↓ 4 callersFunctiontransit_create_req_for
Build a P-256 key-pair creation request tagged as a transit key for `name`.
crate/server/src/routes/spire/transit.rs:1151
↓ 4 callersFunctiontruncate_error_message
(mut error_message: String)
crate/server/src/routes/kmip/handlers.rs:177
↓ 4 callersMethodtry_begin
Reserve one of the concurrent enrollment slots; `None` when all are busy.
crate/server/src/routes/enrollment_guard.rs:184
↓ 4 callersFunctiontry_decrypt
Attempt to decrypt the given ciphertext response; returns Ok(value) on success.
crate/server/src/tests/jose/key_state.rs:81
↓ 4 callersFunctionttl_active_tag
Tag set on every live version carrying a TTL: the TTL sweep only visits these. It is keyed by the server key so that no client can make the sweep vis
crate/server/src/routes/kv/metadata.rs:194
↓ 4 callersFunctionttlv_header
(length: u32)
crate/server/src/socket_server.rs:970
↓ 4 callersFunctionui_session_revocation_test
A revoked Web UI session is reported as revoked, other sessions are not, and revoking twice is harmless.
crate/server_database/src/tests/database_tests.rs:1818
↓ 4 callersFunctionuid_string
Extract the text-string from a `UniqueIdentifier`, propagating as a `KResult`. Replaces `.as_str().expect("UID must be a string")` throughout this fil
crate/server/src/tests/key_ceremony_tests.rs:55
↓ 4 callersFunctionunique_temp_path
Create a unique path inside the system temp directory
crate/clients/ckms/src/tests/access.rs:31
↓ 4 callersFunctionunix_now
()
crate/server/src/routes/kv/tests.rs:149
↓ 4 callersFunctionunsanitize
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersMethodunseal
Authenticates and parses a cookie value, whatever its age or revocation state. The error is a static reason, never the cookie content.
crate/server/src/middlewares/ui_session.rs:276
↓ 4 callersFunctionunwrap
( object: &mut Object, kms: &KMS, user: &UserId, allow_server_kek: bool, )
crate/server/src/core/wrapping/unwrap.rs:129
↓ 4 callersFunctionunwrap_ok
Unwraps through `key`, expects 200 and the `expected` DEK.
crate/server/src/tests/azure_ekm/routes_tests.rs:170
↓ 4 callersFunctionunwrap_request
( authentication: String, authorization: String, wrapped_key: String, )
crate/server/src/tests/google_cse/token_validation.rs:144
↓ 4 callersFunctionunwrap_stored_object
Unwrap an Object read from the server's own storage. Same as [`unwrap_object`], except that the server `key_encryption_key`, when the key block names
crate/server/src/core/wrapping/unwrap.rs:63
↓ 4 callersMethodupdate
(&mut self, data: &[u8])
crate/crypto/src/crypto/fpe/ff1.rs:275
↓ 4 callersFunctionupdate_if_version_test
Conditional updates advance exactly once; stale or deleted snapshots conflict without publishing earlier operations, and state/upsert writes invalidat
crate/server_database/src/tests/database_tests.rs:1355
↓ 4 callersMethodupdate_state_allow_downgrade
Update the state of an object in the database, allowing downgrade (for KMIP batch UNDO).
crate/server_database/src/core/database_objects.rs:528
↓ 4 callersFunctionupsert
( uid: &str, object: &Object, tags: Option<HashSet<String>>, )
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:65
↓ 4 callersFunctionurl
(key: &str, op: &str)
crate/server/src/tests/azure_ekm/routes_tests.rs:123
↓ 4 callersFunctionus
(d: Duration)
crate/clients/clap/src/actions/bench/cek_switch.rs:180
↓ 4 callersFunctionusable_path
The metadata of `path`, if it exists and `user` holds `op` on it; otherwise [`KvApiError::Forbidden`], whichever of the two is missing.
crate/server/src/routes/kv/mod.rs:175
↓ 4 callersMethoduse
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionuser
(name: &str)
crate/server/src/tests/revocation_authority_tests.rs:57
↓ 4 callersFunctionvalidate_attributes
(attrs: &Attributes, wl: &KmipWhitelists)
crate/server/src/core/operations/algorithm_policy.rs:809
↓ 4 callersMethodvalidate_authentication_token
Decode and validate a json web token (JWT)
crate/server/src/middlewares/jwt/jwt_config.rs:292
↓ 4 callersFunctionvalidate_aws_xks_reserved_identity_config
(server_params: &ServerParams)
crate/server/src/start_kms_server.rs:351
↓ 4 callersFunctionvalidate_by_uid
(kms: &Arc<KMS>, owner: &UserId, cert_ids: &[&str])
crate/server/src/tests/test_validate.rs:1471
↓ 4 callersMethodvalidate_cache
Validate the cache entry for `uid` against the current object from the DB. If the fingerprint of the cached entry differs from the fingerprint of `cu
crate/server_database/src/core/object_cache.rs:125
↓ 4 callersFunctionvalidate_cse_authentication_token
Validate the authentication token and return the calling user See [doc](https://developers.google.com/workspace/cse/guides/encrypt-and-decrypt-data?hl
crate/server/src/routes/google_cse/jwt.rs:344
↓ 4 callersFunctionvalidate_curve
( curve: RecommendedCurve, whitelist: Option<&HashSet<RecommendedCurve>>, )
crate/server/src/core/operations/algorithm_policy.rs:1135
↓ 4 callersFunctionvalidate_gcm_message_iv_and_tag
Reject a caller-supplied detached IV/tag pair whose lengths are not the ones this crate produces on the encrypt side. `CK_GCM_MESSAGE_PARAMS` derives
crate/hsm/base_hsm/src/session/message_aead.rs:47
↓ 4 callersFunctionvalidate_jwt_svid
Validate a raw JWT-SVID token (no "Bearer " prefix, no `Authorization` header) against the SPIFFE-JWT-SVID-enabled issuers and resolve an `Authenticat
crate/server/src/middlewares/jwt/jwt_token_auth.rs:173
↓ 4 callersFunctionvalidate_signature_algorithm
( sig: DigitalSignatureAlgorithm, whitelist: Option<&HashSet<DigitalSignatureAlgorithm>>, )
crate/server/src/core/operations/algorithm_policy.rs:1107
↓ 4 callersMethodvalue
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionvector_dirs
The mandatory and optional vector directories of a version (`"v2.1"`).
crate/clients/clap/src/tests/xml/runner.rs:80
↓ 4 callersFunctionverify
( req: HttpRequest, kms: Data<Arc<KMS>>, body: Json<VerifyRequest>, )
crate/server/src/routes/jose/verify.rs:42
↓ 4 callersFunctionverify
(path: &Path, extra: &[&std::ffi::OsStr])
crate/clients/ckms/src/tests/audit.rs:88
↓ 4 callersFunctionverify_delegated_responder_authorization
Verify that a delegated OCSP responder certificate satisfies RFC 6960 §4.2.2.2: - `extKeyUsage` MUST contain `id-kp-OCSPSigning` (OID `1.3.6.1.5.5.7.
crate/crypto/src/openssl/ocsp.rs:316
↓ 4 callersFunctionverify_event
(event: &AuditEvent)
crate/access/src/audit/hash.rs:119
← previousnext →1,801–1,900 of 16,000, ranked by callers