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
↓ 20 callers
Function
create_rsa_key_pair
( cli_conf_path: &str, options: &RsaKeyPairOptions, )
crate/clients/ckms/src/tests/rsa/create_key_pair.rs:24
↓ 20 callers
Function
downloadFile
(data: string | Uint8Array, filename: string, mimeType: string)
ui/src/utils/utils.ts:257
↓ 20 callers
Method
encrypt
This operation requests the server to perform an encryption operation on the provided data using a Managed Cryptographic Object as the key for the enc
crate/server/src/core/kms/kmip.rs:288
↓ 20 callers
Function
f
(o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Method
format
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Function
is_fips_build
()
crate/crypto/src/crypto/mod.rs:16
↓ 20 callers
Method
merge
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Method
message
( &self, request: cosmian_kms_server_database::reexport::cosmian_kmip::kmip_0::kmip_messages::
crate/server/src/core/kms/kmip.rs:603
↓ 20 callers
Method
post_no_ttlv
POST `data` as JSON. Request and response bodies may carry secrets (e.g. KV values), so they are never logged.
crate/clients/client/src/kms_rest_client.rs:977
↓ 20 callers
Method
resolve
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Function
run_auto_rotation
Rotate all keys that are past their scheduled rotation time. Queries the database for Active keys whose `rotate_interval` has elapsed since their las
crate/server/src/core/operations/auto_rotate.rs:53
↓ 20 callers
Method
send_raw_request
Send a KMIP request to the server and return the response
crate/server/src/tests/ttlv_tests/socket_client.rs:166
↓ 20 callers
Method
sign
Sign data using the specified key and algorithm
crate/hsm/base_hsm/src/session/session_impl.rs:1853
↓ 20 callers
Method
slug
Filename-safe slug for output files (e.g. `"benchmarks_kmip-json.json"`).
crate/clients/clap/src/actions/bench/types.rs:141
↓ 20 callers
Method
store
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Function
uid
(id: &str)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:521
↓ 20 callers
Method
verify
Verify `signature` over the provided data (or accumulated `C_VerifyUpdate` payload if data is not provided). A cryptographically invalid signature sur
crate/clients/pkcs11/module/src/sessions.rs:887
↓ 19 callers
Function
app
()
crate/server/src/tests/google_cse/crypto_paths.rs:38
↓ 19 callers
Method
as_str
(&self)
crate/interfaces/src/user_id.rs:44
↓ 19 callers
Method
cleanup
(&self, client: &KmsClient)
crate/test_kms_server/src/crl_tests.rs:106
↓ 19 callers
Function
delete_key
(key_uid: &str, owner: &str, kms: &Arc<KMS>)
crate/server/src/tests/hsm/mod.rs:424
↓ 19 callers
Function
enforce_kmip_algorithm_policy_for_request
Request-time algorithm policy for an already-deserialized request (batched `RequestMessage` items and the TTLV path after deserialization).
crate/server/src/core/operations/algorithm_policy.rs:105
↓ 19 callers
Method
enqueue
Enqueues one or more draft events for writing. Non-blocking: if the channel is full an event is dropped and the `dropped_count` counter is incremente
crate/server/src/core/audit/store.rs:266
↓ 19 callers
Method
events_page
Fetches up to one page of events for `(instance_id, generation)` with `id > after_id`, in ascending order. Returns an empty `Vec` once the generation
crate/server_database/src/stores/audit/pgsql.rs:952
↓ 19 callers
Method
fetch_element
Fetch the element that will be deserialized next Updates the `at_root` status if the deserializer is at the root
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:110
↓ 19 callers
Method
keys
(&self)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:81
↓ 19 callers
Function
none_if_empty
Converts an `Option<String>` containing an empty or whitespace-only value to `None`. This guards against UI form fields that produce `""` when cleare
crate/clients/wasm/src/wasm.rs:111
↓ 19 callers
Function
params_with
( digital_signature_algorithm: Option<DigitalSignatureAlgorithm>, cryptographic_algorithm: Opt
crate/interfaces/src/crypto_oracle.rs:883
↓ 19 callers
Method
private_key
(&self)
crate/crypto/src/crypto/mod.rs:83
↓ 19 callers
Function
random_nonce
Generate a random nonce for the given symmetric cipher.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:576
↓ 19 callers
Function
reason
(code: RevocationReasonCode, message: Option<&str>)
crate/server/src/core/lint_cleanup_characterization_tests.rs:44
↓ 19 callers
Method
rsa
( key_size: i32, modulus_base64url: String, exponent_base64url: String, )
crate/server/src/routes/azure_ekm/models.rs:53
↓ 19 callers
Function
submitAndWaitForDownload
( page: Page, timeoutMs: number = UI_RESPONSE_TIMEOUT, )
ui/tests/e2e/helpers.ts:92
↓ 19 callers
Function
temp_path
(label: &str)
crate/clients/clap/src/actions/audit.rs:1172
↓ 19 callers
Function
verify_action
(path: PathBuf)
crate/clients/clap/src/actions/audit.rs:1210
↓ 18 callers
Method
atomic
Perform an atomic set of operations on the database. This function executes a series of operations (typically in a transaction) atomically. It assume
crate/server_database/src/core/database_objects.rs:941
↓ 18 callers
Function
audit_now
()
crate/access/src/audit/event.rs:184
↓ 18 callers
Function
auth_verifier_token
An Auth Verifier-shaped JWT; signatures are not checked in test builds.
crate/server/src/middlewares/auth_verifier/token.rs:359
↓ 18 callers
Method
bootstrap
Validate the recorded version before DDL, then keep the lock through the final ready stamp.
crate/server_database/src/stores/migrate.rs:377
↓ 18 callers
Function
build_certify_request
Build a KMIP `Certify` request. # Errors Returns an error if the number of days is out of range, if a subject name cannot be parsed, or if the tags o
crate/clients/client_utils/src/certificate_utils.rs:178
↓ 18 callers
Function
create_ca
Create a self-signed CA keypair + certificate using `build_certify_request` with `generate_key_pair = true` and no issuer.
crate/test_kms_server/src/certify_tests.rs:68
↓ 18 callers
Function
create_gpg_home
()
crate/test_kms_server/src/pgp_gnupg_tests.rs:82
↓ 18 callers
Method
encrypt
Encrypt data using the specified key and algorithm
crate/hsm/base_hsm/src/session/session_impl.rs:1233
↓ 18 callers
Function
encrypt_request
( key_id: UniqueIdentifier, block_cipher_mode: BlockCipherMode, data: Vec<u8>, )
crate/server/src/tests/bulk_encrypt_decrypt_tests.rs:167
↓ 18 callers
Function
est_enroll
( app: &S, csr: &X509Req, auth: Option<(&str, String)>, )
crate/server/src/tests/enrollment_tests.rs:403
↓ 18 callers
Function
export_object
Export an Object from the KMS # Arguments `kms_rest_client` - The KMS client connector `object_id_or_tags` - The KMS object id or tags `params` - Exp
crate/clients/client/src/export_utils.rs:64
↓ 18 callers
Method
find
( &self, _: Option<&Attributes>, _: Option<State>, _: &UserId,
crate/server/src/core/operations/locate.rs:340
↓ 18 callers
Function
generate_crl_der
Call `generate_crl` and return the DER bytes.
crate/server/src/tests/crl_tests.rs:213
↓ 18 callers
Method
get_object_handle
Retrieve the object handle for a given object ID from the HSM. This function attempts to locate the handle of an object (such as a key) in the HSM by
crate/hsm/base_hsm/src/session/session_impl.rs:592
↓ 18 callers
Function
gpg_bin
()
crate/test_kms_server/src/pgp_gnupg_tests.rs:33
↓ 18 callers
Function
j
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 18 callers
Function
make_event
(id: i64, prev_hash: [u8; 32])
crate/server_database/src/stores/audit/pgsql.rs:1005
↓ 18 callers
Function
parse_uid_with_prefix
Parse the `uid` into a `(slot_id, key_id)` pair, stripping the given prefix.
crate/interfaces/src/hsm/hsm_store.rs:1863
↓ 18 callers
Function
perform_crypto_officer_ceremony_activation
Activate the Crypto Officer role via a split-key ceremony. Validates and processes the ceremony activation: - Retrieves and validates all shares. - V
crate/server/src/core/operations/join_split_key.rs:522
↓ 18 callers
Method
prompt_err
(self)
crate/server/src/config/wizard/mod.rs:68
↓ 18 callers
Function
resolve
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 18 callers
Method
retrieve
(&self, uid: &str)
crate/server_database/src/stores/sql/mysql.rs:742
↓ 18 callers
Function
revoke
( kms: &KMS, user: &UserId, uid: &str, reason: RevocationReason, compromise_occurrence_dat
crate/server/src/core/lint_cleanup_characterization_tests.rs:92
↓ 18 callers
Function
run_gpg
Runs gpg inside an isolated, 0700 temp GNUPGHOME with `--batch --yes --no-tty --pinentry-mode loopback --passphrase ""`.
crate/test_kms_server/src/pgp_gnupg_tests.rs:47
↓ 18 callers
Method
set_cookie
`Set-Cookie` value carrying `session` in a new session, valid for 24 hours.
crate/server/src/middlewares/ui_session.rs:148
↓ 18 callers
Method
signature_verify
This operation requests the server to perform a signature verify operation on the provided data using a Managed Cryptographic Object as the key for th
crate/server/src/core/kms/kmip.rs:750
↓ 18 callers
Function
start_test_server_with_patch
Start a test server from a TOML config file, applying a runtime patch to the config. Use this when you need to inject runtime-determined values (e.g.
crate/test_kms_server/src/test_server.rs:1603
↓ 18 callers
Function
test_app_with_clap_config
( clap_config: ClapConfig, )
crate/server/src/tests/test_utils.rs:430
↓ 18 callers
Method
with_session
Run `f` on a pooled session of `slot_id` inside `spawn_blocking`. The session is checked back in only when `f` succeeds; on error the guard is droppe
crate/hsm/base_hsm/src/kms_hsm.rs:160
↓ 17 callers
Function
decrypt_request
( algorithm: &str, encrypted_data_encryption_key: String, wrapped_private_key: String, )
crate/server/src/tests/google_cse/crypto_paths.rs:368
↓ 17 callers
Method
effective_state
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:151
↓ 17 callers
Method
encrypt
( &'a self, _slot_id: usize, key_id: &'a [u8], _algorithm: CryptoAlgorithm,
crate/server/src/tests/hsm/fake_hsm_authz.rs:209
↓ 17 callers
Function
export_object
(kms: &Arc<KMS>, owner: &str, object_id: &str)
crate/server/src/tests/hsm/mod.rs:411
↓ 17 callers
Method
find
( &self, _slot_id: usize, _object_filter: HsmObjectFilter, )
crate/server/src/tests/hsm/fake_hsm_authz.rs:201
↓ 17 callers
Function
get_json_with_uri
(app: &S, uri: &str)
crate/server/src/tests/test_utils.rs:822
↓ 17 callers
Function
get_vendor_id
Returns the currently configured vendor identification string.
crate/clients/wasm/src/wasm.rs:103
↓ 17 callers
Method
grant_access
Grant access to a user (identified by `access.userid`) to an object (identified by `access.unique_identifier`) which is owned by `owner` (identified b
crate/server/src/core/kms/permissions.rs:59
↓ 17 callers
Function
grant_ops
Helper: grant operations on an HSM key
crate/server/src/tests/hsm/permissions.rs:62
↓ 17 callers
Method
hsm_capabilities
Get the HSM vendor capability flags (e.g. attribute quirks, size limits).
crate/hsm/base_hsm/src/session/session_impl.rs:353
↓ 17 callers
Function
init_openssl_providers_for_tests
()
crate/server/src/openssl_providers.rs:322
↓ 17 callers
Function
initialize_backend
()
crate/clients/pkcs11/provider/src/tests.rs:98
↓ 17 callers
Function
invalid
(msg: impl Into<String>)
crate/server/src/core/operations/certify/template.rs:113
↓ 17 callers
Method
parse
(additional_data: Option<&[u8]>)
crate/crypto/src/crypto/fpe/kmip_fpe.rs:45
↓ 17 callers
Method
position
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 17 callers
Function
read_events
(path: &Path)
crate/server/src/core/audit/store.rs:443
↓ 17 callers
Method
rekey_keypair
This request is used to generate a replacement key pair for an existing public/private key pair. It is analogous to the Create Key Pair operation, ex
crate/server/src/core/kms/kmip.rs:655
↓ 17 callers
Method
retrieve_tags
(&self, _: &str)
crate/server/src/core/operations/locate.rs:303
↓ 17 callers
Function
stub
()
crate/server/src/core/lint_cleanup_characterization_tests.rs:508
↓ 17 callers
Function
to_wide
(s: &str)
crate/clients/clap/src/actions/cng_verify.rs:63
↓ 17 callers
Function
validating_app
( rsa: &Rsa<Private>, )
crate/server/src/tests/google_cse/token_validation.rs:124
↓ 16 callers
Function
Db
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 16 callers
Function
assert_failed
Assert a failed reply (any non-200 status) whose `details` contain `details_contain`.
crate/server/src/tests/google_cse/crypto_paths.rs:63
↓ 16 callers
Function
build
(password: Option<&str>)
crate/crypto/src/openssl/csr_attrs.rs:94
↓ 16 callers
Function
bulk
(chunks: &[&[u8]])
crate/clients/client/src/file_utils.rs:369
↓ 16 callers
Method
copy_wrapping_key_link_to
Copy the wrapping key link from this object to `new_attrs`. If this object was wrapped, its wrapping key UID is preserved as a `LinkType::WrappingKey
crate/kmip/src/kmip_2_1/kmip_objects.rs:497
↓ 16 callers
Function
create_user_decryption_key
( cli_conf_path: &str, master_secret_key_id: &str, access_policy: &str, tags: &[&str], sen
crate/clients/ckms/src/tests/cover_crypt/user_decryption_keys.rs:13
↓ 16 callers
Function
criterion_home
()
crate/clients/clap/src/actions/bench/output.rs:86
↓ 16 callers
Function
fetch_pqc_certificate
Export a PQC certificate and parse it with `x509_parser`. Returns (Object, Attributes, DER bytes).
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:36
↓ 16 callers
Method
generate_rsa_key_pair
Generate RSA key pair and return the private and public key handles in this order If exportable is set to `false`, the `sensitive` flag is set to tru
crate/hsm/base_hsm/src/session/rsa.rs:42
↓ 16 callers
Method
hasKey
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 16 callers
Method
method
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 16 callers
Method
object_mut
Return a mutable borrow to the Object Do not use this to set a new object or make sure you clear the cached unwrapped object
crate/interfaces/src/stores/object_with_metadata.rs:81
↓ 16 callers
Function
request
(function: QueryFunction)
crate/server/src/core/operations/query.rs:210
↓ 16 callers
Function
sanitizeUrl
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 16 callers
Function
selectOption
(page: Page, selectTestId: string, optionText: string)
ui/tests/e2e/helpers.ts:110
← previous
next →
301–400 of 16,000, ranked by callers