Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
16,000 in github.com/Cosmian/kms
⨍
Functions
16,000
◇
Types & classes
2,898
↓ 2 callers
Function
_includes
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_includesWith
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_instanceof
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_isString
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_nth
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_objectKeys
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_quote
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
_setDefaults
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
_toOtherCase
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_toPropertyKey
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_toString_toString
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
_typeof
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
ab
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
accept_transport_error
Accept a transport error if the step tolerates it, fail the step otherwise.
crate/test_kms_server/src/vector_runner.rs:537
↓ 2 callers
Function
access_structure_from_attributes
Extract an `Covercrypt` access structure from attributes
crate/crypto/src/crypto/cover_crypt/attributes.rs:40
↓ 2 callers
Function
access_structure_from_str
(access_structure_str: &str)
crate/crypto/src/crypto/cover_crypt/access_structure.rs:15
↓ 2 callers
Function
acquire_with_timeout
Wait for a permit of `semaphore`, at most `timeout`.
crate/hsm/base_hsm/src/slots.rs:544
↓ 2 callers
Method
activate
This operation requests the server to activate a Managed Object currently in Pre-Active state.
crate/clients/client/src/kms_rest_client.rs:126
↓ 2 callers
Function
ad
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
addToSet
(s,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
add_attr
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:357
↓ 2 callers
Method
add_link
Add a link to an object without removing existing links of the same type.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:703
↓ 2 callers
Function
add_link_to_attributes
( object_with_metadata: &mut ObjectWithMetadata, link_type: LinkType, linked_object_identifier: co
crate/server/src/core/operations/derive_key.rs:796
↓ 2 callers
Method
add_live
Record a liveness change of `delta` for an object; key-type objects also move the active-key counter.
crate/server_database/src/stores/redis/redis_with_findex.rs:288
↓ 2 callers
Method
add_to_find_objects_ctx
Add to the unread index
crate/clients/pkcs11/module/src/sessions.rs:618
↓ 2 callers
Function
addresses_one_generation
`true` when `identifier` addresses one keyset generation (`name@first`, `name@0`, `name@N`) rather than the keyset head (`name`, `name@latest`).
crate/server/src/core/uid_utils.rs:139
↓ 2 callers
Function
aead_and_digest
(curve: &EcGroupRef)
crate/crypto/src/crypto/elliptic_curves/ecies/standard_curves.rs:179
↓ 2 callers
Method
aead_encrypt
( &self, key: &SymmetricKey<{ Aes256Gcm::KEY_LENGTH }>, ptx: &[u8], ad: Option
crate/crypto/src/crypto/cover_crypt/encryption.rs:120
↓ 2 callers
Function
aes_256_key_request
( block_cipher_mode: BlockCipherMode, tags: T, )
crate/server/src/tests/bulk_encrypt_decrypt_tests.rs:134
↓ 2 callers
Function
aes_cbc_multi_part
Single-operation multi-part AES-CBC (`C_EncryptInit` + `C_EncryptUpdate`* + `C_EncryptFinal`, and the decrypt counterpart) must be byte-identical to t
crate/hsm/base_hsm/src/tests_shared.rs:1116
↓ 2 callers
Function
aes_cbc_params
AES-CBC parameters. Used by the HSM-resident encrypt bench (`--hsm`) — the oracle supports `CryptoAlgorithm::AesCbc` alongside `AesGcm`, unlike the so
crate/clients/clap/src/actions/bench/helpers.rs:184
↓ 2 callers
Function
aes_gcm_encrypt
AES-GCM encrypt using an ephemeral CEK. Returns `(ciphertext, iv, tag)` where: - `iv` is the 12-byte IV generated by the OpenSSL provider (inside the
crate/server/src/routes/jose/aes_gcm.rs:58
↓ 2 callers
Function
aes_gcm_encrypt_if_hsm_generates_iv
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:721
↓ 2 callers
Function
aes_gcm_encrypt_token_without_iv_generation
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:698
↓ 2 callers
Function
aes_gcm_parameters
()
crate/server/src/routes/spire/transit_encryption.rs:205
↓ 2 callers
Function
aes_gcm_round_trip
AES-GCM encrypt → decrypt round-trip for any key size and `enc` algorithm string.
crate/server/src/tests/jose/common.rs:26
↓ 2 callers
Function
aes_key_block
(key_value: &[u8])
crate/kmip/src/ttlv/tests/kmip_2_1_tests.rs:58
↓ 2 callers
Function
aes_key_unwrap
AES Key Unwrap with Padding (RFC 5649) using OpenSSL
crate/clients/clap/src/tests/shared/openssl_utils.rs:126
↓ 2 callers
Method
aes_key_unwrap
Unwrap AES-KW or AES-KWP `wrapped` bytes under the AES key `kek`.
crate/hsm/base_hsm/src/session/aes_key_wrap.rs:161
↓ 2 callers
Method
aes_key_wrap
Wrap `data` under the AES key `kek` with AES-KW or AES-KWP.
crate/hsm/base_hsm/src/session/aes_key_wrap.rs:103
↓ 2 callers
Function
aes_key_wrap_misrouted
()
crate/hsm/base_hsm/src/session/session_impl.rs:264
↓ 2 callers
Function
aes_mac_mode
`BlockCipherMode` of an AES MAC requested by `parameters`: CMAC, or GCM for GMAC. `None` selects HMAC.
crate/server/src/core/operations/mac.rs:422
↓ 2 callers
Function
aes_mac_parameters
KMIP `CryptographicParameters` selecting AES-CMAC (`block_cipher_mode = CMAC`) or AES-GMAC (`GCM`) on the KMIP `MAC` / `MACVerify` operations.
crate/clients/pkcs11/provider/src/kms_object.rs:1484
↓ 2 callers
Function
aki_write_length
Write an ASN.1 DER length field into `buf` (short or long form). Supports lengths up to 65 535.
crate/crypto/src/openssl/crl.rs:451
↓ 2 callers
Function
algorithms_for_slot
Query a slot's supported cryptographic algorithms, computed once per slot and cached.
crate/hsm/base_hsm/src/base_hsm.rs:54
↓ 2 callers
Function
all_modes
Expands the `all` benchmark mode (before the build-flavour filter applied by [`expand_bench_mode`]).
crate/clients/clap/src/actions/pkcs11/bench/load.rs:105
↓ 2 callers
Function
allocUnsafe
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
allocate_dynamic_port
(config: &mut ClapConfig)
crate/test_kms_server/src/test_server.rs:1357
↓ 2 callers
Function
allowed_peers
Accept connections on `listener`, silently dropping (with a warning) every peer whose UID is not in `allowed`. A peer whose credentials cannot be read
crate/clients/k8s/plugin/src/peer.rs:17
↓ 2 callers
Function
any_auth_configured
Whether any authentication method is configured (mTLS, JWT/OIDC, API token, Auth Verifier, or the `X-Vault-Token` proxy). `X-Vault-Token` counts as co
crate/server/src/start_kms_server.rs:2243
↓ 2 callers
Function
api_token_middleware
Creates the API token authentication middleware. Validates API tokens on each request and injects [`AuthenticatedUser`] into the request extensions o
crate/server/src/middlewares/api_token/api_token_middleware.rs:29
↓ 2 callers
Function
appendClass
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
append_certificate_chain
Retrieve each parent certificate once, rejecting cyclic and oversized chains.
crate/server/src/core/operations/export_get.rs:1541
↓ 2 callers
Function
append_checkpoint
Appends a checkpoint for `head` (the chain's last event) signed by `signer`, claiming `claimed_hash` as the head's hash.
crate/clients/clap/src/actions/audit.rs:1340
↓ 2 callers
Function
append_checkpoint_event_with_error
Like [`append_checkpoint_event`], recording `timestamp_error` in the details.
crate/clients/clap/src/actions/audit.rs:1287
↓ 2 callers
Method
apply
Apply these options to rows already fetched, for stores that cannot push them into their own query. `requested_state` overrides `destroyed`.
crate/interfaces/src/stores/objects_store.rs:113
↓ 2 callers
Method
apply
Apply rotation policy attributes via `SetAttribute` calls on the given key ID. When `--enroll-keyset` is set, the keyset name is automatically set to
crate/clients/clap/src/actions/shared/rotation_policy_args.rs:54
↓ 2 callers
Function
applyNumberConstraints
(s,o={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
apply_extensions
Conditionally append the RFC 9608 `id-ce-noRevAvail` extension. The extension is added only when **all** of the following hold: - The certificate is
crate/server/src/core/operations/certify/rfc9608.rs:41
↓ 2 callers
Method
apply_extractable
Apply a new `Extractable` value and update `NeverExtractable` accordingly. `NeverExtractable` is the logical complement of `Extractable` the first ti
crate/kmip/src/kmip_2_1/kmip_attributes.rs:547
↓ 2 callers
Function
apply_fail_mode
Applies a pending injected failure; returns non-zero when `*rv` was set. */
crate/hsm/base_hsm/tests/fixtures/minimal_pkcs11.c:121
↓ 2 callers
Function
apply_limit
Append a deterministic `ORDER BY` and `LIMIT` when `options.limit` is set. Must be the last clause: without an order, pages taken as `offset + max` ro
crate/server_database/src/stores/sql/locate_query.rs:564
↓ 2 callers
Function
apply_state_condition
Append the state filter: an exact match when `state` is set, otherwise the destroyed-object filter from `options`. Returns the updated `where_added` f
crate/server_database/src/stores/sql/locate_query.rs:522
↓ 2 callers
Function
arb_crypto_length
()
crate/kmip/src/ttlv/tests/proptest_roundtrip.rs:61
↓ 2 callers
Function
argon2id
(password: &[u8], salt: &[u8], out: &mut [u8])
crate/crypto/src/crypto/password_derivation.rs:74
↓ 2 callers
Function
arrayClone
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
as_keyset_ref
Interpret an [`ObjectHandle`] as a keyset reference (`name`, `name@latest`, `name@N`, …). Returns `None` when the identifier is not keyset syntax (ta
crate/server/src/core/uid_utils.rs:40
↓ 2 callers
Method
as_str
(self)
crate/interfaces/src/stores/audit_sink.rs:54
↓ 2 callers
Function
assembleLineNumberStyles
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
assemble_csr
Insert the externally produced `signature` in a request prepared by [`prepare_csr`].
crate/server/src/core/certificate/oracle_signing.rs:319
↓ 2 callers
Function
assemble_ocsp_response
Insert `signature` in `basic` and return the DER of the `OCSPResponse` wrapping it.
crate/server/src/core/certificate/oracle_signing.rs:467
↓ 2 callers
Function
assertSize
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
assert_call
(mock: &MockGoogle, method: &str, suffix: &str)
crate/clients/ckms/src/tests/google_cmd/gmail_api.rs:36
↓ 2 callers
Function
assert_cannot_decrypt
Asserts that `key` itself (a previous generation) cannot open `wrapped`.
crate/server/src/tests/azure_ekm/routes_tests.rs:232
↓ 2 callers
Function
assert_chain_invalid_at
Validate a chain with an explicit `validity_time`. Expects a successful response with Validity Indicator `Invalid` (KMIP 2.1 §6.1.58).
crate/server/src/tests/test_validate.rs:194
↓ 2 callers
Function
assert_concurrent_heartbeats_do_not_deadlock
Heartbeats of the leader and of a follower, with a stale row to prune, run at the same time. When the stale-row DELETE shared the upsert transaction o
crate/server_database/src/core/mod.rs:722
↓ 2 callers
Function
assert_gcm_invocations_counted
(kms: &KMS, user: &UserId, uid: &str)
crate/server/src/core/operations/decrypt.rs:1394
↓ 2 callers
Function
assert_hidden
(result: &KResult<T>)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:1705
↓ 2 callers
Function
assert_kek_alias_is_no_oracle
A user holding only `Create` and a ciphertext `wrapped` under the server KEK `kek` cannot have it decrypted through an alias (`alias_object`, a public
crate/server/src/tests/hsm/fake_hsm_authz.rs:729
↓ 2 callers
Function
assert_kem_encrypt_contract
The KEM `Encrypt` contract: `IVCounterNonce` is empty and `Data` is the serialized `(shared secret, encapsulation)` tuple. Only its encapsulation comp
crate/server/src/tests/configurable_kem_tests.rs:106
↓ 2 callers
Function
assert_key_usage_not_contains
Assert that the certificate's keyUsage extension does NOT contain the given usage string.
crate/test_kms_server/src/certify_tests.rs:180
↓ 2 callers
Function
assert_object_evicted
The object and rotate-name cache entries of `uid` are gone.
crate/server_database/src/core/database_objects.rs:2080
↓ 2 callers
Function
assert_ocsp_ok_response
An unsigned OCSP error status is HTTP 200 with an `application/ocsp-response` body.
crate/server/src/routes/ocsp/handler.rs:807
↓ 2 callers
Function
assert_openssl3_cli
()
crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs:318
↓ 2 callers
Function
assert_read_only
Add/Set refuse with `Read_Only_Attribute`, Modify/Delete with `Attribute_Read_Only`.
crate/server/src/tests/test_always_sensitive.rs:59
↓ 2 callers
Function
assert_renewed
Assert that `old_id` was renewed: it is Deactivated with a `ReplacementObjectLink` to a persisted certificate whose `ReplacedObjectLink` points back.
crate/server/src/core/operations/auto_rotate.rs:1562
↓ 2 callers
Function
assert_revoke_refused
Asserts that a Revoke with `reason_code` fails with `Wrong_Key_Lifecycle_State` and leaves the object in `state`.
crate/server/src/tests/revoke_tests.rs:395
↓ 2 callers
Function
assert_serial_findex_lookup
(pool: &RedisWithFindex, present: bool)
crate/server_database/src/tests/redis_migration_tests.rs:265
↓ 2 callers
Function
assert_short_tags_rejected
(cipher: SymCipher)
crate/crypto/src/crypto/symmetric/tests.rs:99
↓ 2 callers
Function
assert_verdict
A valid record must verify; an invalid one must be `Invalid` or an error.
crate/crypto/src/crypto/elliptic_curves/verify.rs:267
↓ 2 callers
Method
atomic_script
Execute a batch of [`ScriptOp`]s atomically: either every precondition holds and every write is applied, or nothing is written. The script touches se
crate/server_database/src/stores/redis/objects_db.rs:361
↓ 2 callers
Function
attribute_string_bytes
Read the first value of an `X509_ATTRIBUTE` that holds a string-like ASN.1 type (`PrintableString`, `UTF8String`, `IA5String` or `OCTET STRING`). Ret
crate/crypto/src/openssl/cms_ffi.rs:124
↓ 2 callers
Method
attribute_type
(&self)
crate/clients/pkcs11/module/src/core/attribute.rs:253
↓ 2 callers
Function
attributes
(kms: &KMS, owner: &UserId, uid: &str)
crate/server/src/tests/configurable_kem_tests.rs:65
↓ 2 callers
Method
attributes
Returns the `Attributes` of that key block if any, an error otherwise
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:489
↓ 2 callers
Function
attrs_to_algorithm
Convert KMS `Attributes` to a `KeyAlgorithm`.
crate/clients/cng/src/provider.rs:1428
↓ 2 callers
Function
attrs_to_usage
Convert KMS `Attributes` to `KeyUsage` flags.
crate/clients/cng/src/provider.rs:1456
↓ 2 callers
Function
audit_check
The audit writer must be alive, still allowed to write (size cap) and its queue below `--audit-max-backlog`.
crate/server/src/routes/health.rs:360
↓ 2 callers
Function
audit_enrollment
Record one enrollment attempt in the tamper-evident audit store (when enabled) and in the log: `info` for a success, `warn` for a failure. `principal`
crate/server/src/routes/enrollment.rs:126
↓ 2 callers
Function
audit_enrollment_result
Audit the result of an enrollment handler (see [`audit_enrollment`]).
crate/server/src/routes/enrollment.rs:180
← previous
next →
2,701–2,800 of 16,000, ranked by callers