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
↓ 4 callers
Function
isAnchor
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
is_admin
Returns `true` if `user` is an HSM admin. Wildcard `"*"` grants access to every user.
crate/interfaces/src/hsm/hsm_store.rs:144
↓ 4 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:776
↓ 4 callers
Function
isolation_test_kms
Create a KMS instance backed by a fresh in-memory `SQLite` database.
crate/server/src/routes/spire/transit.rs:1146
↓ 4 callers
Function
jose_create_sym_key
( rt: &Runtime, client: &KmsClient, alg: &'static str, )
crate/clients/clap/src/actions/bench/jose.rs:34
↓ 4 callers
Function
json
(payload: unknown, status = 200)
ui/tests/unit/tsx-imports/ServerHealth.test.ts:12
↓ 4 callers
Function
json_access
(db: &DB)
crate/server_database/src/tests/json_access_test.rs:24
↓ 4 callers
Function
jwt_authorization_config
Fetch the JWT authorization configuration for Google CSE 'drive' and 'meet'
crate/server/src/routes/google_cse/jwt.rs:124
↓ 4 callers
Function
k
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
key_data_to_wrap
Determine the Key data to wrap. The key data is determined based on the encoding. # Arguments `object_key_block` - the key block of the object to wra
crate/crypto/src/crypto/wrap/wrap_key.rs:165
↓ 4 callers
Function
key_inventory_test
Verify `key_inventory` and `key_deactivation_dates`: - keys are grouped by object type, algorithm, length and state; - destroyed keys and non-key obje
crate/server_database/src/tests/database_tests.rs:985
↓ 4 callers
Function
key_wrapped_by
A 32-byte "wrapped" AES key whose wrapping key is the HSM key `wrapping_key_uid`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:406
↓ 4 callers
Function
kmip1_get_attribute_list_names
--------------------------------------------------------------------------- Helper: send a KMIP 1.x `GetAttributeList` and return the advertised names
crate/server/src/tests/ttlv_tests/attribute_version_gating.rs:93
↓ 4 callers
Function
kms_with_ca
(with_certificate: bool)
crate/server/src/routes/spire/pki.rs:670
↓ 4 callers
Function
kvRequest
(serverUrl: string, method: string, path: string, body?: object)
ui/src/actions/Secrets/KvSecrets.tsx:52
↓ 4 callers
Function
li
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
license
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
list_pkcs11_v3_interfaces
Lists the PKCS#11 v3.0 interfaces exposed by the loaded library, if any. Returns `Ok(None)` when the library does not export `C_GetInterfaceList` (i.
crate/hsm/base_hsm/src/hsm_lib.rs:584
↓ 4 callers
Method
list_uids_for_tags
(&self, tags: &HashSet<String>)
crate/server_database/src/stores/redis/redis_with_findex.rs:1262
↓ 4 callers
Method
list_uids_for_tags
(&self, tags: &HashSet<String>)
crate/server_database/src/core/database_objects.rs:598
↓ 4 callers
Function
list_uids_for_tags_test
( db: &DB, )
crate/server_database/src/tests/list_uids_for_tags_test.rs:15
↓ 4 callers
Function
load_issuer_key
Load the issuer signing key: in memory for database keys, by reference for HSM keys (which may be non-extractable and must never be exported).
crate/server/src/core/operations/certify/resolve_issuer.rs:155
↓ 4 callers
Function
load_raw_private_key
( algorithm_name: &str, raw_bytes: &[u8], )
crate/crypto/src/crypto/pqc/mod.rs:320
↓ 4 callers
Function
load_raw_public_key
( algorithm_name: &str, raw_bytes: &[u8], )
crate/crypto/src/crypto/pqc/mod.rs:279
↓ 4 callers
Method
locate
This operation requests that the server search for one or more Managed Objects, depending on the attributes specified in the request. All attributes a
crate/clients/client/src/kms_rest_client.rs:507
↓ 4 callers
Function
locate_kms_objects
( kms_rest_client: &KmsClient, vendor_id: &str, tags: &[String], )
crate/clients/pkcs11/provider/src/kms_object.rs:170
↓ 4 callers
Function
locate_objects_of_type
Locate KMS objects by tags, optionally filtering by `ObjectType`. This avoids returning objects of wrong type when multiple object types share the sam
crate/clients/pkcs11/provider/src/kms_object.rs:477
↓ 4 callers
Function
login_as_app
( port: u16, trusted_proxies: Vec<ipnet::IpNet>, )
crate/server/src/routes/ui_auth.rs:1271
↓ 4 callers
Function
mac_request
( uid: &UniqueIdentifier, data: Option<&[u8]>, correlation_value: Option<Vec<u8>>,
crate/server/src/core/operations/mac.rs:715
↓ 4 callers
Function
make_ca
Self-signed CA; returns `(certificate id, private key id)`.
crate/server/src/tests/revocation_authority_tests.rs:103
↓ 4 callers
Function
make_kms_with
Like [`make_kms`], letting the caller adjust the configuration first.
crate/server/src/tests/enrollment_tests.rs:134
↓ 4 callers
Function
make_request
(namespace: &str, secret_uids: &str)
crate/clients/k8s/operator/src/webhook.rs:397
↓ 4 callers
Function
make_sink
(file: std::fs::File, committed_len: u64)
crate/server/src/core/audit/file_sink.rs:468
↓ 4 callers
Method
merge
Merge the attributes from `other` into `self`. If an attribute is present in both `self` and `other`, and *overwrite* is set, the value from `other` i
crate/kmip/src/kmip_2_1/kmip_attributes.rs:792
↓ 4 callers
Function
meta_tag
Build the exact tag carrying the path of a metadata object (read back by listings).
crate/server/src/routes/kv/metadata.rs:101
↓ 4 callers
Function
metadata_update_operation
Build the compare-and-swap replacing the metadata stored in `owm` by `metadata`. It fails (conflict) if the metadata changed or was destroyed since `
crate/server/src/routes/kv/metadata.rs:444
↓ 4 callers
Function
min_plaintext_length
Minimum length of the plaintext for FPE to be secure. Returns the smallest `n` such that `alphabet_len^n >= RECOMMENDED_THRESHOLD`.
crate/crypto/src/crypto/fpe/alphabet.rs:14
↓ 4 callers
Function
mock_login_upstream
A mock Auth Verifier on a loopback port answering every request with `status_line` and `extra_headers` (each ending in CRLF). Returns the port and the
crate/server/src/routes/ui_auth.rs:1226
↓ 4 callers
Function
modify_attribute
( kms: &Arc<KMS>, uid: &str, attribute: Attribute, )
crate/server/src/tests/test_modify_attribute.rs:81
↓ 4 callers
Function
mount_guard
Guard for a scope mounted at `mount_path` (`/<kv_mount>` or `/v1/<kv_mount>`): it claims only the requests [`configure_routes`] serves. Actix keeps lo
crate/server/src/routes/kv/mod.rs:114
↓ 4 callers
Function
mount_request
(objects: &str, namespace: Option<&str>)
crate/clients/k8s/csi_provider/src/service.rs:460
↓ 4 callers
Function
ms
(values: &[u64])
crate/clients/clap/src/actions/pkcs11/bench/load.rs:1383
↓ 4 callers
Function
names_reserved_identity
Whether `name` would resolve to the `reserved` identity in the database: `MySQL` / `MariaDB` compare the `userid` / `owner` columns with their default
crate/server/src/middlewares/mod.rs:166
↓ 4 callers
Function
new_kek
(client: cosmian_kms_client::KmsClient)
crate/clients/clap/src/actions/symmetric/decrypt.rs:464
↓ 4 callers
Function
node
(tag: &'static str, value: TTLValue)
crate/kmip/src/lint_cleanup_characterization_tests.rs:6
↓ 4 callers
Function
oauth2_toml
TOML for an `oauth2_conf` whose token endpoint is `token_url`, with an optional refresh token.
crate/clients/ckms/src/tests/login_tests.rs:208
↓ 4 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:233
↓ 4 callers
Function
objectify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Method
objects_db
(&self)
crate/server_database/src/stores/redis/redis_with_findex.rs:609
↓ 4 callers
Function
opId
(s,o,i="",{v2OperationIdCompatibilityMode:u}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
op_encrypt
Helper to encrypt data (Operator operation)
crate/clients/ckms/src/tests/rbac_tests.rs:38
↓ 4 callers
Method
open_contexts
(&self)
crate/hsm/base_hsm/src/session/message_context.rs:116
↓ 4 callers
Function
open_for_append
(path: &Path)
crate/server/src/core/audit/file_sink.rs:460
↓ 4 callers
Function
openpgp_normalize
Accepts armored or binary, secret or public input. Returns `(armored_bytes, is_secret_key)`.
crate/crypto/src/crypto/openpgp/mod.rs:593
↓ 4 callers
Function
openssl_x509_to_certificate_attributes
(x509: &X509)
crate/crypto/src/openssl/certificate.rs:59
↓ 4 callers
Method
operation_enum
(&self)
crate/kmip/src/kmip_1_4/kmip_operations.rs:2706
↓ 4 callers
Function
options
(value: Result<JsValue, JsValue>)
crate/clients/wasm/tests/wasm_bindings.rs:842
↓ 4 callers
Function
oracle_sign
Sign the to-be-signed DER `tbs` with the HSM key through the crypto oracle, using the exact `key.uid`. RSA and ECDSA sign its digest ([`X509SignatureA
crate/server/src/core/certificate/oracle_signing.rs:330
↓ 4 callers
Function
out
(line: std::fmt::Arguments<'_>)
crate/clients/clap/src/actions/cng_verify.rs:613
↓ 4 callers
Function
owner
(db: &DB)
crate/server_database/src/tests/owner_test.rs:18
↓ 4 callers
Function
padding_method
Default padding: none for ECB (KMIP mandatory vectors), PKCS#5 otherwise.
crate/server/src/core/operations/encrypt.rs:734
↓ 4 callers
Function
pane
(page: Page)
ui/tests/e2e/kv-secrets-flow.spec.ts:21
↓ 4 callers
Function
parse_export_ttlv_response
(response: &str, key_format: &str)
crate/clients/wasm/src/wasm.rs:1736
↓ 4 callers
Function
parse_hash_alg_from_wide
Parse a CNG hash algorithm name (wide string) into a `HashingAlgorithm`. Returns `None` if the pointer is null or the algorithm is unknown.
crate/clients/cng/src/provider.rs:181
↓ 4 callers
Function
parse_pairs
Split `KEY=VALUE` arguments into a JSON object; a key may not repeat.
crate/clients/clap/src/actions/kv.rs:280
↓ 4 callers
Function
parse_uid_entry
Parse `"<uid>:<filename>"` — both parts are required.
crate/clients/k8s/operator/src/lib.rs:111
↓ 4 callers
Function
parse_uid_placeholder_index
Single source of truth to parse placeholder index from a UniqueIdentifier text string. Supports raw (uid-N / $UNIQUE_IDENTIFIER_N) and namespaced (tes
crate/clients/clap/src/tests/xml/request.rs:1349
↓ 4 callers
Function
parse_uri
Strip the `secret://` prefix and split at the first `/`. Returns `(first_segment, remainder)`.
crate/secret_backends/src/common.rs:24
↓ 4 callers
Method
peek_mut
(&mut self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:79
↓ 4 callers
Function
pending
(import_blob: Option<Vec<u8>>, algorithm: KeyAlgorithm)
crate/clients/cng/src/key.rs:537
↓ 4 callers
Function
permissions
(db: &DB)
crate/server_database/src/tests/permissions_test.rs:15
↓ 4 callers
Method
post_json
Send an HTTP POST request with a JSON body. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:464
↓ 4 callers
Function
predicates_isBooleanJSONSchema
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callers
Function
prepare_sym_key_elements
( number_of_bits: Option<usize>, wrap_key_b64: &Option<String>, algorithm: SymmetricAlgorithm, )
crate/clients/client_utils/src/create_utils.rs:68
↓ 4 callers
Function
preserved_data
(path: &Path)
crate/server_database/src/tests/sqlite_migration_tests.rs:59
↓ 4 callers
Method
preserved_snapshot
(&self)
crate/server_database/src/tests/redis_migration_tests.rs:199
↓ 4 callers
Method
priv_uid
(&self)
crate/clients/cng/src/key.rs:218
↓ 4 callers
Function
profile
(id: u32)
crate/clients/pkcs11/module/src/objects_store.rs:116
↓ 4 callers
Function
put_string
(output: &mut Vec<u8>, value: &[u8])
crate/server/src/routes/ssh/certificate.rs:429
↓ 4 callers
Method
raw_pool
(&self)
crate/server_database/src/stores/sql/pgsql.rs:786
↓ 4 callers
Method
record_hsm_operation
Record HSM operation. `operation` must be a `'static` literal (e.g. `Op::OP_NAME`, `"Wrap"`, `"Unwrap"`). `hsm_model` is a runtime label from `hsm_mo
crate/server/src/core/otel_metrics.rs:763
↓ 4 callers
Method
record_kmip_operation_duration
Record KMIP operation duration
crate/server/src/core/otel_metrics.rs:441
↓ 4 callers
Function
register_backend
Stores (or replaces) the backend used by all PKCS#11 operations. Called by the provider at `C_GetFunctionList` (modes 0/1) or at `C_Login` time when O
crate/clients/pkcs11/module/src/traits/backend.rs:198
↓ 4 callers
Function
reject_server_vendor_attributes
Rejects server-owned custom attributes in the attributes a client supplies when creating, importing or registering an object.
crate/server/src/core/operations/attributes/policy.rs:85
↓ 4 callers
Function
rejection
(request: &http::Request<Bytes>, params: &AwsXksParams)
crate/server/src/routes/aws_xks/sigv4.rs:410
↓ 4 callers
Method
remaining
Time left before the deadline, or `TimedOut` once it has passed.
crate/server/src/socket_server.rs:407
↓ 4 callers
Method
remote_id
(&self)
crate/clients/pkcs11/provider/src/pkcs11_public_key.rs:108
↓ 4 callers
Method
remote_verify
( &self, remote_id: &str, algorithm: &SignatureAlgorithm, data: &[u8],
crate/clients/pkcs11/provider/src/backend.rs:698
↓ 4 callers
Method
removal_cookie
`Set-Cookie` value that makes the browser drop the session cookie.
crate/server/src/middlewares/ui_session.rs:170
↓ 4 callers
Function
replace_dollars_with_qn
(sql: &str)
crate/server_database/src/stores/sql/sqlite.rs:661
↓ 4 callers
Function
request_with
Build a `SignatureVerify` carrying only the two mutually exclusive payload fields; every other field is irrelevant to input resolution.
crate/server/src/core/operations/signature_verify.rs:504
↓ 4 callers
Function
require_id
Extract the `Id` from a `SearchOptions`, returning an error if `All` was passed. Centralises the "find requires an ID" check shared by four `Backend`
crate/clients/pkcs11/provider/src/backend.rs:49
↓ 4 callers
Function
require_leader_region
Reject an operation restricted to the leader region of a multi-region active-active deployment (see [`crate::config::RegionRole`]). No-op for the defa
crate/server/src/core/mod.rs:33
↓ 4 callers
Function
resolve_aad
( data_encryption_algorithm: DataEncryptionAlgorithm, aad: Option<Vec<u8>>, )
crate/clients/clap/src/actions/symmetric/cipher_io.rs:16
↓ 4 callers
Function
resolve_async
Run an async future on a dedicated thread with a fresh single-threaded tokio runtime. Required because config loading runs before the main runtime.
crate/secret_backends/src/common.rs:7
↓ 4 callers
Function
resolve_client_ip
Same rule as [`extract_client_ip`] on already extracted values, for handlers that sit outside the audit middleware (EST / SCEP). `x_forwarded_for` is
crate/server/src/middlewares/audit/client_ip.rs:55
↓ 4 callers
Function
resolve_single_uri
Helper: wrap a URI in a minimal TOML table and resolve it.
crate/secret_backends/src/lib.rs:167
↓ 4 callers
Function
retrieve_issuer_private_key_and_certificate
Retrieve the certificate associated to the given private key. If the private key is not provided, the private key is retrieved from the certificate.
crate/server/src/core/certificate/find.rs:173
↓ 4 callers
Method
retrieve_object_uncached
Retrieve a single object straight from its object store, bypassing (and not populating) the object cache. The cache revalidates a hit against the obj
crate/server_database/src/core/database_objects.rs:308
↓ 4 callers
Method
revoke
(&self, sid: &str, expires_at: i64)
crate/server/src/middlewares/ui_session.rs:103
← previous
next →
1,701–1,800 of 16,000, ranked by callers