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
↓ 3 callers
Function
isPatch
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
isPrintable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
isSpecial
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
is_EOL
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
is_WHITE_SPACE
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
is_crypto_officer_activated_by
Returns `true` if `user` has their own active Crypto Officer ceremony record. Other users in `crypto_officer_users` may simultaneously be active COs
crate/server_database/src/core/database_permissions.rs:124
↓ 3 callers
Function
is_enrollment_issued
`true` when `certificate` carries the [`ENROLLED_CERTIFICATE_POLICY_OID`] stamped on certificates issued through EST / SCEP. Fails closed when the cer
crate/server/src/middlewares/tls_auth.rs:146
↓ 3 callers
Method
is_extractable
Read the `CKA_EXTRACTABLE` attribute of a key object. Returns `Ok(None)` if the object cannot be found or the attribute cannot be read (e.g. the HSM
crate/hsm/base_hsm/src/session/session_impl.rs:3980
↓ 3 callers
Function
is_key_type
(object_type: ObjectType)
crate/server_database/src/stores/redis/redis_with_findex.rs:72
↓ 3 callers
Function
is_pg_retryable_error
(msg: &str)
crate/server_database/src/stores/sql/pgsql.rs:52
↓ 3 callers
Function
is_signing_algorithm_supported
(algorithm: HsmSigningAlgorithm)
crate/hsm/base_hsm/src/session/session_impl.rs:209
↓ 3 callers
Method
is_tls_enabled
(&self)
crate/server/src/config/command_line/tls_config.rs:82
↓ 3 callers
Function
issued_certificate_uid
UID of the stored certificate with `serial_hex` issued by the enrollment CA.
crate/server/src/tests/enrollment_tests.rs:1464
↓ 3 callers
Method
join_split_key
This operation reconstructs a Managed Cryptographic Object from split-key shares. KMIP 2.1 §4.29.
crate/server/src/core/kms/kmip.rs:145
↓ 3 callers
Method
jose_encrypt
Encrypt data via the JOSE REST endpoint. This is a convenience wrapper around `POST /v1/crypto/encrypt`.
crate/clients/client/src/jose.rs:197
↓ 3 callers
Function
jose_oaep_hashes
Return `(oaep_hash, mgf1_hash)` for an RSA-OAEP key management algorithm. Per RFC 7518 §4.3: - `RSA-OAEP` → SHA-1 + MGF1-SHA-1 - `RSA-OAEP-256`
crate/server/src/routes/jose/algorithm.rs:412
↓ 3 callers
Function
kem_keygen
( vendor_id: &str, dk_uid: String, dk_attributes: Option<Attributes>, ek_uid: String, ek_a
crate/crypto/src/crypto/kem.rs:57
↓ 3 callers
Function
key_algorithm_from_attributes
(attributes: &Attributes)
crate/clients/pkcs11/provider/src/kms_object.rs:1475
↓ 3 callers
Method
key_size
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:293
↓ 3 callers
Function
kh
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
kmip1_default_get_attributes_names
--------------------------------------------------------------------------- Helper: send a KMIP 1.x `GetAttributes` with no attribute name (default al
crate/server/src/tests/ttlv_tests/attribute_version_gating.rs:278
↓ 3 callers
Function
kmip1_get_attributes_names
Send a KMIP 1.x `GetAttributes` for `attribute_name` (or all attributes when `None`) and return the attribute names carried by the response.
crate/server/src/tests/ttlv_tests/attribute_version_gating.rs:288
↓ 3 callers
Function
kms_with_config
( google_cse_migration_key: Option<String>, )
crate/server/src/tests/google_cse/server_setup.rs:228
↓ 3 callers
Method
label
The operation name used in report output (also becomes the report's `### <label>` section heading and SVG chart file name).
crate/clients/clap/src/actions/pkcs11/bench/load.rs:62
↓ 3 callers
Function
labels
(modes: &[ConcreteMode])
crate/clients/clap/src/actions/pkcs11/bench/load.rs:1207
↓ 3 callers
Function
lib_isObject
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
list_instances
Lists every `instance_id` present in the audit database, in ascending order. # Errors Returns an error if the query fails.
crate/server_database/src/stores/audit/pgsql.rs:891
↓ 3 callers
Method
list_object_permissions
List all the permissions granted on an object per user id
crate/server_database/src/stores/redis/permissions.rs:209
↓ 3 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:509
↓ 3 callers
Function
list_user_access_rights_on_object_
( uid: &str, userid: &str, no_inherited_access: bool, pool: &Pool, )
crate/server_database/src/stores/sql/mysql.rs:1508
↓ 3 callers
Function
load_manifest
Load a test vector manifest from a TOML file.
crate/test_kms_server/src/vector_runner.rs:462
↓ 3 callers
Method
locate
( func_list: &CK_FUNCTION_LIST, session: CK_SESSION_HANDLE, provisioned: &ProvisionedK
crate/clients/clap/src/actions/pkcs11/capabilities.rs:1129
↓ 3 callers
Function
locate_usk
Locate all the user decryption keys associated with the master secret key and for the given access structure attributes
crate/server/src/core/cover_crypt/locate_user_decryption_keys.rs:27
↓ 3 callers
Function
log_init_colorized
(rust_log: Option<&str>)
crate/server/src/tests/migrate/redis_tests.rs:66
↓ 3 callers
Method
lookup
(&self, hash: &[u8; 32])
crate/server/src/middlewares/spire_token.rs:92
↓ 3 callers
Function
low_level_init_test
(cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:87
↓ 3 callers
Function
m
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
mac_verify
( &self, request: MACVerify, user: &UserId, )
crate/server/src/core/kms/kmip.rs:588
↓ 3 callers
Function
makeMap
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
makeOrderedMap
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
make_kms_with_co
Build a KMS with the CO role configured for `co_user` (config-only, no ceremony). `require_ceremony = false` means `co_user` is an active CO from sta
crate/server/src/tests/crl_tests.rs:782
↓ 3 callers
Function
make_raw_key_block
(raw: Vec<u8>)
crate/server/src/core/operations/create_split_key.rs:558
↓ 3 callers
Function
make_wire_request
Wrap a single KMIP operation in a `RequestMessage` ready for TTLV serialization. The KMIP wire formats require a `RequestMessage` at the top level; b
crate/clients/clap/src/actions/bench/transport.rs:152
↓ 3 callers
Method
map
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
mapWithLocateConcurrency
(items: Input[], map: (item: Input) => Promise<Output>)
ui/src/components/common/Locate.tsx:86
↓ 3 callers
Function
merge_granted_operations
Add one `(id, owner, state, operations)` row to the per-object map of granted operations. The same object may be returned twice: once for the direct
crate/server_database/src/stores/sql/mod.rs:24
↓ 3 callers
Method
message_sign_final
Finalize the message-based signing operation (`C_MessageSignFinal`). # Errors Returns an error if `C_MessageSignFinal` fails.
crate/hsm/base_hsm/src/session/message_sign.rs:195
↓ 3 callers
Function
metadata_request
(arn: &str, operation: &str)
crate/server/src/routes/aws_xks/tests.rs:102
↓ 3 callers
Function
migrate_aws_xks_key_access
One-time, idempotent migration that grants the reserved AWS XKS service identity access to XKS keys created by earlier KMS versions. Before the fix f
crate/server/src/start_kms_server.rs:248
↓ 3 callers
Function
migrate_block_cipher_mode_if_needed
Upgrades wrongly serialized `BlockCipherMode::LegacyNISTKeyWrap` (`0x8000_000D`) to `BlockCipherMode::AESKeyWrapPadding` (`0x0000_000C`) for backward
crate/server_database/src/lib.rs:73
↓ 3 callers
Function
mutate
( req: &AdmissionRequest, state: &WebhookState, )
crate/clients/k8s/operator/src/webhook.rs:132
↓ 3 callers
Method
name
(self)
crate/crypto/src/crypto/fpe/alphabet.rs:80
↓ 3 callers
Function
nested_structures
Build `depth` nested Structures (tag `0x42_007B`), each wrapping the next. The innermost Structure contains a single `BatchCount` Integer leaf. This
crate/kmip/src/ttlv/tests/wire_edge_cases.rs:58
↓ 3 callers
Function
nested_xml
Build XML for `depth` nested `<RequestMessage type="Structure">` elements.
crate/kmip/src/ttlv/tests/xml_edge_cases.rs:19
↓ 3 callers
Function
new_id
()
crate/hsm/base_hsm/src/session/message_signature_tests.rs:260
↓ 3 callers
Method
next_value_seed
(&mut self, seed: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/structure_walker.rs:57
↓ 3 callers
Function
normalize_gnupg_eddsa_secret_mpi
Work around `GnuPG`'s encoding of `EdDSA` secret keys, which the `pgp` crate rejects with "Invalid checksum". For an unprotected `Ed25519` key `GnuPG
crate/clients/client_utils/src/openpgp_format.rs:241
↓ 3 callers
Function
numberIsNaN
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
ob
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
obfuscate_key
(&self, role: &str)
crate/server_database/src/ceremony_keys.rs:149
↓ 3 callers
Function
ocsp_cache_key
Cache key for one `CertID`: the response echoes the requester's `CertID` (hash algorithm and issuer hashes), so responses for different `CertID` encod
crate/server/src/routes/ocsp/handler.rs:133
↓ 3 callers
Function
oe
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
open_append
Opens the audit file for appending, creating parent directories if needed.
crate/server/src/core/audit/recovery.rs:598
↓ 3 callers
Function
openpgp_verify_detached
Accepts binary or armored signature. Tries the primary key, then every signing subkey whose binding to the primary key verifies (including its back-si
crate/crypto/src/crypto/openpgp/mod.rs:845
↓ 3 callers
Function
options_retrievalURI
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 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:337
↓ 3 callers
Function
otel_http_metrics_middleware
Creates the OpenTelemetry HTTP metrics middleware. Records `kms.http.requests.total`, `kms.http.request.duration`, and `kms.active.connections` for e
crate/server/src/middlewares/otel_http_middleware.rs:27
↓ 3 callers
Function
packet
(tag: u8, body: &[u8])
crate/clients/client_utils/src/openpgp_format.rs:311
↓ 3 callers
Function
paramToIdentifier
(s,{returnAll:o=!1,allowHashes:i=!0}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
parseLinkLabel
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
parse_attributes
Parse the JSON `attributes` string from a `MountRequest` into a list of [`ObjectSpec`] entries.
crate/clients/k8s/csi_provider/src/service.rs:180
↓ 3 callers
Function
parse_distinguished_name
Parse `C=FR, O=Acme\, SA, OU=PKI, OU=Sub, CN=Sub CA` into an X.509 name, keeping the RDNs in input order and allowing repeated attributes. Any OpenSSL
crate/server/src/core/operations/generate_csr.rs:69
↓ 3 callers
Function
parse_export_ttlv_response
(response: &str, key_format: &str)
crate/clients/wasm/src/wasm.rs:1671
↓ 3 callers
Function
parse_selected_attributes
( vendor_id: &str, attributes: &Attributes, attribute_tags: &[Tag], attribute_link_types: &[CL
crate/clients/client_utils/src/attributes_utils.rs:98
↓ 3 callers
Method
password
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
patch
( &self, endpoint: &str, content: String, )
crate/clients/clap/src/actions/google/gmail_client/client_builder.rs:108
↓ 3 callers
Method
peek
(&self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:51
↓ 3 callers
Function
peek_cek
Look up a cached CEK for the given JWE `encrypted_key` ciphertext. Returns `Some(cek_bytes)` on a cache hit, `None` on a miss or any error. Errors ar
crate/server/src/routes/jose/cek_cache.rs:111
↓ 3 callers
Function
pg_retry_backoff_ms
(attempt: u32)
crate/server_database/src/stores/sql/pgsql.rs:76
↓ 3 callers
Function
pj
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
plain_response
A plain-text error response (RFC 7030 §4.2.3: a response without a PKI content type carries a human-readable message).
crate/server/src/routes/est/mod.rs:39
↓ 3 callers
Method
prehashed
`true` when the signer signs the [`digest`](Self::digest) of the data (RSA, ECDSA); `false` when it signs the raw data (`EdDSA` cannot take a digest).
crate/server/src/core/certificate/oracle_signing.rs:127
↓ 3 callers
Method
priv_uid
(&self)
crate/clients/cng/src/key.rs:219
↓ 3 callers
Function
privileged_decrypt_request
( algorithm: &str, encrypted_data_encryption_key: String, wrapped_private_key: String, spki_ha
crate/server/src/tests/google_cse/crypto_paths.rs:536
↓ 3 callers
Function
processBuffer
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
protoChain
(s,o=[s])
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
provision_restricted_writer
Idempotently provisions the hardened-deployment role: `SELECT`/`INSERT` on `kms_audit_events`, `SELECT`/`INSERT`/`UPDATE` on `kms_audit_control`, no D
crate/server_database/src/stores/audit/pgsql.rs:1870
↓ 3 callers
Function
qh
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
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/operations/query.rs:19
↓ 3 callers
Method
query
Send a Query operation to interrogate server capabilities and metadata.
crate/clients/client/src/kms_rest_client.rs:381
↓ 3 callers
Method
randInt
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
raw_binary_post
POST raw binary bytes to the KMIP binary endpoint and return the HTTP status. The binary endpoint is `/kmip` (not `/kmip/2_1`). A network / connectio
crate/clients/clap/src/tests/serialization/batch_abuse.rs:29
↓ 3 callers
Function
readLineBreak
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
read_limited_body
Read a request body of at most [`MAX_ENROLLMENT_BODY`] bytes; the error is the response to send back.
crate/server/src/routes/enrollment.rs:213
↓ 3 callers
Function
read_request
Read one TTLV message (8-byte header followed by its body). Returns `Ok(None)` when the client closed the connection or stayed idle past [`SOCKET_IO_
crate/server/src/socket_server.rs:475
↓ 3 callers
Method
recertify
`ReCertify` — certificate rotation with a new UID. Creates a fresh certificate for the same subject/issuer and links old → new via `ReplacementObject
crate/server/src/core/kms/kmip.rs:687
↓ 3 callers
Method
record_success
Forget the failures of `client` after a successful authentication.
crate/server/src/routes/enrollment_guard.rs:148
↓ 3 callers
Method
register
( &self, request: Register, user: &UserId, )
crate/server/src/core/kms/kmip.rs:616
↓ 3 callers
Method
register
Register an HSM key UID for cleanup at the end of the benchmark.
crate/clients/clap/src/actions/bench/helpers.rs:46
↓ 3 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:114
← previous
next →
1,701–1,800 of 12,829, ranked by callers