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
↓ 7 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:49
↓ 7 callers
Method
serialize_i32
(self, v: i32)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:172
↓ 7 callers
Function
serialize_tagged_label
( id: &[u8], tags: Option<&HashSet<String>>, max_len: Option<usize>, )
crate/hsm/base_hsm/src/session/mod.rs:57
↓ 7 callers
Function
set_key_property_dword
( dll: &KspDll, h_provider: usize, h_key: usize, prop_name: &[u16], va
crate/clients/clap/src/actions/cng_verify.rs:194
↓ 7 callers
Method
shift
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
source
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 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:1376
↓ 7 callers
Method
stop_server
(self)
crate/test_kms_server/src/test_server.rs:1079
↓ 7 callers
Method
tag_size
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:230
↓ 7 callers
Function
temp_path
(label: &str)
crate/server/src/tests/audit_middleware.rs:37
↓ 7 callers
Function
test_kms_with_google_cse
Instantiate a KMS from `clap_config`, creating the Google CSE migration key pair when Google CSE is enabled.
crate/server/src/tests/test_utils.rs:336
↓ 7 callers
Function
to_path
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
validate_cryptographic_parameters
( params: &Option<CryptographicParameters>, wl: &KmipWhitelists, )
crate/server/src/core/operations/algorithm_policy.rs:853
↓ 7 callers
Method
value
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callers
Function
wrap_key_handler
( kms: &KMS, key_name: &str, user: &UserId, request: WrapKeyRequest, )
crate/server/src/routes/azure_ekm/handlers.rs:237
↓ 7 callers
Function
write_kmip_object_to_file
Writes a KMIP Object to a JSON TTLV in a file. # Errors If the file cannot be opened or written, an error is returned.
crate/clients/client/src/file_utils.rs:95
↓ 7 callers
Function
write_temp
(contents: &str)
crate/server/src/config/command_line/clap_config.rs:894
↓ 7 callers
Function
xor_join
Reconstruct the secret from *all* XOR shares. `secret[i] = shares[0][i] XOR shares[1][i] XOR ... XOR shares[n-1][i]` The returned secret is wrapped
crate/crypto/src/crypto/split_key/mod.rs:82
↓ 6 callers
Function
$
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
Lf
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
Sa
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
Zi
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
__assign
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
_deepClone
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
active_owm
(ext_attrs: Attributes)
crate/interfaces/src/stores/object_with_metadata.rs:313
↓ 6 callers
Function
aes_gcm_params
()
crate/clients/clap/src/actions/bench/helpers.rs:170
↓ 6 callers
Method
apply_default_headers
Apply the client's default headers to a request builder.
crate/clients/client/src/http_client/client.rs:426
↓ 6 callers
Function
assert_certify_format_unsupported
Helper: test that a KEM/hybrid algorithm cert creation fails with unsupported format error.
crate/clients/ckms/src/tests/certificates/certify_pqc.rs:385
↓ 6 callers
Method
attributes
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:88
↓ 6 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:403
↓ 6 callers
Function
build_signed_pkimessage
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:434
↓ 6 callers
Function
cek_size_bytes
Return the CEK size in bytes for a given content-encryption algorithm. Per RFC 7518 §5.1: - A128GCM → 16 bytes (128 bits) - A192GCM → 24 bytes (192 b
crate/server/src/routes/jose/algorithm.rs:430
↓ 6 callers
Function
certify_pubkey
Helper: create a keypair, then certify the public key with a subject name.
crate/test_kms_server/src/certify_tests.rs:521
↓ 6 callers
Function
certify_renewal
Helper: create a certificate (self-signed or CA-signed), then re-certify it.
crate/test_kms_server/src/certify_tests.rs:916
↓ 6 callers
Function
cfg
()
crate/hsm/luna/src/tests.rs:26
↓ 6 callers
Function
check_certificate_chain
( owner_client_conf_path: &str, issuer_private_key_id: &str, certificate_id: &str, )
crate/clients/ckms/src/tests/certificates/certify.rs:350
↓ 6 callers
Function
ckm_rsa_pkcs_oaep_key_wrap
Key Wrap 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/v
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:44
↓ 6 callers
Function
claim
(sub: Option<&str>, email: Option<&str>)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:274
↓ 6 callers
Method
compile
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
compile_minimal_pkcs11_shim
Compiles `tests/fixtures/minimal_pkcs11.c` — a strictly spec-conformant PKCS#11 v3.0 shim that exports *only* `C_GetFunctionList`/`C_GetInterface` (no
crate/hsm/base_hsm/src/hsm_lib.rs:913
↓ 6 callers
Function
compromise_key
Compromise a key via KMIP `Revoke` with `KeyCompromise` reason.
crate/server/src/tests/jose/key_state.rs:164
↓ 6 callers
Function
concat_kdf
Derive `key_data_len_bits` bits of key material from the shared secret `z` using the NIST SP 800-56A Concatenation KDF (SHA-256), as profiled by RFC 7
crate/crypto/src/crypto/kdf/concat_kdf.rs:57
↓ 6 callers
Function
config_for
(mock: &MockGoogle, token_path: &str)
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:14
↓ 6 callers
Method
context
(self, context: &str)
crate/clients/pkcs11/module/src/error/result.rs:13
↓ 6 callers
Method
covercrypt_key_bytes
Return the key material of a covercrypt key, raw or transparent.
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:350
↓ 6 callers
Function
create
Returns the (private, public) key identifiers
crate/server/src/tests/configurable_kem_tests.rs:57
↓ 6 callers
Function
createPqcKeyPair
(page: Page, algorithm: string)
ui/tests/e2e/helpers.ts:421
↓ 6 callers
Function
create_base_symmetric_key_request
Helper function to create a symmetric key for testing `DeriveKey` operations
crate/server/src/tests/derive_key_tests.rs:44
↓ 6 callers
Function
create_jwt
Create a signed JSON Web Token (JWT) for authenticating a KACLS migration request. This token includes standard claims such as `iss` (issuer), `aud`
crate/server/src/routes/google_cse/operations.rs:978
↓ 6 callers
Function
create_pgp_key
( cli_conf_path: &str, action: &CreatePgpKeyAction, )
crate/clients/ckms/src/tests/pgp/create_key.rs:13
↓ 6 callers
Function
create_sym_key
( rt: &Runtime, client: &KmsClient, name: &str, bits: usize, algo: CryptographicAlgorithm,
crate/clients/clap/src/actions/bench/helpers.rs:363
↓ 6 callers
Function
crud
(db: &DB)
crate/server_database/src/tests/database_tests.rs:358
↓ 6 callers
Function
cse_wrapped_key_decrypt
Decrypts a wrapped key Tries to decrypt it, using the `resource_name` if present. If it fails, key might be wrapped without it, so we try to unwrap it
crate/server/src/routes/google_cse/operations.rs:1175
↓ 6 callers
Function
current
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
curve_from_der_oid
(oid: &[u8])
crate/hsm/base_hsm/src/session/ec.rs:124
↓ 6 callers
Function
days_until_next_rotation
Compute the number of whole days until the next scheduled rotation for a key. Returns `None` if the rotation schedule cannot be determined (no interv
crate/server/src/core/operations/auto_rotate.rs:320
↓ 6 callers
Function
deactivate_key
Deactivate a key via KMIP `Revoke` with `CessationOfOperation` reason.
crate/server/src/tests/jose/key_state.rs:141
↓ 6 callers
Method
debug
(s,...o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 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
↓ 6 callers
Function
ecdh_es_round_trip
(crv: &str, alg: &str, enc: &str)
crate/server/src/tests/jose/ecdh.rs:179
↓ 6 callers
Function
ecdsa_sign
ECDSA signature helper: in non-fips builds P-256 and secp256k1 are signed deterministically (RFC 6979) — P-256 via OpenSSL's deterministic nonce mode
crate/crypto/src/crypto/elliptic_curves/sign.rs:32
↓ 6 callers
Function
emptyMap
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
encrypt
Encrypt plaintext with the given key, returning the JSON encrypt response.
crate/server/src/tests/jose/key_state.rs:63
↓ 6 callers
Function
enforce_kmip_algorithm_policy_for_csr
Certify from a PKCS#10 request: its public key and, for RSA and EC keys (whose signature names a hash), its signature algorithm must satisfy the activ
crate/server/src/core/operations/algorithm_policy.rs:291
↓ 6 callers
Function
enroll_for_peer
Issue for an authenticated request. A client certificate issued by the EST CA must still be active (TLS verification does not check revocation) and ma
crate/server/src/routes/est/enroll.rs:257
↓ 6 callers
Method
export
This operation requests that the server returns a Managed Object specified by its Unique Identifier, together with its attributes. The Key Format Type
crate/server/src/core/kms/kmip.rs:308
↓ 6 callers
Method
export_key
Export a key from the HSM
crate/hsm/base_hsm/src/session/session_impl.rs:2765
↓ 6 callers
Function
extract_key_bytes_ref
Extract raw key bytes from any supported KMIP object type. Used both by `CreateSplitKey` (to extract the source key's bytes) and by `JoinSplitKey` wh
crate/server/src/core/operations/create_split_key.rs:519
↓ 6 callers
Function
extract_private_key
Extract the private key from a test.
crate/clients/ckms/src/tests/utils/extract_uids.rs:27
↓ 6 callers
Function
extract_public_key
Extract the public key from a test.
crate/clients/ckms/src/tests/utils/extract_uids.rs:32
↓ 6 callers
Method
freeze
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
gcm_mechanism
Build a `CK_MECHANISM` for `CKM_AES_GCM` pointing at the caller-owned `params`. `params` MUST be a local variable in the caller's own stack frame (not
crate/clients/pkcs11/module/src/core/mechanism.rs:427
↓ 6 callers
Method
getMetaProperty
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
get_key_metadata
(&self, uid: &str)
crate/interfaces/src/hsm/hsm_store.rs:924
↓ 6 callers
Method
get_no_ttlv
( &self, endpoint: &str, data: Option<&O>, )
crate/clients/client/src/kms_rest_client.rs:856
↓ 6 callers
Function
gi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
grant
(kms: &KMS, uid: &str, user: &str, op: KmipOperation)
crate/server/src/tests/hsm/fake_hsm_authz.rs:312
↓ 6 callers
Function
grant_certify_access
Grant `user` `Get` + `Certify` on `cert_id` AND `Get` on `sk_id`. This allows a non-owner to use the CA cert/key as an issuer in a `Certify` request,
crate/server/src/tests/crl_tests.rs:822
↓ 6 callers
Function
h
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 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
↓ 6 callers
Function
hybrid_kem_algorithm_name
Map a hybrid KEM `CryptographicAlgorithm` to the OpenSSL algorithm name string.
crate/crypto/src/crypto/pqc/mod.rs:514
↓ 6 callers
Function
ih
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
includesCycle
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
insert_test_key_pair
Insert a private key (`<base>`) and its paired public key (`<base>_pk`) directly into the global `OBJECTS_STORE`, returning the two handles.
crate/clients/pkcs11/module/src/tests.rs:1303
↓ 6 callers
Function
iot_template
()
crate/server/src/core/operations/certify/template.rs:637
↓ 6 callers
Method
isEmpty
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
isJSONSchemaObject
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
isPrimitiveElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
is_WS_OR_EOL
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Method
is_object_owned_by
Test if an object identified by its `uid` is currently owned by `owner`
crate/server_database/src/core/database_objects.rs:426
↓ 6 callers
Method
items
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
iteratorDone
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
kms_export_pgp
Export a KMS PGP key as secret or public armor.
crate/test_kms_server/src/pgp_gnupg_tests.rs:278
↓ 6 callers
Function
kms_with_fake_hsm
KMS on a fresh `SQLite` database with `FakeHsm` mounted under the `hsm` prefix.
crate/server/src/tests/hsm/fake_hsm_authz.rs:286
↓ 6 callers
Method
list_objects
(&self, object_filter: HsmObjectFilter)
crate/hsm/base_hsm/src/session/session_impl.rs:688
↓ 6 callers
Function
make_chain
Build a valid N-event hash chain, writing to `path` and returning the events.
crate/clients/clap/src/actions/audit.rs:894
↓ 6 callers
Function
make_owm
(uid: &str)
crate/server_database/src/core/object_cache.rs:198
↓ 6 callers
Function
message
Processing of an input KMIP Message Process every item from the message request. Each batch item contains an operation to process. The items are pro
crate/server/src/core/operations/message.rs:56
↓ 6 callers
Function
mh
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callers
Function
migration_authz_token
A KACLS migration authorization token: `role` is `migrator` (rewrap) or `verifier` (digest).
crate/server/src/tests/google_cse/utils.rs:288
← previous
next →
801–900 of 12,829, ranked by callers