Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
9,687 in github.com/Cosmian/kms
⨍
Functions
9,687
◇
Types & classes
2,312
↓ 34 callers
Function
create_ec_key_pair_request
Build a `CreateKeyPairRequest` for an elliptic curve
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:178
↓ 34 callers
Method
get_tags
(&self, vendor_id: &str)
crate/kmip/src/kmip_2_1/extra/tagging.rs:34
↓ 34 callers
Method
read
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 33 callers
Method
get_user
Get the user from the request depending on the authentication method.
crate/server/src/core/kms/permissions.rs:300
↓ 33 callers
Method
key_block_mut
Returns the `KeyBlock` of that object if any, an error otherwise
crate/kmip/src/kmip_2_1/kmip_objects.rs:432
↓ 33 callers
Method
key_bytes
Return the key material of a symmetric key, raw or transparent. The PKCS#1 of an RSA Key, etc.
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:320
↓ 33 callers
Method
retrieve_object
Retrieve a single object from the database. This method retrieves an object identified by its `uid` and applies user and state filters to determine i
crate/server_database/src/core/database_objects.rs:275
↓ 33 callers
Function
time_normalize
()
crate/kmip/src/time_utils.rs:18
↓ 33 callers
Function
w
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 32 callers
Function
export_key
(params: ExportKeyParams)
crate/clients/ckms/src/tests/shared/export.rs:60
↓ 32 callers
Function
extract_uid
Extract the `key_uid` (prefixed by a pattern) from a text
crate/clients/ckms/src/tests/utils/extract_uids.rs:4
↓ 32 callers
Method
open_session
Open a new session with the HSM slot. The session can be read-only or read-write, depending on the `read_write` parameter. # Arguments `read_write` -
crate/hsm/base_hsm/src/slots.rs:276
↓ 32 callers
Method
pop
(&mut self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:46
↓ 32 callers
Method
run
(&self, kms_rest_client: KmsClient)
crate/clients/clap/src/actions/rng.rs:34
↓ 31 callers
Method
create_key_pair
This operation requests the server to generate a new public/private key pair and register the two corresponding new Managed Cryptographic Object The r
crate/server/src/core/kms/kmip.rs:114
↓ 31 callers
Method
object_type
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:381
↓ 31 callers
Function
time_normalize
Returns the current UTC time with milliseconds set to zero. This function is used to normalize timestamps across the KMIP implementation, ensuring co
crate/server/src/routes/aws_xks/key_metadata.rs:44
↓ 30 callers
Method
enter
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 30 callers
Method
find
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 30 callers
Function
load_client_config
Load a client config template from `test_data/configs/client/{template}`, patch the `server_url` port to match the running test server, resolve relati
crate/clients/ckms/src/tests/utils/config.rs:35
↓ 30 callers
Function
run_ckms_expect_error
Run a ckms command expecting failure, return the stderr message.
crate/clients/ckms/src/tests/utils/run.rs:39
↓ 29 callers
Method
as_str
(&self)
crate/kmip/src/kmip_2_1/kmip_types.rs:1759
↓ 29 callers
Function
assert_baseline
Assert common certificate properties: subject CN, issuer CN, validity, and serial number ≤ 20 bytes.
crate/test_kms_server/src/certify_tests.rs:115
↓ 29 callers
Method
cleanup
(&self, client: &KmsClient)
crate/test_kms_server/src/certify_tests.rs:38
↓ 29 callers
Function
get_certificate_der
Retrieve DER bytes of a certificate object.
crate/test_kms_server/src/certify_tests.rs:55
↓ 29 callers
Method
insert
Insert or update a cached object.
crate/server_database/src/core/object_cache.rs:103
↓ 29 callers
Method
public_key
(&self)
crate/crypto/src/crypto/mod.rs:66
↓ 29 callers
Method
set_tags
Set the tags on the attributes
crate/kmip/src/kmip_2_1/extra/tagging.rs:47
↓ 28 callers
Method
clear
Remove all object handles from the cache.
crate/hsm/base_hsm/src/slots.rs:84
↓ 28 callers
Function
create_symmetric_key
(client: &SocketClient, name: &str)
crate/server/src/tests/ttlv_tests/create_1_4.rs:34
↓ 28 callers
Method
get
This operation requests that the server returns the Managed Object specified by its Unique Identifier. Only a single object is returned. The response
crate/clients/client/src/kms_rest_client.rs:275
↓ 27 callers
Method
delete
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 27 callers
Function
make_kms
Spin up a fresh, empty in-process KMS instance with an `SQLite` backend. No network access is required.
crate/server/src/tests/test_validate.rs:386
↓ 27 callers
Function
now
()
crate/server/src/core/operations/auto_rotate.rs:386
↓ 27 callers
Method
set_link
Set a link to an object. If a link of the same type already exists, it is removed. There can only be one link of a given type.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:637
↓ 27 callers
Method
toValue
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 27 callers
Function
x
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 26 callers
Function
certify
(cli_conf_path: &str, certify_op: CertifyOp)
crate/clients/ckms/src/tests/certificates/certify.rs:64
↓ 25 callers
Method
post
( &self, endpoint: &str, content: String, )
crate/clients/clap/src/actions/google/gmail_client/client_builder.rs:91
↓ 25 callers
Function
useFn
(s=void 0)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 24 callers
Function
create_cc_master_key_pair
( cli_conf_path: &str, policy_option: &str, file: &str, tags: &[&str], sensitive: bool, )
crate/clients/ckms/src/tests/cover_crypt/master_key_pair.rs:14
↓ 24 callers
Function
import_object_request
Build an ` Import ` request for a generic Object
crate/kmip/src/kmip_2_1/requests/import.rs:16
↓ 24 callers
Function
pqc_certify
Issue a PQC certificate via the KMIP `Certify` operation. When `issuer_cert_id` and `issuer_sk_id` are `None` the certificate is self-signed (root CA
crate/server/src/tests/test_validate.rs:402
↓ 24 callers
Function
retrieve_object_for_operation
Retrieve a single object for a given operation type or the Get operation if not found. When tags are provided, the function will return the first obj
crate/server/src/core/retrieve_object_utils.rs:28
↓ 24 callers
Function
test_init
()
crate/clients/pkcs11/module/src/tests.rs:235
↓ 23 callers
Method
concat
(mut a: Self, mut b: Self)
crate/crypto/src/crypto/fpe/ff1.rs:573
↓ 23 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/clients/client/src/kms_rest_client.rs:237
↓ 23 callers
Method
exec
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 23 callers
Method
execute
Execute the operation once, returning `true` on success. For `PreSerialized` ops the request bytes are sent without any serialization, and the respon
crate/clients/clap/src/actions/bench/load.rs:98
↓ 23 callers
Function
has_prefix
Determine whether the unique identifier has a crypto-oracle prefix. Supports two HSM UID formats: - Old: `hsm::<slot_id>::<key_id>` → prefix = `"hsm"
crate/server/src/core/uid_utils.rs:22
↓ 23 callers
Method
import
This operation requests the server to Import a Managed Object specified by its Unique Identifier. The request specifies the object being imported and
crate/server/src/core/kms/kmip.rs:396
↓ 23 callers
Function
normalize_ttlv
Post-serialization normalization pass. See prior implementation notes in serializer.
crate/kmip/src/ttlv/normalize.rs:49
↓ 23 callers
Method
record
Centralises metrics instrumentation boilerplate so that public methods stay focused on their core logic. Accepts a future representing the database o
crate/server_database/src/core/database_objects.rs:154
↓ 23 callers
Function
set_var
(key: &str, value: &Path)
crate/server/src/config/command_line/clap_config.rs:825
↓ 23 callers
Method
toArray
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 23 callers
Function
useAuth
()
ui/src/contexts/useAuth.ts:4
↓ 23 callers
Method
values
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 22 callers
Function
assert_chain_valid
Validate a chain expressed as a slice of cert IDs. Asserts `Valid`.
crate/server/src/tests/test_validate.rs:469
↓ 22 callers
Function
bench_ko
Record a benchmark name as skipped/unsupported (for compact output).
crate/clients/clap/src/actions/bench/types.rs:14
↓ 22 callers
Method
bits
(self)
crate/server/src/config/command_line/kmip_policy_config.rs:101
↓ 22 callers
Function
read_object_from_json_ttlv_file
Read an object from a KMIP JSON TTLV file # Errors If the file cannot be opened or read, an error is returned.
crate/clients/client/src/file_utils.rs:60
↓ 22 callers
Function
tv
(tag: &str, value: TTLValue)
crate/kmip/src/ttlv/normalize.rs:1063
↓ 22 callers
Function
useComponent
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 21 callers
Method
certify
This request is used to generate a Certificate object for a public key. This request supports the certification of a new public key, as well as the ce
crate/server/src/core/kms/kmip.rs:79
↓ 21 callers
Function
cfg
()
crate/hsm/softhsm2/src/tests.rs:20
↓ 21 callers
Method
context
(self, context: &str)
crate/clients/clap/src/error/result.rs:31
↓ 21 callers
Function
create_rsa_key_pair_request
Build a `CreateKeyPairRequest` for a RSA key pair.
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:27
↓ 21 callers
Function
encode
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 21 callers
Function
encrypt_request
Build an Encryption Request to encrypt the provided `plaintext`. The cryptographic scheme is determined by that of the key identified by `key_unique_
crate/kmip/src/kmip_2_1/requests/encrypt.rs:20
↓ 21 callers
Method
extensions
(&self)
crate/server/src/core/operations/certify/subject.rs:108
↓ 21 callers
Function
get
Get an object If the request contains a `KeyWrappingData`, the key will be wrapped. If the request contains a `KeyWrapType`, the key will be unwrappe
crate/server/src/core/operations/get.rs:18
↓ 21 callers
Function
getNoTTLVRequest
(path: string, serverUrl: string)
ui/src/utils/utils.ts:139
↓ 21 callers
Function
isReferenceLikeElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 21 callers
Function
kmip_private_key_to_openssl
Convert a KMIP Private key to openssl `PKey<Private>` The supported `KeyFormatType` are: PKCS1 `ECPrivateKey` (SEC1) PKCS8 (not encrypted only) `Tran
crate/crypto/src/openssl/private_key.rs:52
↓ 21 callers
Function
send_message
( kms: Arc<KMS>, owner: &str, operations: Vec<Operation>, )
crate/server/src/tests/hsm/mod.rs:336
↓ 21 callers
Function
start_default_test_kms_server_with_cert_auth
TLS + certificate authentication. Configuration is loaded from `test_data/configs/server/cert_auth.toml`.
crate/test_kms_server/src/test_server.rs:256
↓ 21 callers
Method
toRefractedElement
(s,o,i={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Method
attributes
Returns the `Attributes` of that object if any, an error otherwise
crate/kmip/src/kmip_2_1/kmip_objects.rs:422
↓ 20 callers
Function
cfg
()
crate/hsm/smartcardhsm/src/tests.rs:21
↓ 20 callers
Method
copyMetaAndAttributes
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 20 callers
Method
decrypt
This operation requests the server to perform a decryption operation on the provided data using a Managed Cryptographic Object as the key for the decr
crate/server/src/core/kms/kmip.rs:172
↓ 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:253
↓ 20 callers
Function
https_clap_config_opts
(kms_public_url: Option<String>)
crate/server/src/tests/test_utils.rs:69
↓ 20 callers
Function
replace_dollars_with_qn
(sql: &str)
crate/server_database/src/stores/sql/sqlite.rs:310
↓ 20 callers
Method
set_unique_identifier
(&mut self, unique_identifier: &UniqueIdentifier)
crate/clients/clap/src/actions/console.rs:81
↓ 20 callers
Method
then
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 19 callers
Function
cfg
()
crate/hsm/proteccio/src/tests.rs:20
↓ 19 callers
Function
cfg
()
crate/hsm/crypt2pay/src/tests.rs:20
↓ 19 callers
Function
decrypt_request
( key_unique_identifier: &str, nonce: Option<Vec<u8>>, ciphertext: Vec<u8>, authenticated_tag:
crate/kmip/src/kmip_2_1/requests/decrypt.rs:11
↓ 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:109
↓ 19 callers
Function
open
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 19 callers
Function
revoke
Send a `Revoke` request with the given `reason_code` and `cascade` flag. Returns the parsed `RevokeResponse` on success, or a `KmsError` on failure.
crate/server/src/tests/revoke_tests.rs:121
↓ 19 callers
Method
text
Return the response body as a UTF-8 string. # Errors Returns an error if the body is not valid UTF-8.
crate/clients/client/src/http_client/client.rs:262
↓ 19 callers
Method
to_der
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:69
↓ 19 callers
Method
write
(&self, ser: &mut Serializer)
crate/server_database/src/stores/redis/permissions.rs:104
↓ 18 callers
Function
cfg
()
crate/hsm/utimaco/src/tests.rs:19
↓ 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:67
↓ 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:67
↓ 18 callers
Function
j
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 18 callers
Function
random_nonce
Generate a random nonce for the given symmetric cipher.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:435
← previous
next →
101–200 of 9,687, ranked by callers