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
↓ 5 callers
Method
current_tag
Get the current tag
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:100
↓ 5 callers
Function
curve_der_oid
(curve: EcCurve)
crate/hsm/base_hsm/src/session/ec.rs:28
↓ 5 callers
Function
decodeURI
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
decrypt_inner
( _req_http: HttpRequest, request: DecryptRequest, key_id_or_tags: String, kms: &Arc<KMS>, )
crate/server/src/routes/aws_xks/encrypt_decrypt/decrypt_.rs:169
↓ 5 callers
Function
default_path_exists
()
crate/server/src/config/command_line/clap_config.rs:990
↓ 5 callers
Function
der_error
(what: &str, e: impl std::fmt::Display)
crate/server/src/core/certificate/oracle_signing.rs:279
↓ 5 callers
Method
deserialize_i32
(self, visitor: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/offset_date_time_deserializer.rs:77
↓ 5 callers
Function
destroy
Destroy a cryptographic object on the KMS # Arguments `kms_rest_client` - The KMS client `uid` - The object id `remove` - If the object should be remo
crate/clients/clap/src/actions/shared/utils/destroy_utils.rs:68
↓ 5 callers
Function
destroy_created_since
Destroy the objects these tests created on the slot since the `before` snapshot of [`object_handles`]: new objects whose id (`Session::get_object_id`:
crate/hsm/base_hsm/src/tests_shared.rs:242
↓ 5 callers
Function
dispatchPluginsSync
(s,o,i={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
e
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 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
↓ 5 callers
Function
encrypt_dek
Encrypt `DEK` with the public part of `rsa`, the way a Google client does.
crate/server/src/tests/google_cse/crypto_paths.rs:343
↓ 5 callers
Method
encrypt_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, data: &[u
crate/hsm/base_hsm/src/session/session_impl.rs:1674
↓ 5 callers
Method
end_message_context
Closes the family's open context, if any. A failing final is only logged: the next init surfaces a truly stuck operation as `CKR_OPERATION_ACTIVE`.
crate/hsm/base_hsm/src/session/message_context.rs:170
↓ 5 callers
Method
end_message_operations
Closes both message contexts; no FFI call when nothing is open.
crate/hsm/base_hsm/src/session/message_context.rs:197
↓ 5 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:104
↓ 5 callers
Function
enroll_device
Enroll a device through SCEP and return its key and certificate.
crate/server/src/tests/enrollment_tests.rs:1187
↓ 5 callers
Method
ensure_live_session
Fail closed unless the Auth Verifier session of `token` is still live. Call only once the token signature is verified, so that unauthenticated caller
crate/server/src/middlewares/auth_verifier/session.rs:94
↓ 5 callers
Function
envelope_for_recipient
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:160
↓ 5 callers
Method
extension
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
extension_action
A `create` action using a fresh CSE key and an issuer, ready to certify with `ext_leaf.cnf`.
crate/clients/clap/src/tests/google_cmd/key_pairs.rs:270
↓ 5 callers
Function
extract_sigv4_request_timestamp
(request: &http::Request<B>)
crate/server/src/routes/aws_xks/sigv4_middleware.rs:293
↓ 5 callers
Function
fetch_certificate
Fetch a certificate and return its Object, attributes and DER bytes
crate/clients/ckms/src/tests/certificates/certify.rs:296
↓ 5 callers
Function
field
(body: &Value, name: &str)
crate/server/src/tests/google_cse/crypto_paths.rs:50
↓ 5 callers
Function
formatProdErrorMessage
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 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
↓ 5 callers
Function
generate_self_signed_pki
Generate a complete self-signed PKI (CA + server cert + client cert) and write PEM files. Returns [`CertPaths`] with the paths of the generated files
crate/server/src/config/wizard/cert_gen.rs:237
↓ 5 callers
Function
getLanguage
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
getMimeType
(fileName: string)
ui/src/utils/utils.ts:301
↓ 5 callers
Method
getType
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
get_attributes
(kms: &Arc<KMS>, uid: &str, tag: Tag)
crate/server/src/tests/test_set_attribute.rs:64
↓ 5 callers
Method
get_available_slot_list
(&self)
crate/interfaces/src/hsm/interface.rs:659
↓ 5 callers
Function
get_crl_bytes
Retrieves Certificate Revocation List (CRL) bytes from a list of URIs. In production, only `http://` and `https://` URIs are fetched. All other URI t
crate/server/src/core/operations/validate.rs:592
↓ 5 callers
Function
get_default_config_path
()
crate/server/src/config/command_line/clap_config.rs:44
↓ 5 callers
Function
get_ec_private_key_request
(uid: &str)
crate/kmip/src/kmip_2_1/requests/get.rs:25
↓ 5 callers
Function
get_hsm_model
()
crate/test_kms_server/src/test_server.rs:588
↓ 5 callers
Function
get_hsm_password
()
crate/test_kms_server/src/test_server.rs:592
↓ 5 callers
Function
get_hsm_slot_id
()
crate/test_kms_server/src/test_server.rs:580
↓ 5 callers
Function
get_kms_object
( kms_client: &KmsClient, object_id_or_tags: &str, key_format_type: KeyFormatType, )
crate/clients/pkcs11/provider/src/kms_object.rs:410
↓ 5 callers
Function
get_slot
(hsm: &BaseHsm<P>, cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:120
↓ 5 callers
Function
gotoUntilVisible
* Navigate to `path` and wait for `ready` to become visible, reloading up to * `attempts` times when it does not. * * The SPA shows no form when it
ui/tests/e2e/helpers.ts:61
↓ 5 callers
Method
has_usage_mask
(&self, required: CryptographicUsageMask, lenient: bool)
crate/interfaces/src/stores/object_with_metadata.rs:204
↓ 5 callers
Method
headers
(&self)
crate/clients/client/src/http_client/client.rs:244
↓ 5 callers
Function
hybrid_kem_decapsulate
( algorithm: CryptographicAlgorithm, private_key_raw: &[u8], ciphertext: &[u8], )
crate/crypto/src/crypto/pqc/hybrid_kem.rs:73
↓ 5 callers
Function
import_as
`Import` the object as `user`, with the requested `key_wrap_type`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:345
↓ 5 callers
Function
import_google_cse_demo_key_and_grant
(ctx: &TestsContext)
crate/clients/clap/src/tests/google_cmd/using_hsm.rs:107
↓ 5 callers
Function
import_root_and_intermediate
( ctx: &TestsContext, )
crate/clients/clap/src/tests/certificates/certify.rs:11
↓ 5 callers
Method
invalidate_name
Invalidate every cached entry for keyset `name`, for all owners and all generation filters. Called after a rotation (rekey) so the next resolution se
crate/server_database/src/core/rotate_name_cache.rs:180
↓ 5 callers
Function
invariant
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
is
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 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:378
↓ 5 callers
Function
is_mechanism_unsupported_rv
Returns whether a PKCS#11 return code means a mechanism is unsupported.
crate/hsm/base_hsm/src/session/session_impl.rs:227
↓ 5 callers
Function
is_mysql_deadlock
(msg: &str)
crate/server_database/src/stores/sql/mysql.rs:51
↓ 5 callers
Method
is_user_authorized_with_get_wildcard
Check whether a user is authorized to perform `operation` on the object identified by `uid`, with `Get` wildcard for non-HSM keys. The user is author
crate/server/src/core/operations/key_ops/crypto_op.rs:665
↓ 5 callers
Method
jose_create_key
Create a cryptographic key via the JOSE REST endpoint. This is a convenience wrapper around `POST /v1/crypto/keys`.
crate/clients/client/src/jose.rs:190
↓ 5 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:190
↓ 5 callers
Method
key_bytes_and_attributes
Extract the Key bytes from the given `KeyBlock` and give an optional reference to `Attributes` Returns an error if there is no valid key material
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:477
↓ 5 callers
Function
list_jwks_uri
(url_whitelist: Option<Vec<String>>)
crate/server/src/routes/google_cse/jwt.rs:54
↓ 5 callers
Method
list_user_operations_granted
List all the KMIP operations granted to the `user` on all the objects in the database (i.e. the objects for which `user` is not the owner) The result
crate/server_database/src/core/database_permissions.rs:19
↓ 5 callers
Method
list_user_permissions
List all the permissions granted to a user per object uid Also includes permissions granted to the wildcard user `*` (unless `user_id` itself is the
crate/server_database/src/stores/redis/permissions.rs:194
↓ 5 callers
Function
load_ca_chain
Load the CA certificate `ca_uid` followed by its issuers, up to the root.
crate/server/src/routes/enrollment.rs:245
↓ 5 callers
Function
locate
( cli_conf_path: &str, tags: Option<&[&str]>, algorithm: Option<&str>, cryptographic_length: O
crate/clients/ckms/src/tests/shared/locate.rs:30
↓ 5 callers
Function
lookup_enum_code
(name: &str)
crate/kmip/src/ttlv/enum_lookup.rs:23
↓ 5 callers
Method
mac
This operation requests the server to perform message authentication code (MAC) operation on the provided data using a Managed Cryptographic Object as
crate/server/src/core/kms/kmip.rs:580
↓ 5 callers
Function
makeList
(s,o,i,u,_,w,x)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
make_aes256_key
()
crate/server/src/core/operations/auto_rotate.rs:369
↓ 5 callers
Function
make_cache_with_user
(entity: &str)
crate/server/src/middlewares/spire_token.rs:457
↓ 5 callers
Function
mask_db_url_password
Mask the password component of a database connection URL before logging. Uses [`url::Url::parse`] for standard single-host URLs; falls back to a simp
crate/server/src/config/command_line/db.rs:26
↓ 5 callers
Method
matches
(&self, algo: &str, key_size_or_curve: Option<&str>)
crate/clients/clap/src/actions/bench/types.rs:88
↓ 5 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:361
↓ 5 callers
Function
mysql_deadlock_backoff_ms
(attempt: u32)
crate/server_database/src/stores/sql/mysql.rs:62
↓ 5 callers
Method
object_get
(&self, uid: &str)
crate/server_database/src/stores/redis/objects_db.rs:232
↓ 5 callers
Function
object_handles
Handles of the objects currently on the slot. Suites running on a shared HSM partition snapshot the slot with this helper before their tests and clea
crate/hsm/base_hsm/src/tests_shared.rs:230
↓ 5 callers
Method
objects_get
( &self, uids: &HashSet<String>, )
crate/server_database/src/stores/redis/objects_db.rs:246
↓ 5 callers
Method
openNode
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
openpgp_key_metadata
`(algorithm, cryptographic_length_bits, pgp_key_version)` read from the primary key packet. `algorithm` is `CryptographicAlgorithm::RSA` or `Cryptogra
crate/crypto/src/crypto/openpgp/mod.rs:644
↓ 5 callers
Function
openpgp_public_from_secret
Strips secret material; input MUST be a secret key, output is an armored TPK.
crate/crypto/src/crypto/openpgp/mod.rs:632
↓ 5 callers
Function
openpgp_sign_detached
Binary detached signature over `data`, made with the primary key.
crate/crypto/src/crypto/openpgp/mod.rs:800
↓ 5 callers
Method
other
(self)
crate/hsm/base_hsm/src/session/message_context.rs:37
↓ 5 callers
Function
parse_secret_key
Helper to parse a secret key specifically from armored or binary bytes.
crate/crypto/src/crypto/openpgp/mod.rs:623
↓ 5 callers
Function
post_tags
POST tags to a key; returns the parsed response body.
crate/server/src/tests/jose/tags.rs:40
↓ 5 callers
Function
pqc_private_key_pkcs8_to_raw
Convert a PQC private key from PKCS#8 DER to raw bytes. Completely safe implementation using native `openssl::pkey::PKey` methods (Issue #894).
crate/crypto/src/crypto/pqc/mod.rs:459
↓ 5 callers
Function
pqc_public_key_spki_to_raw
Convert a PQC public key from SPKI DER to raw bytes. Completely safe implementation using native `openssl::pkey::PKey` methods (Issue #894).
crate/crypto/src/crypto/pqc/mod.rs:476
↓ 5 callers
Function
public_jwk
`{"kty":"RSA","kid":…,"n":…,"e":…,"key_ops":…}` for the public half of `rsa`.
crate/server/src/tests/jose/cek_kid.rs:44
↓ 5 callers
Method
public_key
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:75
↓ 5 callers
Function
read_from_json_file
Read an object T from a JSON file # Errors If the file cannot be opened or read, an error is returned.
crate/clients/client/src/file_utils.rs:36
↓ 5 callers
Function
refresh_jwks_for_token
Refresh, throttled per key set by [`JwksManager::refresh`], the JWKS of the configurations whose issuer is the `iss` claim of `token`, or of every con
crate/server/src/middlewares/jwt/jwks.rs:223
↓ 5 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:174
↓ 5 callers
Method
remove
Remove a permission to the user on an object
crate/server_database/src/stores/redis/permissions.rs:261
↓ 5 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:60
↓ 5 callers
Method
remove_tags
(&mut self, vendor_id: &str)
crate/kmip/src/kmip_2_1/extra/tagging.rs:99
↓ 5 callers
Function
rename
( cli_conf_path: &str, master_secret_key_id: &str, attribute: &str, new_name: &str, )
crate/clients/ckms/src/tests/cover_crypt/access_structure.rs:90
↓ 5 callers
Function
replace_dollars_with_qn
(sql: &str)
crate/server_database/src/stores/sql/sqlite.rs:545
↓ 5 callers
Function
repo_root
Resolve a path relative to the repository root (two levels up from `CARGO_MANIFEST_DIR`).
crate/test_kms_server/src/vector_runner.rs:785
↓ 5 callers
Function
resetToNonEmailMatchState
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callers
Function
resolve_oracle_verify_input
Resolve the payload a crypto oracle should verify, together with whether that payload is already a digest. `data` and `digested_data` are mutually ex
crate/server/src/core/operations/signature_verify.rs:243
↓ 5 callers
Function
retry_on_transient_lock
Retries `operation` while it fails with a transient `SQLite` lock error, using capped exponential backoff, up to `MAX_LOCK_RETRY_ELAPSED`. `SQLite`'s
crate/server_database/src/stores/sql/sqlite.rs:85
↓ 5 callers
Function
revoke_cert
( kms: &Arc<KMS>, owner: &UserId, cert_id: &str, reason: RevocationReasonCode,
crate/server/src/tests/test_validate.rs:1357
↓ 5 callers
Function
saveDecryptedFile
(data: Uint8Array, fileName: string, mimeType: string)
ui/src/utils/utils.ts:271
← previous
next →
1,001–1,100 of 12,829, ranked by callers