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
↓ 10 callers
Function
wrap_key_handler
( kms: &KMS, key_name: &str, user: &UserId, request: WrapKeyRequest, )
crate/server/src/routes/azure_ekm/handlers.rs:296
↓ 10 callers
Function
wrap_request
(authentication: String, authorization: String)
crate/server/src/tests/google_cse/token_validation.rs:135
↓ 9 callers
Function
Bg
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callers
Function
Uh
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callers
Function
activate_key
Activate `key_id` via KMIP 1.4.
crate/server/src/tests/ttlv_tests/integrations/vast.rs:133
↓ 9 callers
Function
aes_cbc_multi_round
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:978
↓ 9 callers
Function
aes_gcm_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:668
↓ 9 callers
Method
apply_on_float
Adds noise generated from a chosen distribution to the input data. # Arguments `data` - A single float value to which noise will be added. # Return
crate/crypto/src/crypto/anonymization/noise.rs:230
↓ 9 callers
Function
assert_err
((status, body): (StatusCode, Value), expected: StatusCode, code: &str)
crate/server/src/tests/azure_ekm/routes_tests.rs:127
↓ 9 callers
Function
assert_stored_wrapped_by_kek
Assert that `uid` is stored wrapped by `kek_id`: the object is wrapped and its stored attributes carry the Wrapping Key Link.
crate/server/src/tests/test_utils.rs:105
↓ 9 callers
Function
audit_pg_url
()
crate/clients/clap/src/actions/audit.rs:2047
↓ 9 callers
Function
authorization
(signed_headers: &str, signature: &str)
crate/server/src/routes/aws_xks/sigv4.rs:371
↓ 9 callers
Function
bench_filter_matches
Check whether an algorithm and key size matches the active benchmark filter.
crate/clients/clap/src/actions/bench/transport.rs:57
↓ 9 callers
Function
build_create_configurable_kem_keypair_request
Build a configurable KEM `CreateKeyPair`.
crate/clients/client_utils/src/configurable_kem_utils.rs:68
↓ 9 callers
Function
build_crl
( issuer_cert: &X509Ref, issuer_key: &PKeyRef<Private>, revoked_entries: &[RevokedEntry], crl_
crate/crypto/src/openssl/crl.rs:85
↓ 9 callers
Function
build_jwks_manager_with_key
Build a `JwksManager` pre-loaded with a single RSA public key (no HTTP fetch).
crate/server/src/tests/google_cse/utils.rs:59
↓ 9 callers
Function
build_patches
( pod: &Value, state: &WebhookState, secret_uids_raw: &str, secrets_dir: &str, )
crate/clients/k8s/operator/src/webhook.rs:231
↓ 9 callers
Function
call
Call one transit route as `user` (injected as the authenticated identity).
crate/server/src/routes/spire/transit_encryption.rs:643
↓ 9 callers
Function
compile_fixture
Compiles `tests/fixtures/<source_file>` into a uniquely named shared library. `extra_args` are passed to the compiler verbatim (e.g. `-DWITH_MESSAGE_S
crate/hsm/base_hsm/src/test_fixtures.rs:67
↓ 9 callers
Function
concurrent_sign_does_not_degrade
Assert that concurrent HSM signing does not experience throughput collapse under concurrency (8 threads vs 1 thread).
crate/hsm/base_hsm/src/tests_shared.rs:1841
↓ 9 callers
Method
context
(self, context: &str)
crate/kmip/src/error/result.rs:24
↓ 9 callers
Method
context
(self, context: &str)
crate/server_database/src/error/result.rs:19
↓ 9 callers
Function
counts
(library: &Library)
crate/hsm/base_hsm/src/session/message_signature_tests.rs:68
↓ 9 callers
Function
create_aes_key
Helper: create a symmetric AES-256 key for encryption tests
crate/server/src/tests/security_regression.rs:25
↓ 9 callers
Function
create_secret_data
( cli_conf_path: &str, action: &CreateSecretDataAction, )
crate/clients/ckms/src/tests/secret_data/create_secret.rs:16
↓ 9 callers
Method
cryptographic_algorithm
(&self)
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:619
↓ 9 callers
Function
cse_response
Turn a CSE operation result into a JSON 200 response or a structured CSE error reply.
crate/server/src/routes/google_cse/mod.rs:130
↓ 9 callers
Function
decrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/rsa/encrypt_decrypt.rs:76
↓ 9 callers
Method
delete
(&self, uid: &str)
crate/server_database/src/stores/redis/redis_with_findex.rs:1222
↓ 9 callers
Function
delete_key
Delete a key via `DELETE /v1/crypto/keys/{kid}`.
crate/server/src/tests/jose/jose_vectors.rs:119
↓ 9 callers
Function
describe
(reason: unknown)
ui/src/actions/Objects/ServerHealth.tsx:77
↓ 9 callers
Method
deserialize_any
(self, visitor: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:145
↓ 9 callers
Method
destroy
This operation is used to indicate to the server that the key material for the specified Managed Object SHALL be destroyed or rendered inaccessible. T
crate/clients/client/src/kms_rest_client.rs:272
↓ 9 callers
Function
destroy_key
Destroy `key_id` for cleanup (key must already be `Deactivated` or `PreActive`).
crate/server/src/tests/ttlv_tests/integrations/vast.rs:282
↓ 9 callers
Method
destroy_object
Destroy an object in the HSM
crate/hsm/base_hsm/src/session/session_impl.rs:842
↓ 9 callers
Function
enforce_kmip_algorithm_policy_for_retrieved_key
Policy check for a stored key before it is used. Attributes are the fast path. When one is missing, the `KeyBlock` algorithm and length (set from the
crate/server/src/core/operations/algorithm_policy.rs:424
↓ 9 callers
Function
expand_bench_mode
( mode: BenchMode, filter: Option<&BenchFilter>, )
crate/clients/clap/src/actions/pkcs11/bench/load.rs:157
↓ 9 callers
Method
find_due_for_rotation
( &self, _: OffsetDateTime, )
crate/server/src/core/operations/locate.rs:385
↓ 9 callers
Function
fixture_gcm_frame
(plaintext: &[u8])
crate/hsm/base_hsm/src/session/session_impl.rs:4686
↓ 9 callers
Method
generate_aes_key
Generate an AES key If exportable is set to `false`, the `sensitive` flag is set to true, and the key will not be exportable.
crate/hsm/base_hsm/src/session/aes.rs:87
↓ 9 callers
Method
get
(&self, label: &str)
crate/clients/clap/src/actions/pkcs11/capabilities.rs:1161
↓ 9 callers
Method
get_supported_mechanisms
Retrieve the list of supported cryptographic mechanisms for this HSM slot. This function queries the HSM to determine which mechanisms (such as AES,
crate/hsm/base_hsm/src/slots.rs:289
↓ 9 callers
Function
header_test_setup
Build a `JwtConfig` + RSA key pair + valid claims for the decode-path tests below.
crate/server/src/routes/google_cse/jwt.rs:929
↓ 9 callers
Function
import_google_cse_symmetric_key_with_access
(app: &S)
crate/server/src/tests/google_cse/mod.rs:118
↓ 9 callers
Function
import_root_and_intermediate
( owner_client_conf_path: &str, )
crate/clients/ckms/src/tests/certificates/certify.rs:140
↓ 9 callers
Function
invalid_request
()
crate/server/src/tests/google_cse/crypto_paths.rs:58
↓ 9 callers
Function
isJSONReferenceLikeElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callers
Method
issue
Issue a ticket to `user`, valid for `lease` (0 = default, capped) and `remaining` requests (`None` = unlimited).
crate/server/src/core/operations/login.rs:116
↓ 9 callers
Method
items
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callers
Function
join_shares
Reconstruct from the given share UIDs; return the reconstructed key UID.
crate/server/src/tests/key_ceremony_tests.rs:169
↓ 9 callers
Method
key_material
(&self)
crate/interfaces/src/hsm/interface.rs:280
↓ 9 callers
Function
kmip12
()
crate/server/src/tests/ttlv_tests/integrations/synology_dsm.rs:100
↓ 9 callers
Method
list_uids_for_tags
( &self, _: &HashSet<String>, )
crate/server/src/core/operations/locate.rs:333
↓ 9 callers
Function
load_test_config_from_toml
( config_path: &Path, )
crate/test_kms_server/src/test_server.rs:1403
↓ 9 callers
Function
locate
( kms: &KMS, request: Locate, state: Option<State>, user: &UserId, )
crate/server/src/core/operations/locate.rs:35
↓ 9 callers
Function
make_key_pair
A non-sensitive RSA key pair in the database; returns `(private key id, public key id)`.
crate/server/src/tests/sub_ca_tests.rs:107
↓ 9 callers
Function
make_request
Helper: build a minimal `ServiceRequest` with a given peer address and optional `X-Forwarded-For` header. Uses `actix_web::test::TestRequest`.
crate/server/src/middlewares/audit/client_ip.rs:101
↓ 9 callers
Function
metadata
( app: &impl Service<Request, Response = ServiceResponse<BoxBody>, Error = actix_web::Error>, key: &st
crate/server/src/tests/azure_ekm/routes_tests.rs:132
↓ 9 callers
Function
nid_of
(oid: &str)
crate/crypto/src/openssl/oid.rs:22
↓ 9 callers
Method
nonce_size
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:324
↓ 9 callers
Method
not_after
(&self)
crate/server/src/core/operations/certify/issuer.rs:67
↓ 9 callers
Function
not_supported
()
crate/server/src/tests/hsm/fake_hsm_authz.rs:135
↓ 9 callers
Method
object_type
(&self)
crate/clients/pkcs11/module/src/core/object.rs:65
↓ 9 callers
Method
open
( &self, clear_database: bool, target: &str, )
crate/server_database/src/tests/redis_migration_tests.rs:78
↓ 9 callers
Method
open
( &self, clear_database: bool, max_connections: Option<u32>, target: &str,
crate/server_database/src/tests/sql_migration_tests.rs:153
↓ 9 callers
Function
openpgp_encrypt
Binary `OpenPGP` message (PKESK + SEIPD) encrypted to the key's encryption-capable subkey. Accepts a secret or public armored certificate. Only subkey
crate/crypto/src/crypto/openpgp/mod.rs:692
↓ 9 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:157
↓ 9 callers
Function
pg_get_client
Get a client from the pool, retrying on transient connection errors. Used by Migrate trait methods for startup resilience.
crate/server_database/src/stores/sql/pgsql.rs:201
↓ 9 callers
Function
pgp_create_request
(alg: CryptographicAlgorithm, bits: Option<i32>)
crate/test_kms_server/src/pgp_tests.rs:19
↓ 9 callers
Function
prepare_post_params
( info_msg: &str, request: Json<T>, cse_config: Data<Option<GoogleCseConfig>>, )
crate/server/src/routes/google_cse/mod.rs:114
↓ 9 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:1091
↓ 9 callers
Function
provision_key
Provision a key using `POST /v1/crypto/keys` and return `(kid, kid_public)`. Both key generation (no material) and key import (material present via `
crate/server/src/tests/jose/jose_vectors.rs:103
↓ 9 callers
Function
provision_xks_key
Provision an XKS key through the public `create_key` path with the given caller ARN.
crate/server/src/routes/aws_xks/tests.rs:143
↓ 9 callers
Method
public_key
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:75
↓ 9 callers
Method
remote_sign
( &self, remote_id: &str, algorithm: &SignatureAlgorithm, data: &[u8],
crate/clients/pkcs11/provider/src/backend.rs:675
↓ 9 callers
Method
remove
Remove a permission to the user on an object
crate/server_database/src/stores/redis/permissions.rs:261
↓ 9 callers
Method
remove_link
Remove the link from the attributes
crate/kmip/src/kmip_2_1/kmip_attributes.rs:671
↓ 9 callers
Function
rsa_oaep_encrypt
(slot: &Arc<SlotManager>, digest: RsaOaepDigest)
crate/hsm/base_hsm/src/tests_shared.rs:614
↓ 9 callers
Function
rsa_pkcs_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:573
↓ 9 callers
Function
saml_runtime
(saml_realm: Option<&str>)
crate/server/src/routes/ui_auth.rs:989
↓ 9 callers
Method
serialize
(&self)
crate/kmip/src/kmip_2_1/extra/bulk_data.rs:36
↓ 9 callers
Method
serialize_struct
(self, name: &'static str, len: usize)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:563
↓ 9 callers
Function
set
(uid: &str, new_attribute: Attribute)
crate/server/src/core/operations/batch_undo.rs:465
↓ 9 callers
Method
setup_with_lifecycle
( &mut self, object_type: ObjectType, requested_activation_date: Option<OffsetDateTime
crate/server/src/core/operations/key_ops/crypto_op.rs:89
↓ 9 callers
Function
sha256_file
Streams `path` through SHA-256 in fixed-size chunks (no full-file load) and returns `(lowercase hex digest, file size in bytes)`. Shared by the serve
crate/access/src/audit/file_hash.rs:22
↓ 9 callers
Function
test_app_with_audit
Creates a test application that records every KMIP request to an audit file. Pass `AuditStore::start(path, 128)` for normal operation or `AuditStore:
crate/server/src/tests/test_utils.rs:568
↓ 9 callers
Function
test_object
()
crate/server/src/core/operations/key_ops/crypto_op.rs:1181
↓ 9 callers
Method
toBaseURI
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callers
Method
tokenize
(&self, method: &str, request: &O)
crate/clients/client/src/kms_rest_client.rs:848
↓ 9 callers
Method
track
(&mut self, id: impl Into<String>)
crate/test_kms_server/src/crl_tests.rs:102
↓ 9 callers
Function
uploadFile
(page: Page, filePath: string)
ui/tests/e2e/helpers.ts:465
↓ 9 callers
Method
user_can_perform_operation
Check whether `user` is allowed to perform `operation` on this object. Returns `true` if the user is the owner or has been explicitly granted the req
crate/server/src/core/kms/permissions.rs:307
↓ 9 callers
Function
vector_stem
File stem of a vector path.
crate/clients/clap/src/tests/xml/runner.rs:30
↓ 9 callers
Function
visitor_visit
(s,o,{keyMap:i=Qu,...u}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callers
Function
wide_ptr_to_string
Decode a null-terminated UTF-16 wide string from a raw pointer. Enforces a maximum length of 32KB to prevent unbounded reads of malformed pointers.
crate/clients/cng/src/provider.rs:159
↓ 9 callers
Function
write_bulk_decrypted_data
Write bulk decrypted data Bulk data is compound of multiple chunks of data. Sizes are written using LEB-128 serialization. Each chunk of plaintext d
crate/clients/client/src/file_utils.rs:249
↓ 9 callers
Function
write_bulk_encrypted_data
Write bulk encrypted data Bulk data is compound of multiple chunks of data. Sizes are written using LEB-128 serialization. Each chunk of data: - is
crate/clients/client/src/file_utils.rs:309
↓ 9 callers
Function
write_private_bytes_to_file
Write `bytes` to `file`, readable by its owner only (see [`create_private_file`]). # Errors If the file cannot be created or written, an error is retu
crate/clients/client/src/file_utils.rs:124
↓ 8 callers
Function
Zf
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
accept
Full SVID acceptance decision: signature/issuer/audience/expiry, then the SPIFFE-specific subject and audience requirements.
crate/server/src/middlewares/jwt/jwt_token_auth.rs:720
← previous
next →
701–800 of 16,000, ranked by callers