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
keyedSeqFromValue
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
keyed_digest
HMAC-SHA256 of `message` under the server's internal UID key.
crate/server/src/routes/kv/metadata.rs:165
↓ 2 callers
Function
keypair_generation
(curve: RecommendedCurve)
crate/crypto/src/crypto/elliptic_curves/operation.rs:1118
↓ 2 callers
Method
keywords
(&self)
crate/server_database/src/stores/redis/objects_db.rs:138
↓ 2 callers
Function
keywords_from_attributes
Extract the keywords from the attributes
crate/server_database/src/stores/redis/objects_db.rs:49
↓ 2 callers
Function
ki
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
kmip1_get_response_bytes
--------------------------------------------------------------------------- Helper: send KMIP 1.x Get and return the serialized response bytes. ------
crate/server/src/tests/ttlv_tests/attribute_version_gating.rs:47
↓ 2 callers
Function
kmip1_tree
()
crate/kmip/src/lint_cleanup_characterization_tests.rs:13
↓ 2 callers
Function
kmip_decrypt_dek
Pivot: decrypt `data` with the key identified by `key_uid` using KMIP Decrypt. Both `unwrap_with_aes` and `unwrap_with_rsa` share this pattern — they
crate/server/src/routes/azure_ekm/handlers.rs:551
↓ 2 callers
Function
kmip_destroy
(module, object_id)
ansible/plugins/module_utils/kms_api.py:134
↓ 2 callers
Function
kmip_encrypt_dek
Pivot: encrypt `dek_bytes` with the key identified by `key_uid` using KMIP Encrypt. Both `wrap_with_aes` and `wrap_with_rsa` share this pattern — the
crate/server/src/routes/azure_ekm/handlers.rs:388
↓ 2 callers
Function
kmip_locate
(module, attributes)
ansible/plugins/module_utils/kms_api.py:120
↓ 2 callers
Function
kmip_reason_to_crl_reason
Map a KMIP `RevocationReasonCode` to the corresponding RFC 5280 CRL reason code. The three extension codes (`CertificateHold`, `RemoveFromCRL`, `AaCo
crate/server/src/core/operations/generate_crl.rs:608
↓ 2 callers
Function
kmip_socket_check
The KMIP socket server runs in one task for the whole life of the process: it only ends when it fails, and the node then no longer serves KMIP over TC
crate/server/src/routes/health.rs:340
↓ 2 callers
Function
kmsFetch
(url: string | URL | Request, init?: RequestInit)
ui/tests/e2e/helpers.ts:553
↓ 2 callers
Function
kms_encrypt_async
( kms_rest_client: &KmsClient, encrypt_ctx: &EncryptContext, data: Vec<u8>, require_generated_
crate/clients/pkcs11/provider/src/kms_object.rs:813
↓ 2 callers
Function
kms_error_to_xks_reply
Map a KMS error returned by an XKS encrypt/decrypt operation to its XKS error reply. `operation` (e.g. `"Encrypt"`) only labels the log line emitted
crate/server/src/routes/aws_xks/error.rs:189
↓ 2 callers
Function
kms_import_object_async
( kms_rest_client: &KmsClient, vendor_id: &str, label: &str, data: &[u8], )
crate/clients/pkcs11/provider/src/kms_object.rs:683
↓ 2 callers
Function
kms_import_symmetric_key_async
Creates a new KMS key. At first, the key is locally created and then imported to the KMS. There are 2 reasons why: - 1/ a key with `sensitive` flag ca
crate/clients/pkcs11/provider/src/kms_object.rs:560
↓ 2 callers
Function
kms_request
(module, method, path, body=None)
ansible/plugins/module_utils/kms_api.py:74
↓ 2 callers
Function
kms_seeded_rng
The noise only protects the anonymized data while it cannot be predicted, so its generator is seeded from the *private* DRBG (`fill_bytes`) like every
crate/crypto/src/crypto/anonymization/noise.rs:102
↓ 2 callers
Function
kms_with_db_kek
KMS whose `key_encryption_key` is the database key `kek` owned by `ADMIN`: an AES key, or an RSA private key wrapping with RSA-OAEP.
crate/server/src/tests/hsm/fake_hsm_authz.rs:776
↓ 2 callers
Function
kms_with_fake_hsm_conf_and_encrypt_failure
( conf: ClapConfig, fail_encrypt: bool, )
crate/server/src/tests/hsm/fake_hsm_authz.rs:368
↓ 2 callers
Function
kms_without_key
KMS with a tagged RSA CA key pair owned by the default user, and a self-signed CA certificate linked to the public key.
crate/server/src/routes/spire/pki.rs:664
↓ 2 callers
Function
l
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
langRe
(o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
latest_hsm_keyset_uid
Find the latest generation UID in a keyset identified by `rotate_name`.
crate/server/src/core/operations/rekey/hsm.rs:41
↓ 2 callers
Function
lb
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
legacy_copy
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
lh
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
lifecycle_state_contract_test
Lifecycle-state contract every multi-region-capable backend (`MainDbParams::supports_multi_region`) must hold; SQLite and Redis keep blind writes and
crate/server_database/src/tests/database_tests.rs:1687
↓ 2 callers
Function
listNodeFor
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
list_accesses_rights_obtained
List accesses granted
crate/clients/ckms/src/tests/access.rs:156
↓ 2 callers
Function
list_cng_keys
List all CNG KSP key names and their KMS UUIDs.
crate/clients/cng/src/backend.rs:154
↓ 2 callers
Method
list_crl_issuers
List all issuer IDs with their stored `next_update` timestamps.
crate/server_database/src/core/database_permissions.rs:173
↓ 2 callers
Function
list_ec_algorithms
()
crate/clients/wasm/src/wasm.rs:239
↓ 2 callers
Method
list_generations
Lists every `chain_generation` stored for `instance_id`, in ascending order (the order generations were started in). An instance with no rows returns
crate/server_database/src/stores/audit/pgsql.rs:927
↓ 2 callers
Function
list_jwt_configurations
Build one `JwtConfig` per whitelisted external KACLS, each verified only against the keys published at its own `{url}/certs`.
crate/server/src/routes/google_cse/jwt.rs:70
↓ 2 callers
Method
list_owned_objects
Get all the objects owned by a given user (the owner)
crate/server/src/core/kms/permissions.rs:209
↓ 2 callers
Function
list_symmetric_algorithms
()
crate/clients/wasm/src/wasm.rs:208
↓ 2 callers
Method
list_user_operations_on_object
( &self, uid: &str, user: &UserId, no_inherited_access: bool, )
crate/server_database/src/stores/sql/pgsql.rs:2075
↓ 2 callers
Function
load_request_json
Load a TTLV-JSON request payload, substituting `{{variable}}` placeholders with captured values from previous steps, and `{{$ENV_VAR}}` placeholders w
crate/test_kms_server/src/vector_runner.rs:693
↓ 2 callers
Function
load_test_config
()
crate/server/src/tests/ttlv_tests/config.rs:30
↓ 2 callers
Function
load_vector
Load and parse a single JSON vector file.
crate/server/src/tests/jose/jose_vectors.rs:65
↓ 2 callers
Function
locate_key_by_name
Locate a KMS object by its CNG key name (returns the KMS UUID). Looks for an object carrying the tag `cng-ksp::<name>`.
crate/clients/cng/src/backend.rs:93
↓ 2 callers
Function
locate_ttlv_request
(options: JsValue)
crate/clients/wasm/src/wasm.rs:804
↓ 2 callers
Function
lock_file_path
(path: &Path)
crate/server/src/core/audit/file_sink.rs:348
↓ 2 callers
Method
lock_message_support
(&self)
crate/hsm/base_hsm/src/session/message_context.rs:123
↓ 2 callers
Method
lock_miss
Serialize the producers of `uid` (single-flight): concurrent callers that missed the cache for the same `uid` wait here, so only the first one perform
crate/server_database/src/core/unwrapped_cache.rs:194
↓ 2 callers
Method
locked_for
Remaining lockout of `client`, if it is locked out.
crate/server/src/routes/enrollment_guard.rs:90
↓ 2 callers
Function
locked_response
`429` for a client that is locked out after repeated failed authentications.
crate/server/src/routes/enrollment.rs:222
↓ 2 callers
Function
log_and_redact
Log the detail of a failed check and return the fixed text that `/health` may show.
crate/server/src/routes/health.rs:158
↓ 2 callers
Function
log_ca_use_failure
Server-side hint logged when the CA cannot be used by the enrollment service identity.
crate/server/src/routes/enrollment.rs:86
↓ 2 callers
Function
login
Executes the Login operation: issues a ticket bound to `user`.
crate/server/src/core/operations/login.rs:194
↓ 2 callers
Function
logout
Executes the Logout operation: invalidates a ticket issued to `user`.
crate/server/src/core/operations/login.rs:218
↓ 2 callers
Function
logout_response
`POST /logout` carrying the given `Cookie` header, if any.
crate/server/src/routes/ui_auth.rs:1120
↓ 2 callers
Function
lookup_enum_code_for_tag
(name: &str, tag: &str)
crate/kmip/src/ttlv/enum_lookup.rs:51
↓ 2 callers
Method
mac
( &self, uid: &str, data: &[u8], cryptographic_parameters: Option<
crate/interfaces/src/hsm/hsm_store.rs:1201
↓ 2 callers
Method
mac
(&self, remote_id: &str, algorithm: MacAlgorithm, data: &[u8])
crate/clients/pkcs11/provider/src/backend.rs:718
↓ 2 callers
Method
mac
Compute a MAC over `data` with the symmetric key `key_handle` (`C_SignInit`/`C_Sign`). HMAC and AES-CMAC return the raw MAC. AES-GMAC returns `IV (12
crate/hsm/base_hsm/src/session/session_impl.rs:2377
↓ 2 callers
Function
mac_cryptographic_parameters
HMAC selects the hash; AES-CMAC and AES-GMAC select the AES block cipher mode and take no hash.
crate/clients/wasm/src/wasm.rs:2955
↓ 2 callers
Method
mac_len
(self)
crate/clients/pkcs11/module/src/traits/mac_algorithm.rs:38
↓ 2 callers
Function
mac_mechanism
PKCS#11 mechanism used to compute or verify a MAC with `algorithm`. For `CKM_AES_GMAC` the IV is passed in the mechanism parameter, see [`gmac_params
crate/hsm/base_hsm/src/session/session_impl.rs:121
↓ 2 callers
Function
mac_verify
( kms: &KMS, request: MACVerify, user: &UserId, )
crate/server/src/core/operations/mac.rs:360
↓ 2 callers
Method
mac_with_metadata
Compute a MAC over `data` using the given key in the HSM, resolving the HSM-specific MAC mechanism from the key's own on-HSM metadata within the SAME
crate/interfaces/src/hsm/interface.rs:573
↓ 2 callers
Function
main_sampleFromSchemaGeneric
(s,o={},i=void 0,u=!1)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
makeFetchJSON
(s,o={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
makeResolve
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
makeResolveSubtree
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
makeStack
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
make_kms_inner
( est_enabled: bool, scep_enabled: bool, allow_renewal: bool, tweak: impl FnOnce(&mut crate::c
crate/server/src/tests/enrollment_tests.rs:156
↓ 2 callers
Function
make_root
Self-signed root CA; returns `(certificate id, private key id)`.
crate/server/src/tests/sub_ca_tests.rs:71
↓ 2 callers
Function
make_test_client
()
crate/clients/k8s/plugin/src/service.rs:203
↓ 2 callers
Function
map
()
crate/test_kms_server/src/test_env.rs:26
↓ 2 callers
Method
map
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
mapIteratorFrame
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
map_x25519_crypto_error
(error: CryptoError)
crate/server/src/core/operations/derive_key.rs:980
↓ 2 callers
Method
mark_message_aead_unsupported
Remembers that the token refused the message-based AEAD `mechanism` as unsupported.
crate/hsm/base_hsm/src/session/message_context.rs:148
↓ 2 callers
Function
mark_size_cap_reached
(len: u64, cap: u64, write_state: &AuditWriteState, path: &Path)
crate/server/src/core/audit/file_sink.rs:336
↓ 2 callers
Function
mark_undone
Marks a successful item as `Operation Undone` once its effects were reverted. The payload is kept, as in the OASIS test case BL-M-2-21.
crate/server/src/core/operations/message.rs:1517
↓ 2 callers
Function
marker_matches
(kms: &KMS, kek: &str)
crate/server/src/core/wrapping/wrap.rs:245
↓ 2 callers
Function
maybeIndexedSeqFromValue
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
maybeReadMore
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
maybeRefractToSchemaElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
md_24_constraints
The two constraints of TC-MD-24-21.
crate/server/src/core/operations/constraints.rs:225
↓ 2 callers
Function
mergeDecorators
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
mergeIntoCollectionWith
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
merge_persisted
Copies into `saved` only what a command changed (`new` vs `old`): a value resolved from `secret://` must never replace its reference in the saved file
crate/clients/ckms/src/commands.rs:244
↓ 2 callers
Function
merge_secret_update
( mut existing: Secret, labels: BTreeMap<String, String>, key: String, bytes: Vec<u8>, )
crate/clients/k8s/operator/src/controller.rs:240
↓ 2 callers
Method
message_aead_unsupported
Whether the token already refused the message-based AEAD `mechanism` (`decrypt`: decryption, otherwise encryption) as unsupported on this slot, so the
crate/hsm/base_hsm/src/session/message_context.rs:131
↓ 2 callers
Method
message_family_enabled
Whether the message path may be tried for `mechanism_type`: the provider opted in, the library exports the family, and the token did not already rejec
crate/hsm/base_hsm/src/session/message_context.rs:177
↓ 2 callers
Function
message_final
crate/hsm/base_hsm/tests/fixtures/minimal_pkcs11.c:159
↓ 2 callers
Function
message_final
crate/hsm/base_hsm/tests/fixtures/v3_message_adapter.c:215
↓ 2 callers
Function
message_init
crate/hsm/base_hsm/tests/fixtures/minimal_pkcs11.c:103
↓ 2 callers
Function
message_init
crate/hsm/base_hsm/tests/fixtures/v3_message_adapter.c:111
↓ 2 callers
Method
message_sign_init
Initialize a message-based signing operation (`C_MessageSignInit`) over `key_handle` with `algorithm`. Closes any message-signing context already ope
crate/hsm/base_hsm/src/session/message_sign.rs:61
↓ 2 callers
Function
meta
()
crate/hsm/base_hsm/src/lint_cleanup_characterization_tests.rs:13
↓ 2 callers
Function
metadata
()
crate/server/src/routes/aws_xks/encrypt_decrypt/mod.rs:92
↓ 2 callers
Function
metadata_tags
Tags of a metadata object, besides [`KV_MARKER_TAG`].
crate/server/src/routes/kv/metadata.rs:467
↓ 2 callers
Function
min_compatible_floor
A binary never requires a reader newer than itself (migration tests run older targets).
crate/server_database/src/stores/migrate.rs:439
← previous
next →
3,501–3,600 of 16,000, ranked by callers