MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 2 callersFunctionruntime_turns_during
Runs `op` on the current-thread test runtime next to a probe that yields in a loop, and returns the output of `op` with the number of turns the probe
crate/server/src/tests/test_utils.rs:271
↓ 2 callersFunctionsame_set
Order-insensitive equality of two lists.
crate/clients/clap/src/tests/xml/versioned/compare.rs:775
↓ 2 callersMethodsaml_session_realm
(&self)
crate/server/src/config/command_line/auth_verifier_config.rs:92
↓ 2 callersFunctionsample
(t_ms: u64, message_ms: u64)
crate/clients/clap/src/actions/bench/cek_switch.rs:615
↓ 2 callersMethodsample
(&self, rng: &mut R)
crate/crypto/src/crypto/anonymization/noise.rs:29
↓ 2 callersFunctionsampleFromSchemaGeneric
(s,o={},i=void 0,u=!1)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsample_aws_xks_params
()
crate/server/src/start_kms_server.rs:2755
↓ 2 callersFunctionsanitizer
(s,{useUnsafeMarkdown:o=!1}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsave_ca_configuration
( kms: &KMS, configuration: &CaConfiguration, )
crate/server/src/routes/ssh/storage.rs:51
↓ 2 callersFunctionsave_record
( kms: &KMS, record_key: &str, value: &T, description: &str, )
crate/server/src/routes/ssh/storage.rs:118
↓ 2 callersFunctionsb
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodscan_all_objects
One-time bootstrap: scan every `do::*` key, decrypt each blob, and count objects whose `state` is not `Destroyed` or `Destroyed_Compromised`. This is
crate/server_database/src/stores/redis/objects_db.rs:593
↓ 2 callersMethodscan_count_non_destroyed
# Decryption errors A single corrupt or foreign blob does not abort the scan: it is skipped with a `debug!` log. The 30-second cron sync will re-run
crate/server_database/src/stores/redis/objects_db.rs:640
↓ 2 callersFunctionscriptTag
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionse
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionseal_at
A sealed session of `alice` issued by `codec` with explicit times.
crate/server/src/middlewares/ui_session.rs:475
↓ 2 callersFunctionseal_envelope
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:165
↓ 2 callersFunctionsecret_bytes
Extract the raw opaque bytes stored in a KV `SecretData` object, without copying them.
crate/server/src/routes/kv/metadata.rs:406
↓ 2 callersFunctionsecret_checksum
Sum of octets modulo 2^16, the checksum of an unencrypted secret key (RFC 4880 §5.5.3).
crate/clients/client_utils/src/openpgp_format.rs:100
↓ 2 callersFunctionsecret_with_owner
(owner_reference: OwnerReference)
crate/clients/k8s/operator/src/controller.rs:640
↓ 2 callersMethodsecurity
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionselect_cipher
(kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:23
↓ 2 callersFunctionselect_cipher_pad
(kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc5649.rs:23
↓ 2 callersFunctionselect_from_objects
Build `SELECT … FROM objects` with one `INNER JOIN tags` per searched tag, followed by the JSON-array `FROM` items required by the Link / Name filters
crate/server_database/src/stores/sql/locate_query.rs:477
↓ 2 callersFunctionself_signed
(key: &PKey<Private>, digest: MessageDigest)
crate/server/src/routes/scep/pki_operation.rs:394
↓ 2 callersFunctionsend_2_1
( client: &SocketClient, operation: kmip_2_1::kmip_types::OperationEnumeration, payload: Operation
crate/server/src/tests/ttlv_tests/certify_1_4.rs:94
↓ 2 callersFunctionsend_bytes
(request_bytes: &[u8])
crate/server/src/tests/ttlv_tests/batch_semantics_2_1.rs:296
↓ 2 callersMethodsend_ttlv_request
Shared TTLV request/response logic for KMIP endpoints. Serialises `request` to TTLV, POSTs it to `endpoint`, deserialises the TTLV response, and rout
crate/clients/client/src/kms_rest_client.rs:1004
↓ 2 callersMethodserialiseContent
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodserialiseObject
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodserialize
(&self, serializer: S)
crate/kmip/src/ttlv/date_time.rs:22
↓ 2 callersMethodserialize_bytes
(self, v: &[u8])
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:286
↓ 2 callersMethodserialize_i64
(self, v: i64)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:217
↓ 2 callersMethodserialize_newtype_struct
(self, name: &'static str, value: &T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:391
↓ 2 callersMethodserialize_seq
(self, len: Option<usize>)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:479
↓ 2 callersFunctionserve_one
Run one server-side TLS handshake with `acceptor` against a client built by `client_setup` and return `on_accept` applied to the accepted server strea
crate/server/src/socket_server.rs:766
↓ 2 callersMethodserver_side_decrypt
Delegate decryption to the server. # Errors - If the cryptographic algorithm is not supported - If the block cipher mode is not supported - If the ke
crate/clients/clap/src/actions/symmetric/decrypt.rs:203
↓ 2 callersMethodserver_side_encrypt
Encrypt the data using the specified key server side Returns the nonce, the encrypted data, and the authentication tag # Errors - If the query to the
crate/clients/clap/src/actions/symmetric/encrypt.rs:227
↓ 2 callersMethodserver_side_kem_encapsulation
Generate an ephemeral key (DEK) and wrap it with the KEK. This encapsulation has the following format: | `kem_nonce` | `kem_ciphertext` | `kem_tag` |
crate/clients/clap/src/actions/symmetric/encrypt.rs:357
↓ 2 callersMethodservers
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsetListBounds
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionsetScrollTimeoutId
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionset_access_token
( use_jwt_token: bool, use_api_token: bool, access_token: Option<String>, api_token: Option<St
crate/test_kms_server/src/test_server.rs:1316
↓ 2 callersMethodset_active_key_count
Overwrite the active-key counter with an absolute value. Called once during bootstrap and by the reconcile path.
crate/server_database/src/stores/redis/objects_db.rs:721
↓ 2 callersFunctionset_attribute
(kms: &KMS, uid_str: &str, attribute: Attribute)
crate/server/src/tests/hsm/rotation.rs:250
↓ 2 callersFunctionset_attribute
Use `set_attribute` from `test_modify_attribute` (reuse existing helper).
crate/clients/ckms/src/tests/attributes/test_set_attribute.rs:102
↓ 2 callersFunctionset_attributes
(kms: &KMS, uid: &str, edit: impl FnOnce(&mut Attributes))
crate/server/src/tests/wrap_certificate_usage_mask.rs:47
↓ 2 callersMethodset_cookie_value
`Set-Cookie` value of `sealed`, advertised for `max_age` seconds.
crate/server/src/middlewares/ui_session.rs:161
↓ 2 callersFunctionset_enabled
Enables or disables phase collection at runtime.
crate/clients/pkcs11/module/src/profiling.rs:249
↓ 2 callersMethodset_fail_closed
With `fail_closed`, [`Self::resume`] refuses a corrupt generation instead of sealing it and rolling to a fresh one (see `--audit-fail-closed`).
crate/server_database/src/stores/audit/pgsql.rs:160
↓ 2 callersMethodset_key_label
( &self, _slot_id: usize, _key_id: &[u8], _label: &str, )
crate/server/src/core/operations/certify/hsm_subject_tests.rs:257
↓ 2 callersMethodset_key_wrap
( &self, slot_id: usize, key_id: &[u8], enabled: bool, )
crate/hsm/base_hsm/src/kms_hsm.rs:419
↓ 2 callersMethodset_label
Set `CKA_LABEL` on a key object while preserving embedded tags.
crate/hsm/base_hsm/src/session/session_impl.rs:3850
↓ 2 callersMethodset_live_count
Overwrite the live-object counter with an absolute value. Called once during bootstrap (when `get_live_count` returns `None`) and never** again durin
crate/server_database/src/stores/redis/objects_db.rs:576
↓ 2 callersMethodset_padding
Enable or disable PKCS#5 padding (only meaningful for ECB and CBC).
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:1160
↓ 2 callersFunctionset_rotation_policy
Set the rotation policy for a symmetric key via the CLI.
crate/clients/ckms/src/tests/symmetric/rotation_policy.rs:20
↓ 2 callersFunctionset_rsa_pair_masks
Applies private / public / common usage masks to an RSA `CreateKeyPair` request.
crate/server/src/tests/jwks_endpoint.rs:116
↓ 2 callersMethodset_wrap_attributes
Set `CKA_WRAP` and `CKA_UNWRAP` on `key_handle`, so AES-KW/KWP can use `C_WrapKey`.
crate/hsm/base_hsm/src/session/aes_key_wrap.rs:84
↓ 2 callersFunctionset_wrapping_key_uid
Replace the wrapping key UID recorded in the wrapped `object`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:665
↓ 2 callersFunctionsetup_new_key
Set up a newly generated key with replacement attributes and links. Applies the `ReplacedObjectLink` pointing to the old UID, an optional paired-key
crate/server/src/core/operations/rekey/common.rs:564
↓ 2 callersFunctionsha1_signatures_allowed
()
crate/crypto/src/crypto/rsa/sign.rs:22
↓ 2 callersFunctionsha256_request
( data: Option<&[u8]>, correlation_value: Option<Vec<u8>>, init_indicator: Option<bool
crate/server/src/core/operations/hash.rs:115
↓ 2 callersFunctionshared_migration_scenarios
(fixture: &F)
crate/server_database/src/tests/sql_migration_tests.rs:505
↓ 2 callersFunctionshouldAutoLoginWithCert
(methods: AuthMethod[])
ui/src/utils/utils.ts:86
↓ 2 callersFunctionshouldInvoke
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodsids
(&self)
crate/server/src/middlewares/ui_session.rs:349
↓ 2 callersFunctionsign
( request: HttpRequest, kms: Data<Arc<KMS>>, role: Path<String>, body: Json<SignRequest>, )
crate/server/src/routes/ssh/mod.rs:154
↓ 2 callersFunctionsign_data
Helper: sign data using a key
crate/server/src/tests/hsm/permissions.rs:154
↓ 2 callersFunctionsign_hash_pkcs1
( dll: &KspDll, h_provider: usize, h_key: usize, hash: &[u8], )
crate/clients/clap/src/actions/cng_verify.rs:269
↓ 2 callersFunctionsign_message
Signs `message` with the configured audit key (resolving keysets to the current generation) and returns the concrete key UID and the signature.
crate/server/src/core/audit/checkpoint.rs:120
↓ 2 callersFunctionsign_message_error
(rv: CK_RV)
crate/hsm/base_hsm/src/session/message_sign.rs:40
↓ 2 callersFunctionsign_scope
Runs one top-level `C_Sign` body with nested phase collection enabled.
crate/clients/pkcs11/module/src/profiling.rs:225
↓ 2 callersFunctionsign_tbs
Software stand-in for the HSM: RSA PKCS#1 v1.5 / ECDSA over the digest the oracle is asked to use, or pure `EdDSA` over the raw to-be-signed bytes.
crate/server/src/core/certificate/oracle_signing.rs:537
↓ 2 callersFunctionsign_twice_and_compare
(sign_req: &Sign, pkey: &PKey<Private>)
crate/crypto/src/crypto/rsa/sign.rs:340
↓ 2 callersMethodsign_with_classic_mechanism
Signs with `C_SignInit`/`C_Sign` only, never through a persistent message context. Required for mechanisms whose parameter must change per operation
crate/hsm/base_hsm/src/session/session_impl.rs:2219
↓ 2 callersMethodsign_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, data: &[u
crate/hsm/base_hsm/src/session/session_impl.rs:2203
↓ 2 callersMethodsign_with_simple_mechanism
Sign using a parameter-less mechanism (raw PKCS#1 v1.5 or one of its hash-prefixed variants).
crate/hsm/base_hsm/src/session/session_impl.rs:2005
↓ 2 callersFunctionsign_with_transit_key_impl
( req: HttpRequest, kms: Data<Arc<KMS>>, path: Path<(String, String)>, body: Json<SignTransitR
crate/server/src/routes/spire/transit.rs:821
↓ 2 callersFunctionsignature_algorithm_to_kmip_params
Maps a PKCS#11 `SignatureAlgorithm`/payload pair to the KMIP `CryptographicParameters` and `data`/`digested_data` fields used by both the `Sign` and `
crate/clients/pkcs11/provider/src/kms_object.rs:1067
↓ 2 callersFunctionsignature_verify
( kms: &KMS, request: SignatureVerify, user: &UserId, )
crate/server/src/core/operations/signature_verify.rs:262
↓ 2 callersFunctionsigned_by
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:789
↓ 2 callersFunctionsimple_reenroll
Re-enrollment core (RFC 7030 §4.2.2): `peer` is the TLS client certificate being renewed, which must have been issued by the EST CA and still be activ
crate/server/src/routes/est/enroll.rs:299
↓ 2 callersMethodsingle_decrypt
( &self, encrypted_bytes: &[u8], ad: Option<&[u8]>, usk: &UserSecretKey, )
crate/crypto/src/crypto/cover_crypt/decryption.rs:54
↓ 2 callersFunctionsnapshot
()
crate/clients/pkcs11/module/src/profiling.rs:255
↓ 2 callersFunctionsnapshot
Copies the session's context out under the lock, with `pParameter` pointing at a local copy of * the parameter bytes. Returns CKR_OPERATION_NOT_INITI
crate/hsm/base_hsm/tests/fixtures/v3_message_adapter.c:154
↓ 2 callersFunctionsock
(ip: &str, port: u16)
crate/server/src/core/certificate/mod.rs:216
↓ 2 callersFunctionsocket_drafts
One draft per KMIP batch item of a socket-server request, all sharing `request_id`. `user` is `None` when the client was not authenticated.
crate/server/src/middlewares/audit/mod.rs:369
↓ 2 callersFunctionsocket_username
Username the socket server resolves for a client presenting a CA-issued certificate for `cn`; the outer error means the TLS handshake itself failed.
crate/server/src/socket_server.rs:821
↓ 2 callersFunctionsorted
(len: u32)
crate/clients/clap/src/actions/bench/load.rs:1723
↓ 2 callersFunctionspawn_server
Serve `connections` TLS connections with one acceptor that checks client certificates against the CRLs in `crl_dir`; an accepted client receives `ok`.
crate/server/src/tls_config.rs:334
↓ 2 callersFunctionspki_of
(pkey: &PKey<T>)
crate/clients/pkcs11/provider/src/pkcs11_public_key.rs:191
↓ 2 callersFunctionspki_public_key_object
Build a KMIP `PublicKey` object carrying an SPKI DER blob.
crate/server/src/routes/jose/keys.rs:687
↓ 2 callersFunctionsplit_aes_gcm_output
Split a `CKM_AES_GCM` encryption output into IV, ciphertext and tag. Standard PKCS#11 output is `ciphertext || tag` and the IV is the `pIv` buffer. T
crate/hsm/base_hsm/src/session/session_impl.rs:4337
↓ 2 callersFunctionsqlite_exec
Tamper with the `SQLite` file behind the database's back, as a database writer would.
crate/server_database/src/core/database_permissions.rs:326
↓ 2 callersFunctionstartNewMode
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionstart_default_test_kms_server_with_three_softhsm2
Start a test KMS server with three `SoftHSM2` instances: - Slot 1 (`HSM_SLOT_ID_1`): legacy single-HSM config (`hsm:` top-level fields). Keys are add
crate/test_kms_server/src/test_server.rs:1023
↓ 2 callersFunctionstart_fail_closed
Fail-closed start once the previous (dropped) store's writer task released the lock: a lock refusal is a different error from the one the tests look f
crate/server/src/core/audit/store.rs:563
↓ 2 callersFunctionstart_from_server_params
Common finalization once the server parameters are fully constructed
crate/test_kms_server/src/test_server.rs:1276
↓ 2 callersFunctionstart_isolated_test_kms_server
Start a fresh plain server for one owner on the backend selected by `KMS_TEST_DB`. The shared server initializes external databases first; this serve
crate/test_kms_server/src/test_server.rs:429
↓ 2 callersFunctionstart_plain_default_test_kms_server
The default plain test server, whatever `KMS_HSM_KEK` says. The vector runner picks its server per vector (`server_type`) and several vectors assert
crate/test_kms_server/src/test_server.rs:413
← previousnext →3,901–4,000 of 16,000, ranked by callers