Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
12,829 in github.com/Cosmian/kms
⨍
Functions
12,829
◇
Types & classes
2,591
↓ 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
ml_dsa_verify
Verify a signature using an ML-DSA public key.
crate/crypto/src/crypto/pqc/ml_dsa.rs:57
↓ 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
nonce_size
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:258
↓ 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:370
↓ 6 callers
Method
operation_enum
(&self)
crate/kmip/src/kmip_2_1/kmip_operations.rs:374
↓ 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_keyset_identifier
Try to parse an identifier as a keyset reference. A keyset reference is recognized when: - It is NOT a tag JSON (`[...]`) - It is NOT an HSM prefix (
crate/server/src/core/uid_utils.rs:144
↓ 6 callers
Function
parse_ocsp_request
(request_der: &[u8])
crate/crypto/src/openssl/ocsp.rs:222
↓ 6 callers
Function
pki_message
Build a signed SCEP `pkiMessage` carrying `csr` encrypted to `ca`.
crate/server/src/tests/enrollment_tests.rs:895
↓ 6 callers
Method
post_bytes
Send an HTTP POST request with raw bytes and a specified content type. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:496
↓ 6 callers
Function
process_error_response
Convert an error HTTP response into the appropriate `KmsClientError` variant. Returns [`KmsClientError::Unauthorized`] for 401, otherwise [`KmsClient
crate/clients/client/src/kms_rest_client.rs:1042
↓ 6 callers
Function
read_bytes_from_file
Read all bytes from a file
crate/server/src/tests/google_cse/mod.rs:85
↓ 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:1655
↓ 6 callers
Method
record_failure_at
(&self, client: IpAddr, now: Instant)
crate/server/src/routes/enrollment_guard.rs:108
↓ 6 callers
Method
remote_id
(&self)
crate/clients/pkcs11/module/src/core/object.rs:77
↓ 6 callers
Method
remove
Remove an object handle from the cache.
crate/hsm/base_hsm/src/slots.rs:114
↓ 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:363
↓ 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
rfc3394_unwrap
(ciphertext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:68
↓ 6 callers
Function
rfc3394_wrap
(plaintext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:35
↓ 6 callers
Function
rsa
(bits: u32)
crate/server/src/tests/kmip_policy/certify.rs:24
↓ 6 callers
Function
rsa_verify
( verification_key: &PKey<Public>, data: &[u8], signature: &[u8], crypto_params: &Cryptographi
crate/crypto/src/crypto/rsa/verify.rs:89
↓ 6 callers
Method
run_atomic
Apply `operations` atomically, retrying the whole batch with fresh baselines whenever a concurrent writer wins a CAS race. `user` is the acting user;
crate/server_database/src/stores/redis/redis_with_findex.rs:508
↓ 6 callers
Function
safeBuildUrl
(s,o,{selectedServer:i=""}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
scheme
(&self, tls: &'a TlsConfig)
crate/server/src/config/command_line/http_config.rs:82
↓ 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
↓ 6 callers
Method
serialize
(&self)
crate/kmip/src/kmip_2_1/extra/bulk_data.rs:31
↓ 6 callers
Method
serialize
(&self, serializer: S)
crate/kmip/src/ttlv/interval.rs:65
↓ 6 callers
Method
session_handle
Get the PKCS#11 session handle
crate/hsm/base_hsm/src/session/session_impl.rs:298
↓ 6 callers
Function
set_attribute
(kms: &Arc<KMS>, uid: &str, attribute: Attribute)
crate/server/src/tests/test_set_attribute.rs:75
↓ 6 callers
Method
set_attribute
( &self, kms_rest_client: &KmsClient, id: &str, attribute: Attribute, )
crate/clients/clap/src/actions/attributes/set.rs:220
↓ 6 callers
Method
sign
This operation requests the server to perform a signature operation on the provided data using a Managed Cryptographic Object as the key for the signa
crate/clients/client/src/kms_rest_client.rs:619
↓ 6 callers
Function
spire_token_middleware
Creates the SPIRE app-token authentication middleware for KMS SPIRE-compatible scopes. Middleware order (last `.wrap()` runs first): - Reads `X-Vault
crate/server/src/middlewares/spire_token.rs:359
↓ 6 callers
Function
start_default_test_kms_server_with_hsm_and_kek
()
crate/test_kms_server/src/test_server.rs:673
↓ 6 callers
Function
start_default_test_kms_server_with_utimaco_hsm
With Utimaco HSM
crate/test_kms_server/src/test_server.rs:460
↓ 6 callers
Function
stateEnumToName
(v: unknown)
ui/src/components/common/Locate.tsx:108
↓ 6 callers
Function
test_app_with_kms
The in-process test application served by an already instantiated KMS.
crate/server/src/tests/test_utils.rs:355
↓ 6 callers
Function
test_db
()
crate/server_database/src/core/database_objects.rs:861
↓ 6 callers
Function
test_private_key_conversion_sec1
(private_key: &PKey<Private>, id: Id, key_size: u32)
crate/crypto/src/openssl/private_key.rs:625
↓ 6 callers
Function
test_secret
()
crate/server_database/src/ceremony_keys.rs:161
↓ 6 callers
Method
toAncestorLineage
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
unwrap_key_handler
( kms: &KMS, key_name: &str, user: &UserId, request: UnwrapKeyRequest, )
crate/server/src/routes/azure_ekm/handlers.rs:415
↓ 6 callers
Function
useBranding
()
ui/src/contexts/useBranding.ts:5
↓ 6 callers
Function
validate_algorithm
( alg: CryptographicAlgorithm, whitelist: Option<&HashSet<CryptographicAlgorithm>>, )
crate/server/src/core/operations/algorithm_policy.rs:937
↓ 6 callers
Method
visit_u32
(self, v: u32)
crate/kmip/src/ttlv/interval.rs:87
↓ 6 callers
Function
writeTempFile
(name: string, content: string | Buffer)
ui/tests/e2e/helpers.ts:482
↓ 6 callers
Function
write_output
Copy `data` into `pb_output/cb_output` and write the actual size to `*pcb_result`. If `pb_output` is null, only fill `*pcb_result`.
crate/clients/cng/src/provider.rs:121
↓ 6 callers
Function
z
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
zeroize
(&mut self)
crate/crypto/src/crypto/secret.rs:72
↓ 5 callers
Function
Ac
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
IndexedSeq
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
Ka
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
KeyedIterable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
Kk
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
Map
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
Pg
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
Tg
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
Yf
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
_defineProperty
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Method
add_vendor_attribute
Add a vendor attribute to the list of vendor attributes.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:548
↓ 5 callers
Function
aes_key
(key_value: &[u8])
crate/kmip/src/ttlv/tests/kmip_2_1_tests.rs:70
↓ 5 callers
Function
alphabet_check
(plaintext: &str, alphabet: &Alphabet, non_alphabet_chars: &str)
crate/crypto/src/crypto/fpe/tests.rs:34
↓ 5 callers
Method
apply_on_date
Applies the selected noise method on a given date string. # Arguments `date_str` - - A date string in the RFC3339 format. # Returns The resulting
crate/crypto/src/crypto/anonymization/noise.rs:265
↓ 5 callers
Function
apply_test_db_override
Override the database backend used by `start_default_test_kms_server` via the `KMS_TEST_DB` environment variable. | `KMS_TEST_DB` value
crate/test_kms_server/src/test_server.rs:204
↓ 5 callers
Function
approle_login
Login to the KMS SPIRE/Vault-compatible API using an `AppRole` identity. Sends `POST {server_url}/v1/auth/approle/login` with a JSON body of `{"role_
crate/clients/client/src/http_client/login.rs:588
↓ 5 callers
Function
assert_destroyed
(cli_conf_path: &str, key_id: &str, _remove: bool)
crate/clients/ckms/src/tests/shared/destroy.rs:53
↓ 5 callers
Function
assert_issued_by
(cert: &X509, ca: &X509)
crate/server/src/tests/enrollment_tests.rs:305
↓ 5 callers
Function
atomic
(db: &DB)
crate/server_database/src/tests/database_tests.rs:113
↓ 5 callers
Function
batch
( major: i32, minor: i32, batch_item: Vec<RequestMessageBatchItemVersioned>, )
crate/server/src/core/operations/message.rs:883
↓ 5 callers
Function
build_ec_ecdh_es_request
Build the JWE flattened-JSON decrypt request body (as `serde_json::Value`) for an EC ECDH-ES sender simulation, and return it alongside the plaintext
crate/server/src/tests/jose/ecdh.rs:100
↓ 5 callers
Function
build_jwe_aad
Construct the JWE AAD bytes per RFC 7516 §5.1 step 14. - No external `aad`: `ASCII(protected_b64)` - With external `aad`: `ASCII(protected_b64 + "."
crate/server/src/routes/jose/encrypt.rs:425
↓ 5 callers
Function
build_rekey_keypair_request
Build a `ReKeyKeyPair` request. To re-key an attribute of a user decryption key, we first need: - the MSK UID - the `CoverCrypt` attributes to revoke
crate/crypto/src/crypto/cover_crypt/kmip_requests.rs:19
↓ 5 callers
Function
build_revoke_key_request
Build a `Revoke` request to revoke the key identified by `unique_identifier`
crate/kmip/src/kmip_2_1/requests/revoke.rs:8
↓ 5 callers
Function
call
(realm: Option<&str>, request: test::TestRequest)
crate/server/src/middlewares/auth_verifier/middleware.rs:153
↓ 5 callers
Function
cert_der_with_serial
Build a minimal self-signed X.509 certificate DER with an explicit serial number.
crate/server_database/src/core/database_objects.rs:1144
↓ 5 callers
Function
certify
Issue an RSA-2048 (FIPS-approved) certificate via KMIP `Certify`.
crate/server/src/tests/test_validate.rs:1302
↓ 5 callers
Function
certify_ml_kem_ca_issued
Issue a certificate with a KEM algorithm using the given CA.
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:139
↓ 5 callers
Function
certs_only_der
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:127
↓ 5 callers
Function
check_ecc_mask_algorithm_compliance
Check that - `algorithm` is among `allowed` algorithms. - `algorithm` is compliant with usage mask provided for private and public key components. Fo
crate/crypto/src/crypto/elliptic_curves/operation.rs:84
↓ 5 callers
Method
check_process_window
Enforce the KMIP process-window constraints. An Active key whose current time is before `ProcessStartDate` or after `ProtectStopDate` is rejected wit
crate/interfaces/src/stores/object_with_metadata.rs:243
↓ 5 callers
Function
ckm_rsa_aes_key_unwrap
Asymmetrically unwrap keys referring to PKCS#11 `CKM_RSA_AES_KEY_WRAP` available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-
crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs:69
↓ 5 callers
Function
cleanup_sealed_files
Removes every `*.corrupt.<ext>` sibling of `path` left behind by a test.
crate/server/src/core/audit/store.rs:825
↓ 5 callers
Method
closeNode
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
cng_key_tag
(name: &str)
crate/clients/cng/src/backend.rs:47
↓ 5 callers
Function
co_grant_access
Helper to grant access (CO operation)
crate/clients/ckms/src/tests/rbac_tests.rs:101
↓ 5 callers
Method
context
(self, context: &str)
crate/clients/pkcs11/provider/src/error/result.rs:14
↓ 5 callers
Function
createNamespace
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
create_ec_key_pair
Create an EC key pair in the KMS with the given curve and name tag. The private key is created with `Sign | DeriveKey | KeyAgreement` usage mask and
crate/clients/cng/src/backend.rs:625
↓ 5 callers
Function
create_fpe_key
Create an FPE key via the CLI and return its unique identifier.
crate/clients/ckms/src/tests/fpe/create_key.rs:11
↓ 5 callers
Function
create_kek_and_target_for_export
(app: &S)
crate/server/src/tests/kmip_policy/e2e_export_wrapping.rs:36
↓ 5 callers
Function
create_rsa_key_pair
Create an RSA key pair via KMIP and return `(private_kid, public_kid)`.
crate/server/src/tests/jose/unwrap.rs:16
↓ 5 callers
Function
create_sym_key
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:227
↓ 5 callers
Function
create_x25519_key_pair
( vendor_id: &str, private_key_uid: &str, public_key_uid: &str, cryptographic_algorithm: &Cryp
crate/crypto/src/crypto/elliptic_curves/operation.rs:297
↓ 5 callers
Function
csr
(key: &PKey<Private>, digest: MessageDigest)
crate/server/src/tests/kmip_policy/certify.rs:13
↓ 5 callers
Function
csr_with_challenge_password
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/csr_attrs.rs:21
← previous
next →
901–1,000 of 12,829, ranked by callers