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
↓ 8 callers
Method
add_attribute
This operation requests the server to add a new attribute instance to be associated with a Managed Object and set its value. The request contains the
crate/server/src/core/kms/kmip.rs:46
↓ 8 callers
Function
assert_constraint_violation
(err: KmsError)
crate/server/src/tests/kmip_policy/helpers.rs:114
↓ 8 callers
Function
assert_key_usage_contains
Assert that the certificate's keyUsage extension contains the given usage string.
crate/test_kms_server/src/certify_tests.rs:165
↓ 8 callers
Function
aws_request
Request with the AWS test-suite `Host` and `X-Amz-Date`, `extra` headers and `authorization`.
crate/server/src/routes/aws_xks/sigv4.rs:379
↓ 8 callers
Function
batch
( major: i32, minor: i32, batch_item: Vec<RequestMessageBatchItemVersioned>, )
crate/server/src/core/operations/message.rs:1806
↓ 8 callers
Function
build_gcm_params
Build a `CK_GCM_PARAMS` for `CKM_AES_GCM` from the given raw `(iv, aad, tag_bits)` fields. The caller must keep the returned value (and the `iv`/`aad`
crate/clients/pkcs11/module/src/core/mechanism.rs:556
↓ 8 callers
Function
caller_gcm_iv_allowed
()
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:596
↓ 8 callers
Function
cfg
()
crate/hsm/softhsm2/src/tests.rs:19
↓ 8 callers
Method
check
Fails with `Constraint Violation` unless an object of `object_type` with `attributes` satisfies at least one constraint (always succeeds when none is
crate/server/src/core/operations/constraints.rs:87
↓ 8 callers
Function
check_rv
(rv: CK_RV, step: &str)
crate/clients/clap/src/actions/pkcs11/verify.rs:877
↓ 8 callers
Function
checked_output_length
Validate a driver's returned length before accepting bytes from an output buffer.
crate/hsm/base_hsm/src/session/session_impl.rs:85
↓ 8 callers
Function
ck_len
Converts a Rust length to the `CK_ULONG` the C API expects.
crate/clients/pkcs11/module/src/utils.rs:20
↓ 8 callers
Function
ck_ulong
Fallible `usize -> CK_ULONG` conversion (mirrors the `pkcs11_verify` convention of never using `as` for length/size conversions across the FFI boundar
crate/clients/clap/src/actions/pkcs11/capabilities.rs:183
↓ 8 callers
Function
ckm_rsa_pkcs_oaep_key_unwrap
Key Unwrap using `CKM_RSA_PKCS_OAEP` a.k.a PKCS #1 RSA OAEP as specified in PKCS#11 v2.40 available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:136
↓ 8 callers
Function
cleanup_temp
(path: &PathBuf)
crate/server/src/config/command_line/clap_config.rs:1021
↓ 8 callers
Function
clients
Two clients sharing one Redis database (and master key), flushed first.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:45
↓ 8 callers
Function
cloneShallow
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
config_only_co_kms
(co_users: Vec<String>)
crate/server/src/tests/key_ceremony_tests.rs:122
↓ 8 callers
Method
connection
(&self)
crate/server_database/src/tests/redis_migration_tests.rs:60
↓ 8 callers
Method
consume
Consume the units of protecting `data_len` bytes from the Count; the Total never changes.
crate/kmip/src/kmip_2_1/kmip_types.rs:2308
↓ 8 callers
Method
context
(self, context: &str)
crate/clients/client/src/error/result.rs:21
↓ 8 callers
Function
createRsaKeyPair
(page: Page)
ui/tests/e2e/helpers.ts:386
↓ 8 callers
Function
create_aes_256_key
Create an AES-256 symmetric key and return its `UniqueIdentifier`.
crate/server/src/tests/ttlv_tests/integrations/vast.rs:76
↓ 8 callers
Function
create_approved_ecc_key_pair
Generate an approved (FIPS 140-3 compliant, where the curve allows) NIST elliptic-curve key pair. In FIPS builds the usage masks and the algorithm are
crate/crypto/src/crypto/elliptic_curves/operation.rs:611
↓ 8 callers
Function
create_mac
Compute a MAC via the CLI. `extra_args` are appended after `["mac", "compute"]`.
crate/clients/ckms/src/tests/mac.rs:48
↓ 8 callers
Function
create_private_file
Create or truncate `file` for writing, readable by its owner only (0600 on Unix), an existing file included. # Errors If the file cannot be created or
crate/clients/client/src/file_utils.rs:108
↓ 8 callers
Method
delete_attribute
This operation requests the server to delete an attribute associated with a Managed Object. The request contains the Unique Identifier of the Managed
crate/server/src/core/kms/kmip.rs:212
↓ 8 callers
Function
derive_key
Run `ckms derive-key` via the CLI and return the derived key unique identifier
crate/clients/ckms/src/tests/derive_key/derive_key_tests.rs:36
↓ 8 callers
Method
deserialize_struct
( self, name: &'static str, fields: &'static [&'static str], visitor: V, )
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:956
↓ 8 callers
Function
destroy_key
(client: &KmsClient, uid: &str)
crate/test_kms_server/src/pgp_tests.rs:39
↓ 8 callers
Method
disable_crypto_officer_ceremony
Disable an active Crypto Officer ceremony (revoke the DB activation record). Two revocation paths: - **Self-revoke** (`target_user = None`): the call
crate/server/src/core/kms/permissions.rs:415
↓ 8 callers
Function
ecies_decrypt
Decrypt `ciphertext` data using `privkey` private key following ECIES. When using Curve25519 (X25519 or Ed25519 which is converted to X25519), `Salsa
crate/crypto/src/crypto/elliptic_curves/ecies/mod.rs:63
↓ 8 callers
Function
encrypt
Encrypts a file using the given public key
crate/clients/ckms/src/tests/rsa/encrypt_decrypt.rs:25
↓ 8 callers
Function
encrypt_inner
( _req_http: HttpRequest, request: EncryptRequest, key_id_or_tags: String, kms: &Arc<KMS>, )
crate/server/src/routes/aws_xks/encrypt_decrypt/encrypt_.rs:206
↓ 8 callers
Function
enforce_kmip_algorithm_policy_for_public_key
Certify: the certified public key must satisfy the active algorithm policy. `attributes_hint` (the KMIP attributes of the key, when it is a KMS object
crate/server/src/core/operations/algorithm_policy.rs:208
↓ 8 callers
Function
es_evaluate
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
export_request
( object_id_or_tags: &str, unwrap: bool, wrapping_key_id: Option<&str>, key_format_type: Optio
crate/clients/client_utils/src/export_utils.rs:258
↓ 8 callers
Function
extractUuidAfterLabel
(text: string, label: string)
ui/tests/e2e/helpers.ts:27
↓ 8 callers
Function
fetch_crl_der
Fetch a CRL (DER format) for the given CA certificate ID.
crate/test_kms_server/src/crl_tests.rs:51
↓ 8 callers
Method
finalize
This function finalizes the login process. It returns the identity provider tokens. This function should be called immediately after the user has bee
crate/clients/client/src/http_client/login.rs:223
↓ 8 callers
Method
find
( &self, _slot_id: usize, _object_filter: HsmObjectFilter, )
crate/server/src/core/operations/certify/hsm_subject_tests.rs:147
↓ 8 callers
Method
get_configured_conn
Helper to obtain a pooled connection and configure session settings consistently - Isolation level: READ COMMITTED (reduces deadlocks vs REPEATABLE RE
crate/server_database/src/stores/sql/mysql.rs:542
↓ 8 callers
Function
get_info
Reads the library info of an already-instantiated HSM.
crate/hsm/base_hsm/src/tests_shared.rs:153
↓ 8 callers
Function
get_supported_algorithms
Lists the algorithms the HSM reports for the configured test slot.
crate/hsm/base_hsm/src/tests_shared.rs:185
↓ 8 callers
Function
hardened_client_builder
Builder of the HTTP clients the KMS uses to call the Auth Verifier and the Vault-style auth backend: redirects are never followed (SSRF) and a stalled
crate/server/src/middlewares/auth_verifier/mod.rs:22
↓ 8 callers
Method
hash
This operation requests the server to perform a hash operation on the data provided. The request contains information about the cryptographic paramet
crate/server/src/core/kms/kmip.rs:371
↓ 8 callers
Method
info
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Method
initialize_always_sensitive
Initialize the server-managed `AlwaysSensitive` attribute at object creation or registration time (KMIP 2.1 §4.3, Table 34). The server SHALL create
crate/kmip/src/kmip_2_1/kmip_attributes.rs:489
↓ 8 callers
Method
initialize_never_extractable
Initialize the `NeverExtractable` attribute at object creation time (KMIP 2.1 §4.33 / KMIP 1.4 §3.51). It is server-managed and set to `True` iff `Ex
crate/kmip/src/kmip_2_1/kmip_attributes.rs:513
↓ 8 callers
Method
invalidate_member
Invalidate every cached entry that may be affected by a local write to `uid`: entries for keyset `rotate_name` (when known) and any entry listing `uid
crate/server_database/src/core/rotate_name_cache.rs:196
↓ 8 callers
Function
isIndexed
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Method
is_crypto_officer
Returns `true` when `user` currently holds the Crypto Officer role. - If `crypto_officer.users` is empty → `false`. - If `user` is not in `crypto_off
crate/server/src/core/kms/permissions.rs:377
↓ 8 callers
Method
iv_generated_by_module
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:393
↓ 8 callers
Function
key
(marker: u8)
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:54
↓ 8 callers
Function
mutate
( req: &AdmissionRequest, state: &WebhookState, )
crate/clients/k8s/operator/src/webhook.rs:159
↓ 8 callers
Method
name
(&self)
crate/clients/clap/src/actions/bench/load.rs:129
↓ 8 callers
Method
next_u32
(&mut self)
crate/crypto/src/crypto/rng/mod.rs:235
↓ 8 callers
Function
objMap
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Method
object_handles_cache
Get the object handles cache
crate/hsm/base_hsm/src/session/session_impl.rs:363
↓ 8 callers
Function
parse_v3_ca_from_str
( conf: &str, x509_context: &X509v3Context, )
crate/crypto/src/openssl/x509_extensions.rs:54
↓ 8 callers
Function
pipe
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
pkcs8_from_rsa_full_private_blob
Parse a `BCRYPT_RSAFULLPRIVATE_BLOB` and encode it as PKCS#8 DER. The CNG blob layout: ```text Header (24 bytes): Magic, BitLength, cbPublicExp, cbMo
crate/clients/cng/src/blob.rs:365
↓ 8 callers
Method
pkcs_der_bytes
Return the PKCS#1 or PKCS#8 or PKCS#12 DER bytes of a key
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:377
↓ 8 callers
Function
placeholder_signing_key
Fresh EC P-256 key used only so OpenSSL can serialise a structure; its signature is always replaced.
crate/server/src/core/certificate/oracle_signing.rs:174
↓ 8 callers
Function
prepare_pg_connection
Turns a libpq-style `PostgreSQL` URL into what tokio-postgres can enforce: the URL (ssl file params stripped, `sslmode` rewritten to one of `disable`/
crate/server_database/src/stores/sql/pgsql.rs:154
↓ 8 callers
Method
print
(&self)
crate/clients/clap/src/actions/tokenize/mod.rs:35
↓ 8 callers
Function
query
This operation is used by the client to interrogate the server to determine its capabilities and/or protocol mechanisms. The Query operation SHOULD be
crate/server/src/core/operations/query.rs:37
↓ 8 callers
Method
raw_do_blobs
(&self)
crate/server_database/src/tests/redis_migration_tests.rs:170
↓ 8 callers
Method
record_kmip_operation
Record a KMIP operation. `outcome` (`"success"` / `"error"`) labels `kms.kmip.operations.total` only, to keep the per-user series count unchanged. `u
crate/server/src/core/otel_metrics.rs:419
↓ 8 callers
Method
register
(s,o=!0)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Method
reject
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Method
remove
Remove an object handle from the cache.
crate/hsm/base_hsm/src/slots.rs:116
↓ 8 callers
Function
resolve_plaintext
Resolve the plaintext for a request: either literal `data_plaintext` or generated via `data_plaintext_generator`.
crate/server/src/tests/jose/jose_vectors.rs:74
↓ 8 callers
Method
restore
(&self, version: &str)
crate/server_database/src/tests/redis_migration_tests.rs:98
↓ 8 callers
Method
restore
(&self, version: &str)
crate/server_database/src/tests/sql_migration_tests.rs:84
↓ 8 callers
Method
retrieve_state
Retrieve state and attributes of an object for cache validation.
crate/server_database/src/core/database_objects.rs:275
↓ 8 callers
Function
revoke_key
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:463
↓ 8 callers
Function
rsa_verify
( verification_key: &PKey<Public>, data: &[u8], signature: &[u8], crypto_params: &Cryptographi
crate/crypto/src/crypto/rsa/verify.rs:89
↓ 8 callers
Method
scheme
(&self, tls: &'a TlsConfig)
crate/server/src/config/command_line/http_config.rs:91
↓ 8 callers
Method
serialize_field
(&mut self, value: &T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:694
↓ 8 callers
Function
setup_openssl_fips_provider
Helper to load FIPS provider before each test (if needed)
crate/crypto/src/crypto/symmetric/rfc5649.rs:126
↓ 8 callers
Function
sign
(key: &TestKey, kid: &str, alg: Algorithm, claims: &Value)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:712
↓ 8 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:620
↓ 8 callers
Function
start_default_test_kms_server_with_hsm_and_kek
With HSM + KEK # Panics - if `HSM_SLOT_ID` is not set - if the `workspace_dir` does not exist - if the `kek_id` is empty
crate/test_kms_server/src/test_server.rs:727
↓ 8 callers
Function
start_server_from_config
Start a server from a pre-loaded (and optionally patched) [`ClapConfig`]. Returns a boxed future rather than being declared `async fn`: this function
crate/test_kms_server/src/test_server.rs:1481
↓ 8 callers
Function
store
(mock: MockHsm)
crate/interfaces/src/hsm/hsm_store.rs:3660
↓ 8 callers
Function
test_app_with_kms
The in-process test application served by an already instantiated KMS.
crate/server/src/tests/test_utils.rs:478
↓ 8 callers
Function
test_key
()
crate/server_database/src/core/database_objects.rs:1148
↓ 8 callers
Function
test_metadata
(id: &str, tags: HashSet<String>)
crate/interfaces/src/hsm/hsm_store.rs:2338
↓ 8 callers
Method
to_cryptographic_parameters
(self, hash_fn: HashFn)
crate/clients/client_utils/src/rsa_utils.rs:22
↓ 8 callers
Method
to_security_status
(&self)
crate/clients/cng/src/error.rs:75
↓ 8 callers
Function
token_from_response
Checks a `TimeStampResp` against the `TimeStampReq` it answers (status, version, imprint, nonce) and returns the DER `TimeStampToken`. The token signa
crate/crypto/src/openssl/tsa.rs:201
↓ 8 callers
Method
track
(&mut self, id: impl Into<String>)
crate/test_kms_server/src/certify_tests.rs:35
↓ 8 callers
Function
unwrap_key_handler
( kms: &KMS, key_name: &str, user: &UserId, request: UnwrapKeyRequest, )
crate/server/src/routes/azure_ekm/handlers.rs:462
↓ 8 callers
Function
unwrap_object
Unwrap a caller-supplied Object (e.g. `Import` with `KeyWrapType::NotWrapped`). The ciphertext is attacker-controlled, so the caller must be allowed
crate/server/src/core/wrapping/unwrap.rs:50
↓ 8 callers
Function
uriToPointer
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
useIsExpanded
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
useIsExpandedDeeply
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callers
Function
wrap
( app: &impl Service<Request, Response = ServiceResponse<BoxBody>, Error = actix_web::Error>, key: &st
crate/server/src/tests/azure_ekm/routes_tests.rs:139
↓ 8 callers
Function
xor_split
Split `secret` into `total_parts` shares using XOR (*n*-of-*n* scheme). All `total_parts` shares are required to reconstruct the secret. The first `t
crate/crypto/src/crypto/split_key/mod.rs:32
← previous
next →
801–900 of 16,000, ranked by callers