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
↓ 2 callers
Function
pki_operation
Process a signed `pkiMessage` and produce the `CertRep` response.
crate/server/src/routes/scep/pki_operation.rs:117
↓ 2 callers
Function
placeholder_signer_certificate
Self-signed v3 certificate with `signer`'s subject and validity but the `placeholder` key. Passed to the OCSP response builder in place of the real s
crate/server/src/core/certificate/oracle_signing.rs:419
↓ 2 callers
Function
plugins_filter
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
policy
()
crate/server/src/routes/ssh/storage.rs:203
↓ 2 callers
Function
policy
()
crate/clients/k8s/operator/src/controller.rs:609
↓ 2 callers
Function
post_kmip_json
Post a full `RequestMessage` as JSON to `/kmip` and return the parsed `ResponseMessage`. This exercises the version-aware JSON handler (supports KMIP
crate/server/src/tests/test_utils.rs:740
↓ 2 callers
Function
pow
(x: u32, e: usize)
crate/crypto/src/crypto/fpe/ff1.rs:507
↓ 2 callers
Function
pqc_keygen_unseeded
( algorithm_name: &str, propquery: Option<&CStr>, )
crate/crypto/src/crypto/pqc/mod.rs:178
↓ 2 callers
Function
pqc_signing_key_usage
Shared helper: build the critical `keyUsage` extension for PQC **signing** algorithms (ML-DSA per RFC 9881 §5, SLH-DSA per RFC 9909 §6). - End-entity
crate/server/src/core/operations/certify/build_certificate.rs:259
↓ 2 callers
Function
predicates_isBooleanJsonSchemaElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
prepare_certificate_export_elements
( output_format: &CertificateExportFormat, pkcs12_password: Option<String>, )
crate/clients/client_utils/src/export_utils.rs:337
↓ 2 callers
Function
prepare_csr
Prepare a PKCS#10 request built by OpenSSL for signing with `algorithm`: returns the request and the to-be-signed DER to pass to [`oracle_sign`].
crate/server/src/core/certificate/oracle_signing.rs:311
↓ 2 callers
Function
prepare_key_export_elements
( key_format: &ExportKeyFormat, wrapping_algorithm: &Option<WrappingAlgorithm>, )
crate/clients/client_utils/src/export_utils.rs:178
↓ 2 callers
Function
prepare_key_import_elements
Prepare the KMIP object and import attributes for a key import. # Errors Returns an error if the key bytes cannot be decoded according to the format
crate/clients/client_utils/src/import_utils.rs:364
↓ 2 callers
Function
prepare_ocsp_response
Decode a DER `OCSPResponse` built with [`placeholder_signer_certificate`], swap the embedded placeholder certificate (if any) for `signer`, set `algor
crate/server/src/core/certificate/oracle_signing.rs:446
↓ 2 callers
Function
prepare_op
Serialize a single operation into `(url, body, content_type)` for posting.
crate/clients/clap/src/actions/bench/transport.rs:205
↓ 2 callers
Function
prepare_ops
Resolves `modes` into runnable `(label, op)` pairs, performing every one-time setup/object-discovery/probe call a mode's closure needs — shared by bot
crate/clients/clap/src/actions/pkcs11/bench/load.rs:355
↓ 2 callers
Function
primary_self_signatures
Direct-key and User ID self-signatures over the primary key that verify against it.
crate/crypto/src/crypto/openpgp/mod.rs:416
↓ 2 callers
Method
primitive
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
private_key_id
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:99
↓ 2 callers
Function
private_key_link_of
Link to the private key of `public_key`. HSM objects carry no KMIP links: the private key of an HSM public key `<sk>_pk` is `<sk>`.
crate/server/src/core/operations/certify/resolve_issuer.rs:172
↓ 2 callers
Method
private_key_mut
Get the private key
crate/crypto/src/crypto/mod.rs:94
↓ 2 callers
Function
privileged_denied
The error of a caller that may not use a privileged endpoint.
crate/server/src/routes/google_cse/jwt.rs:440
↓ 2 callers
Function
probe_database
( timeout: Duration, check: impl Future<Output = Result<(), String>>, )
crate/server/src/routes/health.rs:163
↓ 2 callers
Function
probe_result
(joined: Result<InterfaceResult<()>, tokio::task::JoinError>)
crate/server/src/routes/health.rs:205
↓ 2 callers
Function
process_certificate
( vendor_id: &str, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:379
↓ 2 callers
Function
process_covercrypt_key
( covercrypt_key: &mut Object, key_wrapping_specification: &Option<KeyWrappingSpecification>, key_
crate/server/src/core/operations/export_get.rs:1113
↓ 2 callers
Function
process_interop_operation
()
crate/server/src/core/operations/message.rs:774
↓ 2 callers
Function
process_log_operation
Executes the Log operation (KMIP 2.1 §6.1.29): writes the client message to the server log. The message is `{:?}`-formatted so control characters cann
crate/server/src/core/operations/message.rs:788
↓ 2 callers
Function
process_opaque_object
( vendor_id: &str, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:1275
↓ 2 callers
Function
process_pgp_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:1203
↓ 2 callers
Function
process_private_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:590
↓ 2 callers
Function
process_public_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:462
↓ 2 callers
Function
process_secret_data
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:1109
↓ 2 callers
Function
process_symmetric_key
( kms: &KMS, request: Import, user: &UserId, )
crate/server/src/core/operations/import.rs:274
↓ 2 callers
Function
process_vault_token
Shared vault-token processing extracted from [`spire_token_middleware`] and [`vault_token_optional_middleware`]. The two wrappers differ only in how
crate/server/src/middlewares/spire_token.rs:289
↓ 2 callers
Function
prompt_optional_password
Prompt for an optional password; returns `None` if the user leaves it empty.
crate/clients/ckms/src/commands.rs:507
↓ 2 callers
Function
prompt_optional_text
Prompt for an optional text field; returns `None` if the user leaves it empty.
crate/clients/ckms/src/commands.rs:496
↓ 2 callers
Function
prompt_required_text
Prompt for a required (non-empty) text field.
crate/clients/ckms/src/commands.rs:486
↓ 2 callers
Method
protection
Sensitive/extractable attributes of the key in the KMS (drive `CKA_SENSITIVE`, `CKA_EXTRACTABLE` and whether `CKA_VALUE` may be returned).
crate/clients/pkcs11/module/src/traits/private_key.rs:41
↓ 2 callers
Method
pub_uid
Returns the public key UID (falls back to private key UID).
crate/clients/cng/src/key.rs:228
↓ 2 callers
Method
public_params
(&self)
crate/crypto/src/crypto/openpgp/mod.rs:216
↓ 2 callers
Method
purge
Drop the keys whose quota has fully replenished: without it the per-IP map grows by one entry per distinct peer address for the whole life of the proc
crate/server/src/middlewares/rate_limiter.rs:67
↓ 2 callers
Function
putNoContentRequest
(path: string, request: object, serverUrl: string)
ui/src/utils/utils.ts:207
↓ 2 callers
Function
put_mpint
(output: &mut Vec<u8>, value: &[u8])
crate/server/src/routes/ssh/certificate.rs:437
↓ 2 callers
Method
put_no_content
PUT `data` as JSON; the success response carries no body (e.g. `204 No Content`). The request body is never logged.
crate/clients/client/src/kms_rest_client.rs:960
↓ 2 callers
Function
q
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
qj
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
query
(serial: &str, nid: i32)
crate/server/src/routes/ocsp/handler.rs:841
↓ 2 callers
Function
query_config
Query-string configuration of the KV scopes: errors use the Vault `errors` envelope.
crate/server/src/routes/kv/mod.rs:89
↓ 2 callers
Function
query_vendor_id
Query the KMS server for its vendor identification string. Falls back to `VENDOR_ID_COSMIAN` if the server doesn't report one.
crate/clients/cng/src/backend.rs:74
↓ 2 callers
Function
r
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
radix_min_len
Returns the minimum numeral-string length required by FF1 for `radix`. Mirrors the logic in `Radix::from_u32` without exposing the internal type.
crate/crypto/src/crypto/fpe/ff1.rs:513
↓ 2 callers
Function
random_pick
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
random_token
`len` random bytes from [`KmsRng`], base64url-encoded without padding. The result is a secret (PKCE verifier, CSRF token): it is wiped on drop.
crate/clients/client/src/http_client/login.rs:24
↓ 2 callers
Method
raw_bytes
(&self)
crate/clients/pkcs11/provider/src/pkcs11_symmetric_key.rs:87
↓ 2 callers
Function
raw_certificates
Wrap DER bytes in the `Certificate` structures a Validate request carries.
crate/server/src/tests/test_validate.rs:1270
↓ 2 callers
Function
raw_http_body
Assemble the body of a `RawHttp` request, allocating it once.
crate/test_kms_server/src/vector_runner.rs:590
↓ 2 callers
Function
raw_http_server
Serve `response` verbatim to every connection on a loopback port; returns the port.
crate/server/src/middlewares/auth_verifier/mod.rs:92
↓ 2 callers
Function
raw_insert_event
Inserts an event directly into `kms_audit_events`, bypassing `PgAuditSink` entirely — used to simulate a raw client (or a compromised process sharing
crate/server_database/src/stores/audit/pgsql.rs:1461
↓ 2 callers
Function
raw_json_post
--------------------------------------------------------------------------- Helper: POST a JSON string to the JSON KMIP 2.1 endpoint. ----------------
crate/clients/clap/src/tests/serialization/wire_payloads.rs:36
↓ 2 callers
Function
raw_json_post
POST a JSON string to the KMIP JSON endpoint and return the HTTP status.
crate/clients/clap/src/tests/serialization/batch_abuse.rs:40
↓ 2 callers
Function
rb
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
read
(&mut self, buf: &mut [u8])
crate/server/src/socket_server.rs:425
↓ 2 callers
Function
read_bytes_from_files_to_bulk
Read all bytes from multiple files and serialize them into a unique vector using LEB128 serialization (bulk mode) # Errors If the file cannot be opene
crate/clients/client/src/file_utils.rs:220
↓ 2 callers
Function
read_counts
(library: &Library, symbol: &[u8])
crate/hsm/base_hsm/src/session/message_signature_tests.rs:55
↓ 2 callers
Function
read_object_from_json_ttlv_bytes
Read an object from KMIP JSON TTLV bytes slice
crate/server/src/tests/google_cse/mod.rs:109
↓ 2 callers
Function
read_object_from_json_ttlv_bytes
Read an object from KMIP JSON TTLV bytes slice # Errors If the file cannot be opened or read, an error is returned.
crate/clients/client/src/file_utils.rs:47
↓ 2 callers
Function
read_rows
(path: &Path)
crate/server/src/core/audit/file_sink.rs:448
↓ 2 callers
Method
read_sealed
(&self, headers: &HeaderMap)
crate/server/src/middlewares/ui_session.rs:225
↓ 2 callers
Method
read_with_refresh
Like [`Self::read`], plus a refreshed `Set-Cookie` (same `sid`, `iat` and `exp`, `last` moved to now) once the session has been idle for [`UI_SESSION_
crate/server/src/middlewares/ui_session.rs:186
↓ 2 callers
Method
rebase
Maps each character in `input` to its index in the alphabet. Characters not in the alphabet are stored separately by position and reinserted verbatim
crate/crypto/src/crypto/fpe/alphabet.rs:216
↓ 2 callers
Method
reconcile_findex_keywords
Re-insert the Findex keywords of the object currently stored under `uid` (no-op if it is absent). Repairs keywords wrongly removed by a racing writer.
crate/server_database/src/stores/redis/redis_with_findex.rs:1015
↓ 2 callers
Method
record
(&self, _span: &Id, values: &Record<'_>)
crate/kmip/src/ttlv/tests/redaction.rs:67
↓ 2 callers
Method
record
(&self, elapsed_ns: u64)
crate/clients/pkcs11/module/src/profiling.rs:157
↓ 2 callers
Method
record_cache_operation
Record cache operation Both `operation` and `result` must be `'static` string literals (e.g. `"get"`, `"hit"`). Using `&'static str` avoids a `String
crate/server/src/core/otel_metrics.rs:716
↓ 2 callers
Method
record_cascading_metrics
Record metrics for a cascading (linked-object) operation. Used by `destroy` and `revoke` when they cascade to related keys; `outcome` is `"success"`
crate/server/src/core/kms/other_kms_methods.rs:562
↓ 2 callers
Method
record_database_operation
Record a database operation (count + duration in one call). # Arguments `operation` – low-cardinality label (`"create"`, `"retrieve"`, …) `backend`
crate/server/src/core/otel_metrics.rs:541
↓ 2 callers
Method
record_error
Record an error
crate/server/src/core/otel_metrics.rs:595
↓ 2 callers
Method
record_failure
Count one failed authentication of `client`.
crate/server/src/routes/enrollment_guard.rs:104
↓ 2 callers
Method
record_http_request
Record an HTTP request
crate/server/src/core/otel_metrics.rs:560
↓ 2 callers
Method
record_operation
( &self, operation: &'static str, backend: MainDbKind,
crate/server_database/src/core/database_objects.rs:1326
↓ 2 callers
Method
record_permission_grant
Record a permission grant. `user` is only ever used, hashed, as the `kms.permissions.granted.per_user.total` label — see [`Self::bounded_user_label`]
crate/server/src/core/otel_metrics.rs:453
↓ 2 callers
Function
recursively_destroy_object
( unique_identifier: &UniqueIdentifier, remove: bool, cascade: bool, kms: &KMS, user: &Use
crate/server/src/core/operations/destroy.rs:78
↓ 2 callers
Function
recursively_revoke_key
( unique_identifier: &UniqueIdentifier, revocation_reason: RevocationReason, compromise_occurrence
crate/server/src/core/operations/revoke.rs:87
↓ 2 callers
Function
redact_connection_string
(s: &str)
crate/server_database/src/core/main_db_params.rs:83
↓ 2 callers
Function
redact_url
Redact the username and password from the URL for logging purposes
crate/server_database/src/core/main_db_params.rs:68
↓ 2 callers
Function
redis_master_key_from_password
Derive a Redis Master Key from a password with the legacy fixed salt (databases created before the per-database salt).
crate/server_database/src/stores/redis/redis_with_findex.rs:123
↓ 2 callers
Function
refresh_expiring_crls
Scan all stored CRLs and regenerate those expiring within `overlap_hours`, or whose set of revoked certificates is out of date.
crate/server/src/cron.rs:320
↓ 2 callers
Method
refresh_internal
(&self, force: bool)
crate/server/src/middlewares/jwt/jwks.rs:160
↓ 2 callers
Function
refuse_if_incompatible
Refuse a database whose required reader (`min_compatible_version`, else the legacy `db_version` fallback that keeps unmarked databases fail-closed) is
crate/server_database/src/stores/migrate.rs:470
↓ 2 callers
Function
refuse_if_newer_migration_interrupted
A newer binary that crashed mid-migration leaves `upgrading` with a `min_compatible_version` that is only raised at the end: an older binary must not
crate/server_database/src/stores/migrate.rs:485
↓ 2 callers
Function
regenerate_crl
Regenerate the CRL of `issuer_certificate_id` on behalf of the server. Used by automatic regeneration (post-Revoke and the refresh cron). Those run a
crate/server/src/core/operations/generate_crl.rs:169
↓ 2 callers
Function
register
( kms: &KMS, mut request: Register, owner: &UserId, )
crate/server/src/core/operations/register.rs:28
↓ 2 callers
Function
register
(dll: &Path)
crate/clients/clap/src/actions/cng.rs:78
↓ 2 callers
Method
register
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
register_certificate_chain_parent
Record the next certificate chain link and reject cyclic or oversized chains.
crate/server/src/core/operations/export_get.rs:1517
↓ 2 callers
Method
register_crypto_oracle
Register a crypto oracle for a given key prefix. The crypto oracle will be used to encrypt/decrypt/sign data using keys with the given prefix. # Argum
crate/server/src/core/kms/other_kms_methods.rs:549
↓ 2 callers
Function
reify
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
reimport_public_key
Re-import `object` under a fresh identifier and return that identifier.
crate/server/src/tests/pqc_import_tests.rs:31
← previous
next →
3,701–3,800 of 16,000, ranked by callers