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
↓ 6 callers
Method
decrypt_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, encrypted
crate/hsm/base_hsm/src/session/session_impl.rs:1814
↓ 6 callers
Function
derive_session_key_from_url
Derive a session cookie encryption key from the public URL and a user-provided salt. This function creates a deterministic key from the public URL an
crate/server/src/start_kms_server.rs:811
↓ 6 callers
Function
ecdh_es_round_trip
(crv: &str, alg: &str, enc: &str)
crate/server/src/tests/jose/ecdh.rs:179
↓ 6 callers
Function
emptyMap
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
encrypt
(kms: &Arc<KMS>, user: &str, key: &str, body: Value)
crate/server/src/routes/spire/transit_encryption.rs:696
↓ 6 callers
Function
encrypt
Encrypt plaintext with the given key, returning the JSON encrypt response.
crate/server/src/tests/jose/key_state.rs:62
↓ 6 callers
Method
encrypt_big
Encrypts the given `value` using the FPE method. The value must be less than or equal to the `max_value` of the `Integer` representation. # Example
crate/crypto/src/crypto/fpe/integer.rs:141
↓ 6 callers
Function
enforce_kmip_algorithm_policy_for_csr
Certify from a PKCS#10 request: its public key and, for RSA and EC keys (whose signature names a hash), its signature algorithm must satisfy the activ
crate/server/src/core/operations/algorithm_policy.rs:291
↓ 6 callers
Function
enroll_device
Enroll a device through SCEP and return its key and certificate.
crate/server/src/tests/enrollment_tests.rs:1188
↓ 6 callers
Function
enroll_for_peer
Issue for an authenticated request. A client certificate issued by the EST CA must still be active (TLS verification does not check revocation) and ma
crate/server/src/routes/est/enroll.rs:259
↓ 6 callers
Function
ensure_pkcs11_lib
Ensures the `libcosmian_pkcs11` shared library (cdylib) is built. Mirrors the pattern from `ensure_binary.rs`.
crate/clients/ckms/src/tests/pkcs11.rs:36
↓ 6 callers
Method
export_key
Export a key from the HSM
crate/hsm/base_hsm/src/session/session_impl.rs:2964
↓ 6 callers
Method
extension
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
extract_private_key
Extract the private key from a test.
crate/clients/ckms/src/tests/utils/extract_uids.rs:28
↓ 6 callers
Function
extract_public_key
Extract the public key from a test.
crate/clients/ckms/src/tests/utils/extract_uids.rs:33
↓ 6 callers
Method
fail_json
(**kwargs)
ansible/tests/unit/test_kms_api.py:139
↓ 6 callers
Function
field
(body: &Value, name: &str)
crate/server/src/tests/google_cse/crypto_paths.rs:51
↓ 6 callers
Method
freeze
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
gcm
(tag_length: Option<i32>, iv_length: Option<i32>)
crate/server/src/core/operations/decrypt.rs:1059
↓ 6 callers
Function
gcm_fixture_session
(gcm: AesGcmCapabilities, fixture_args: &[&str])
crate/hsm/base_hsm/src/session/session_impl.rs:4493
↓ 6 callers
Function
gcm_mechanism
Build a `CK_MECHANISM` for `CKM_AES_GCM` pointing at the caller-owned `params`. `params` MUST be a local variable in the caller's own stack frame (not
crate/clients/pkcs11/module/src/core/mechanism.rs:580
↓ 6 callers
Function
generate_rsa_keypair
Generate RSA keypair using OpenSSL (random size from 2048, 3072, or 4096 bits).
crate/clients/clap/src/tests/shared/openssl_utils.rs:18
↓ 6 callers
Method
getMetaProperty
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
get_hsm_model
()
crate/test_kms_server/src/test_server.rs:622
↓ 6 callers
Function
get_hsm_password
()
crate/test_kms_server/src/test_server.rs:626
↓ 6 callers
Method
get_info_struct
Get PKCS#11 info as Info struct. This method calls `C_GetInfo` and returns the `Info` structure with parsed library information.
crate/hsm/base_hsm/src/hsm_lib.rs:556
↓ 6 callers
Method
get_key_metadata
(&self, uid: &str)
crate/interfaces/src/hsm/hsm_store.rs:1101
↓ 6 callers
Method
get_parameter
Read a server-internal parameter from the main database without writing it. # Errors Fails if the main store cannot read or decrypt the parameter.
crate/server_database/src/core/database_objects.rs:566
↓ 6 callers
Function
gi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
grant
(kms: &KMS, uid: &str, user: &str, op: KmipOperation)
crate/server/src/tests/hsm/fake_hsm_authz.rs:396
↓ 6 callers
Function
grant_certify_access
Grant `user` `Get` + `Certify` on `cert_id` AND `Get` on `sk_id`. This allows a non-owner to use the CA cert/key as an issuer in a `Certify` request,
crate/server/src/tests/crl_tests.rs:869
↓ 6 callers
Function
h
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
has_usage_mask
(&self, required: CryptographicUsageMask, lenient: bool)
crate/interfaces/src/stores/object_with_metadata.rs:229
↓ 6 callers
Function
headers
(cookie: &str)
crate/server/src/middlewares/ui_session.rs:413
↓ 6 callers
Function
hybrid_kem_algorithm_name
Map a hybrid KEM `CryptographicAlgorithm` to the OpenSSL algorithm name string.
crate/crypto/src/crypto/pqc/mod.rs:411
↓ 6 callers
Function
ih
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
includesCycle
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
init_char_test_backend
()
crate/clients/pkcs11/module/src/sessions.rs:1844
↓ 6 callers
Function
insert_test_key_pair
Insert a private key (`<base>`) and its paired public key (`<base>_pk`) directly into the global `OBJECTS_STORE`, returning the two handles.
crate/clients/pkcs11/module/src/tests.rs:1725
↓ 6 callers
Function
invalid_response_message_with_reason
According to the specification, when a Request Message is invalid, the KMIP server returns a Response Message containing an Operation Failed batch ite
crate/server/src/routes/kmip/handlers.rs:191
↓ 6 callers
Function
iot_template
()
crate/server/src/core/operations/certify/template.rs:634
↓ 6 callers
Method
isEmpty
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
isJSONSchemaObject
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
isPrimitiveElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
is_WS_OR_EOL
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
is_aes_gcm
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:354
↓ 6 callers
Function
is_mysql_deadlock
(msg: &str)
crate/server_database/src/stores/sql/mysql.rs:111
↓ 6 callers
Function
iteratorDone
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
join_split_key
This operation reconstructs a Managed Cryptographic Object from split-key shares. KMIP 2.1 §4.29.
crate/server/src/core/kms/kmip.rs:145
↓ 6 callers
Function
jose_to_kmip_params
Derive KMIP `CryptographicParameters` from JOSE algorithm identifiers. For encrypt/decrypt, pass both `alg` and `enc`. For sign/verify, pass only `al
crate/server/src/routes/jose/algorithm.rs:183
↓ 6 callers
Method
key
(&self)
crate/server/src/core/operations/certify/issuer.rs:46
↓ 6 callers
Function
key_protection_from_attributes
Sensitive/extractable attributes the KMS reported for a key.
crate/clients/pkcs11/provider/src/kms_object.rs:1588
↓ 6 callers
Method
key_type
(&self, id: &str)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:121
↓ 6 callers
Function
kms_export_pgp
Export a KMS PGP key as secret or public armor.
crate/test_kms_server/src/pgp_gnupg_tests.rs:269
↓ 6 callers
Function
kms_with_fake_hsm
KMS on a fresh `SQLite` database with `FakeHsm` mounted under the `hsm` prefix.
crate/server/src/tests/hsm/fake_hsm_authz.rs:353
↓ 6 callers
Function
len_usize
Converts an `NCrypt` `u32` byte count to a `usize`.
crate/clients/clap/src/actions/cng_verify.rs:27
↓ 6 callers
Method
list_objects
List objects in the HSM that match the specified filter The filter can be used to narrow down the search to specific types of objects such as AES keys
crate/hsm/base_hsm/src/session/session_impl.rs:747
↓ 6 callers
Function
local_google_cse_config
A [`GoogleCseConfig`] backed by a single local key: no Google network access needed.
crate/server/src/tests/google_cse/utils.rs:96
↓ 6 callers
Function
low_level_init_test
(cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:91
↓ 6 callers
Function
make_aes256_key
()
crate/server/src/core/operations/auto_rotate.rs:393
↓ 6 callers
Function
mh
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
ml_dsa_sign
Sign data using an ML-DSA private key. ML-DSA uses an internal hash, so we use `Signer::new_without_digest` (same pattern as `EdDSA`).
crate/crypto/src/crypto/pqc/ml_dsa.rs:50
↓ 6 callers
Function
mock_auth_verifier
A validator of a mock Auth Verifier whose `GET /whoami` answers 200 to an `_ea_` cookie while `live` is set (the session exists), and 401 otherwise.
crate/server/src/middlewares/auth_verifier/token.rs:376
↓ 6 callers
Method
mount
Fetch secrets from the KMS and return their contents as files. For each object declared in the `SecretProviderClass`, the provider: 1. Calls `KmsClie
crate/clients/k8s/csi_provider/src/service.rs:122
↓ 6 callers
Function
mysql_deadlock_backoff_ms
(attempt: u32)
crate/server_database/src/stores/sql/mysql.rs:122
↓ 6 callers
Function
nh
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
nid
(&self)
crate/clients/pkcs11/module/src/traits/key_algorithm.rs:85
↓ 6 callers
Method
objects_get
( &self, uids: &HashSet<String>, )
crate/server_database/src/stores/redis/objects_db.rs:331
↓ 6 callers
Function
one_shot_http_server
Spawn an async one-shot HTTP/1.1 server on a random port. The server runs as a `tokio::spawn` task on the **same** event-loop as the test, avoiding t
crate/server/src/middlewares/jwt/jwks.rs:384
↓ 6 callers
Method
operation_enum
(&self)
crate/kmip/src/kmip_2_1/kmip_operations.rs:342
↓ 6 callers
Function
outcome_label
`outcome` label value of a KMIP or HSM operation result: `"success"` or `"error"`.
crate/server/src/core/otel_metrics.rs:64
↓ 6 callers
Function
pad_be_bytes
(bytes: &mut Vec<u8>, size: usize)
crate/crypto/src/lib.rs:8
↓ 6 callers
Function
params_with_allowlists
(conf: ClapConfig)
crate/server/src/tests/kmip_policy/helpers.rs:41
↓ 6 callers
Function
parse_ocsp_request
(request_der: &[u8])
crate/crypto/src/openssl/ocsp.rs:198
↓ 6 callers
Method
peek
Returns the unwrapped object cached under the given UID if it exists and its fingerprint matches the one of the given wrapped object. Returns `Ok(Non
crate/server_database/src/core/unwrapped_cache.rs:142
↓ 6 callers
Method
preserved_data
(&self)
crate/server_database/src/tests/sql_migration_tests.rs:108
↓ 6 callers
Function
provider
()
crate/crypto/src/crypto/symmetric/tests.rs:602
↓ 6 callers
Method
read
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
read_bytes_from_file
Read all bytes from a file
crate/server/src/tests/google_cse/mod.rs:98
↓ 6 callers
Function
rebuild_url_without_ssl_params
Rebuild the connection URL, removing only SSL-related query parameters. Other parameters like `target_session_attrs` are preserved for `tokio-postgres
crate/server_database/src/stores/sql/pgsql.rs:2338
↓ 6 callers
Function
record_cse_user
Records the CSE user in the request extensions so that the audit middleware attributes the event to it: tokens are validated here, not by a middleware
crate/server/src/routes/google_cse/operations.rs:282
↓ 6 callers
Method
record_failure_at
(&self, client: IpAddr, now: Instant)
crate/server/src/routes/enrollment_guard.rs:108
↓ 6 callers
Function
redis_master_key_for_database
Derive the master key of the database at `redis_url` from `password`. The salt is stored in the database (`kms_kdf_salt`). A database created by an o
crate/server_database/src/stores/redis/redis_with_findex.rs:159
↓ 6 callers
Method
reject_unsupported_extensions
Reject JOSE header extensions this server does not implement, whatever the authenticator: - `crit` must be absent: RFC 7515 §4.1.11 requires rejecting
crate/server/src/middlewares/jwt/jwt_config.rs:206
↓ 6 callers
Function
rekey_as
(kms: &KMS, uid_str: &str, user: &UserId)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:1022
↓ 6 callers
Method
remote_id
(&self)
crate/clients/pkcs11/module/src/core/object.rs:77
↓ 6 callers
Method
remove_operations
Remove the ability to `user` to perform the `operations` on the object identified by its `uid`
crate/server_database/src/core/database_permissions.rs:61
↓ 6 callers
Method
remove_tags
(&mut self, vendor_id: &str)
crate/kmip/src/kmip_2_1/extra/tagging.rs:99
↓ 6 callers
Function
render
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
render
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
resolve_optional_provider
( result: Result<T, E>, dlopen_impossible: bool, log_warning: impl FnOnce(&E), )
crate/server/src/openssl_providers.rs:366
↓ 6 callers
Method
retrieve_tags
Retrieve the tags of the object with the given `uid`
crate/server_database/src/core/database_objects.rs:375
↓ 6 callers
Function
revoke
( kms_rest_client: KmsClient, key_id: &str, revocation_reason: &str, reason_code: RevocationRe
crate/clients/clap/src/actions/shared/utils/revoke_utils.rs:21
↓ 6 callers
Function
revoke_cert
( kms: &Arc<KMS>, owner: &UserId, cert_id: &str, reason: RevocationReasonCode,
crate/server/src/tests/test_validate.rs:1381
↓ 6 callers
Function
rfc3394_wrap
(plaintext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:36
↓ 6 callers
Function
rsa
(bits: u32)
crate/server/src/tests/kmip_policy/certify.rs:24
↓ 6 callers
Function
run_sanity
Runs the criterion groups of one `--mode`/`--protocol` pair once at `sanity` speed.
crate/clients/clap/src/actions/bench/clap.rs:560
↓ 6 callers
Function
safeBuildUrl
(s,o,{selectedServer:i=""}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
save_role
(kms: &KMS, policy: &RolePolicy)
crate/server/src/routes/ssh/storage.rs:72
↓ 6 callers
Function
serial_tag
System tag under which an enrolled certificate is indexed by issuer and serial, so that the state of a certificate presented for renewal is found with
crate/server/src/routes/enrollment.rs:345
← previous
next →
1,101–1,200 of 16,000, ranked by callers