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
↓ 55 callers
Function
decode
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 55 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:337
↓ 55 callers
Method
parse
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 55 callers
Method
retrieve_object_arc
Retrieve a cached object as `Arc<ObjectWithMetadata>` without deep-cloning. On cache hit this returns a cheap `Arc` pointer bump instead of the `~800
crate/server_database/src/core/database_objects.rs:328
↓ 54 callers
Method
apply
Validate `csr` and write the template-driven issuance controls into the `Certify` attributes: the template validity and, when the CSR requests no EKU,
crate/server/src/core/operations/certify/template.rs:549
↓ 54 callers
Method
reduce
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 53 callers
Method
setMetaProperty
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 53 callers
Method
set_tags
Set the tags on the attributes
crate/kmip/src/kmip_2_1/extra/tagging.rs:65
↓ 53 callers
Function
smokeRender
(element: React.ReactElement, options: SmokeRenderOptions = {})
ui/tests/unit/test-utils.tsx:27
↓ 52 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:446
↓ 52 callers
Method
then
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 51 callers
Method
call
(&self, f: F)
crate/server_database/src/stores/sql/sqlite.rs:94
↓ 51 callers
Method
context
(self, context: &str)
crate/clients/clap/src/error/result.rs:31
↓ 51 callers
Function
submitAndWaitForResponse
(page: Page, timeoutMs: number = UI_RESPONSE_TIMEOUT)
ui/tests/e2e/helpers.ts:80
↓ 50 callers
Method
execute
(&self, sql: &str)
crate/server_database/src/tests/sql_migration_tests.rs:162
↓ 50 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:321
↓ 50 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
↓ 49 callers
Method
add
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 49 callers
Function
encode
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 49 callers
Method
from
(e: TtlvError)
crate/server/src/error.rs:121
↓ 49 callers
Method
insert
Insert or update a cached object.
crate/server_database/src/core/object_cache.rs:135
↓ 49 callers
Method
object_type
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:395
↓ 49 callers
Method
seeded_csrng
A `ChaCha12` generator seeded with 256 bits from the private DRBG. For third-party APIs that require an infallible `rand_core` 0.6 `CryptoRngCore` an
crate/crypto/src/crypto/rng/mod.rs:168
↓ 49 callers
Method
set_tags
(&mut self, tags: Option<&Vec<String>>)
crate/clients/clap/src/actions/console.rs:77
↓ 49 callers
Method
with_context
(self, op: O)
crate/clients/clap/src/error/result.rs:35
↓ 48 callers
Method
get_user
Get the user from the request depending on the authentication method.
crate/server/src/core/kms/permissions.rs:344
↓ 48 callers
Function
post_json_raw
Post `body` as JSON to `uri` and return the HTTP status together with the parsed JSON reply (`Value::Null` if the reply is empty or not JSON), whateve
crate/server/src/tests/test_utils.rs:842
↓ 47 callers
Method
attributes_mut
Returns the `Attributes` of that object if any, an error otherwise
crate/kmip/src/kmip_2_1/kmip_objects.rs:441
↓ 47 callers
Method
grant_operations
Grant the ability to `user` to perform the KMIP `operations` on the object identified by its `uid`
crate/server_database/src/core/database_permissions.rs:44
↓ 47 callers
Function
serializers_value
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 46 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:24
↓ 46 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:19
↓ 46 callers
Function
p
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 46 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
↓ 46 callers
Function
setup_app
`log_init(None)` + `test_app` combo — cuts 2-line boilerplate to 1 per test.
crate/server/src/tests/test_utils.rs:319
↓ 45 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:689
↓ 45 callers
Function
start
()
crate/test_kms_server/src/mock_gmail.rs:55
↓ 44 callers
Method
get_tags
(&self, vendor_id: &str)
crate/kmip/src/kmip_2_1/extra/tagging.rs:52
↓ 44 callers
Method
has
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 43 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:81
↓ 43 callers
Function
open
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 43 callers
Function
read_bytes_from_file
Read all bytes from a file # Errors If the file cannot be opened or read, an error is returned.
crate/clients/client/src/file_utils.rs:23
↓ 43 callers
Function
time_normalize
()
crate/kmip/src/time_utils.rs:18
↓ 42 callers
Method
attributes
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 42 callers
Function
export_key
(params: ExportKeyParams)
crate/clients/ckms/src/tests/shared/export.rs:61
↓ 42 callers
Method
headers
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 42 callers
Function
kms_with_rotating_hsm
KMS on a fresh `SQLite` database with an empty [`RotatingHsm`] mounted under `hsm`.
crate/server/src/tests/hsm/fake_hsm_rotation.rs:487
↓ 42 callers
Method
public_key
(&self)
crate/crypto/src/crypto/mod.rs:89
↓ 42 callers
Method
push
(&mut self, v: T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:67
↓ 41 callers
Function
get_tmp_sqlite_path
()
crate/server/src/tests/test_utils.rs:293
↓ 41 callers
Method
pop
(&mut self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:71
↓ 41 callers
Method
remove
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 41 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:50
↓ 40 callers
Method
create
( &self, _: Option<String>, _: &UserId, _: &Object,
crate/server/src/core/operations/locate.rs:288
↓ 40 callers
Method
get_attributes
This operation requests one or more attributes associated with a Managed Object. The object is specified by its Unique Identifier, and the attributes
crate/server/src/core/kms/kmip.rs:353
↓ 40 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:439
↓ 40 callers
Method
is_hsm
(self)
crate/interfaces/src/object_handle.rs:37
↓ 40 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:32
↓ 39 callers
Method
clear
Remove all object handles from the cache.
crate/hsm/base_hsm/src/slots.rs:127
↓ 39 callers
Function
make_kms
Start a KMS with the enrollment endpoints configured, create the CA (owned by `default_username`) and delegate it to the enrollment service identity.
crate/server/src/tests/enrollment_tests.rs:125
↓ 39 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:386
↓ 39 callers
Method
to_bytes
Serialize the data to encrypt to bytes
crate/kmip/src/data_to_encrypt.rs:39
↓ 38 callers
Function
cloneDeep
(s,o={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 38 callers
Function
deserialize
( deserializer: D, )
crate/kmip/src/ttlv/asn1_date_time.rs:68
↓ 38 callers
Method
flush
Awaits until every event enqueued before this call has been written by the writer task (and, for the real `File` sink, `fsync`'d). Unlike `enqueue`, t
crate/server/src/core/audit/store.rs:348
↓ 38 callers
Method
last
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 38 callers
Method
run
# Errors Returns an error if the secret is empty or the server rejects the write.
crate/clients/clap/src/actions/kv.rs:110
↓ 37 callers
Function
clone
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 37 callers
Method
extensions
(&self)
crate/server/src/core/operations/certify/subject.rs:111
↓ 37 callers
Function
test_init
()
crate/clients/pkcs11/module/src/tests.rs:508
↓ 36 callers
Method
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/kms/kmip.rs:565
↓ 35 callers
Function
get_key_uid
( key_id: Option<&String>, tags: Option<&Vec<String>>, argument_name: &str, )
crate/clients/clap/src/actions/shared/get_key_uid.rs:5
↓ 35 callers
Method
load
Load the configuration from a toml file. # Errors Return an error if the configuration file is not found or if the file is not a valid toml file.
crate/clients/ckms/src/config.rs:51
↓ 35 callers
Method
values
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 34 callers
Method
build
(self)
crate/clients/clap/src/actions/google/gmail_client/client_builder.rs:35
↓ 34 callers
Function
rsa_key
(bits: u32)
crate/server/src/tests/enrollment_tests.rs:249
↓ 34 callers
Function
send_message
( kms: Arc<KMS>, owner: &str, operations: Vec<Operation>, )
crate/server/src/tests/hsm/mod.rs:486
↓ 33 callers
Method
append
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 33 callers
Method
create
Create the given Object in the database. A new UUID will be created if none is supplier. This method will fail if an ` uid ` is supplied and an object
crate/server_database/src/core/database_objects.rs:208
↓ 33 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
↓ 33 callers
Method
insert
( &self, id: &str, key_type: KeyType, bits: usize, label: &str,
crate/server/src/tests/hsm/fake_hsm_rotation.rs:85
↓ 33 callers
Function
set_var
(key: &str, value: &Path)
crate/server/src/config/command_line/clap_config.rs:1109
↓ 33 callers
Function
w
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 32 callers
Function
get
(uri: &str, cookie: Option<&str>)
crate/server/src/routes/ui_auth.rs:1630
↓ 32 callers
Function
now
()
crate/server/src/core/operations/auto_rotate.rs:410
↓ 32 callers
Method
run_with_writer
Run the export, writing output to the provided writer. For stdout call `run_with_writer(&mut std::io::stdout().lock())`. For tests pass `&mut Vec::ne
crate/clients/clap/src/actions/audit.rs:249
↓ 32 callers
Method
write
(&mut self, buf: &[u8])
crate/server/src/socket_server.rs:434
↓ 31 callers
Function
hash
(body: Json<HashRequest>)
crate/server/src/routes/tokenize/mod.rs:55
↓ 31 callers
Function
parse
Parse ASN.1 `GeneralizedTime` or `UTCTime` as UTC.
crate/kmip/src/ttlv/asn1_date_time.rs:16
↓ 31 callers
Method
update
Authenticate the next part of the message. # Errors Returns an error if OpenSSL fails.
crate/crypto/src/crypto/symmetric/mac.rs:80
↓ 31 callers
Function
useAuth
()
ui/src/contexts/useAuth.ts:4
↓ 30 callers
Method
find
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 30 callers
Method
get
(&self, endpoint: &str)
crate/clients/clap/src/actions/google/gmail_client/client_builder.rs:83
↓ 30 callers
Method
output
(&self)
crate/crypto/src/crypto/fpe/ff1.rs:296
↓ 30 callers
Method
public_key
(&self)
crate/server/src/core/operations/certify/subject.rs:94
↓ 30 callers
Method
revoke
This operation requests the server to revoke a Managed Cryptographic Object or an Opaque Object. The request contains a reason for the revocation (e.g
crate/server/src/core/kms/kmip.rs:791
↓ 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
Function
audit_url
Live audit database URL. Defaults to the repository's dedicated `docker-compose` `postgres-audit` service (see `.mise/lib/test_slots.sh`'s `KMS_AUDIT_
crate/server_database/src/stores/audit/pgsql.rs:993
↓ 29 callers
Function
certify
(cli_conf_path: &str, certify_op: CertifyOp)
crate/clients/ckms/src/tests/certificates/certify.rs:66
↓ 29 callers
Method
cleanup
(&self, client: &KmsClient)
crate/test_kms_server/src/certify_tests.rs:39
← previous
next →
101–200 of 16,000, ranked by callers