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
audit_queries
()
crate/server_database/src/stores/audit/mod.rs:21
↓ 2 callers
Function
audit_url
Live audit database URL — same convention and default as the `cosmian_kms_server_database` audit live tests.
crate/server/src/core/audit/store.rs:1549
↓ 2 callers
Function
auth_verifier_session_user
The user of a valid Auth Verifier SAML session cookie, when SAML sign-on is enabled.
crate/server/src/routes/ui_auth.rs:662
↓ 2 callers
Function
authenticate_privileged
Authenticate the caller of a privileged endpoint (see [`validate_cse_privileged_token`]).
crate/server/src/routes/google_cse/operations.rs:742
↓ 2 callers
Function
authenticate_privileged_user
Authenticate the caller of a privileged endpoint that acts on behalf of a user: a KACLS migration token carries no user identity and is refused.
crate/server/src/routes/google_cse/operations.rs:765
↓ 2 callers
Method
authenticated_data
(&self)
crate/clients/clap/src/actions/fpe/mod.rs:93
↓ 2 callers
Function
authentication_email
The email of an authentication token. When the token contains the optional `google_email` claim, it is the one compared (case insensitively) against
crate/server/src/routes/google_cse/jwt.rs:332
↓ 2 callers
Function
authn_token_with_aud
An authentication token (`aud` is mandatory for the server's claim parser).
crate/server/src/tests/google_cse/utils.rs:160
↓ 2 callers
Function
authorize
Require that `user` holds `op` on the path's metadata object. Reads (`Get`, `Locate`) accept a `Get` grant as a read-everything grant, like the rest
crate/server/src/routes/kv/metadata.rs:422
↓ 2 callers
Function
authorize_oracle_unwrap
Check `user` may unwrap with the HSM key `unwrapping_key_uid` and return the key to decrypt with (a public key UID is stripped of its `_pk` suffix).
crate/server/src/core/wrapping/unwrap.rs:338
↓ 2 callers
Function
authorize_stored_unwrap
Check that `user` may unwrap the stored `object`, without unwrapping it. Makes the same decision as [`unwrap_stored_object`], recursively for unwrapp
crate/server/src/core/wrapping/unwrap.rs:84
↓ 2 callers
Function
authorize_unwrapping_key
( kms: &KMS, user: &UserId, unwrapping_key_uid: &str, allow_server_kek: bool, )
crate/server/src/core/wrapping/unwrap.rs:110
↓ 2 callers
Function
authorized_kms_unwrapping_key
Fetch the database key `unwrapping_key_uid` (the private key for a public key or certificate) and check `user` may unwrap with it: owner, default user
crate/server/src/core/wrapping/unwrap.rs:206
↓ 2 callers
Function
azureKekTags
(kid: string)
ui/src/utils/azureKek.ts:1
↓ 2 callers
Function
backfill_batch_results
Iterates the `BatchItem` children of a `ResponseMessage` and per-item backfills: `object_uid` for `Create`/`CreateKeyPair` items (server-generated UID
crate/server/src/routes/kmip/audit.rs:390
↓ 2 callers
Function
bad
(msg: &str)
crate/server/src/routes/jose/mod.rs:67
↓ 2 callers
Function
base64ToBytes
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
base64UrlEncode
(bytes: Uint8Array)
ui/src/utils/azureByok.ts:27
↓ 2 callers
Function
baseAry
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
batch_item_drafts
One draft per KMIP batch item, all sharing `req_ctx`; items never backfilled get `missing`.
crate/server/src/middlewares/audit/mod.rs:314
↓ 2 callers
Function
batch_items
The `BatchItem`s of a `RequestMessage` TTLV as (operation name, `RequestPayload`). In a batch item the operation fields live under `RequestPayload`,
crate/server/src/routes/kmip/audit.rs:99
↓ 2 callers
Function
batch_operations
Uses the KMIP Message interface to send a batch of operations to the KMS. The operations are sent in a single request and the response is a list of re
crate/clients/client/src/batch_utils.rs:22
↓ 2 callers
Function
bb
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
bg
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
bh
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
biguint_to_integer_text
( value: &BigUint, alphabet: &Alphabet, digits: usize, )
crate/crypto/src/crypto/fpe/kmip_fpe.rs:147
↓ 2 callers
Method
bind_i64
(&mut self, value: i64)
crate/server_database/src/stores/sql/locate_query.rs:295
↓ 2 callers
Function
bind_to_row
Record the database row `uid` in the (unwrapped) key value attributes of `object`, before it is wrapped with TTLV encoding.
crate/server/src/core/wrapping/mod.rs:46
↓ 2 callers
Function
bitwise_not
(data: &[u8])
crate/server/src/tests/hsm/fake_hsm_authz.rs:139
↓ 2 callers
Function
bj
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
blob_field
Return `len` bytes of `blob` starting at `offset`, or an error if truncated.
crate/clients/cng/src/blob.rs:434
↓ 2 callers
Function
bound_subkeys
Subkeys of `public` that are usable now, paired with the Key Flags of their newest Subkey Binding signature that verifies against the primary key (RFC
crate/crypto/src/crypto/openpgp/mod.rs:383
↓ 2 callers
Function
bounded_derive_request
Builds a `DeriveKey` over `base`, deriving `bits` bits with `method` and SHA-256.
crate/server/src/tests/derive_key_tests.rs:1939
↓ 2 callers
Method
bounded_user_label
Returns the `user` label to use for per-user metrics. The raw username is never exported: this returns a non-reversible, truncated SHA-256 hash of th
crate/server/src/core/otel_metrics.rs:472
↓ 2 callers
Function
boundsError
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
browser_get
Send a raw HTTP GET to the callback server and return the full raw response.
crate/clients/client/src/http_client/login.rs:794
↓ 2 callers
Function
bucket
( object_type: &str, algorithm: Option<&str>, key_length: Option<i32>, state:
crate/server/src/core/otel_metrics.rs:1199
↓ 2 callers
Function
buildAzureByokContent
(kid: string, wrappedKeyBytes: Uint8Array)
ui/src/utils/azureByok.ts:45
↓ 2 callers
Function
buildAzureByokObject
(kid: string, wrappedKeyBytes: Uint8Array)
ui/src/utils/azureByok.ts:32
↓ 2 callers
Method
buildSystem
(s=!0)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
build_and_sign_certificate
( kms: &KMS, issuer: &Issuer<'_>, subject: &Subject, request: Certify, kms_public_url: Opt
crate/server/src/core/operations/certify/build_certificate.rs:49
↓ 2 callers
Function
build_chain_from_stack
Build a chain of certificates from a PEM stack
crate/clients/clap/src/actions/certificates/import_certificate.rs:382
↓ 2 callers
Function
build_covercrypt_rekey_keypair_request
Build a `ReKeyKeyPair` request applying `action` to the `CoverCrypt` master key pair whose master secret key is `msk_uid` — the same request as `cosmi
crate/clients/client_utils/src/cover_crypt_utils.rs:166
↓ 2 callers
Function
build_key_pair_info
()
crate/clients/clap/src/actions/google/key_pairs/create.rs:475
↓ 2 callers
Function
build_list
Builds the v3.0 list from the target's v2.40 list (version header + the 68 classic * function pointers, i.e. everything before `C_GetInterfaceList`).
crate/hsm/base_hsm/tests/fixtures/v3_message_adapter.c:269
↓ 2 callers
Function
build_locate_request
Build a KMIP `Locate` request from tags, attribute criteria and linked object ids. # Errors Returns an error if the tags cannot be set on the attribu
crate/clients/client_utils/src/locate_utils.rs:39
↓ 2 callers
Function
build_nested_structure
Build a TTLV tree that is `depth` levels deep (each level wraps the next in a Structure).
crate/kmip/src/ttlv/wire/ttlv_bytes_deserializer.rs:415
↓ 2 callers
Function
build_ocsp_http_response
Build the HTTP response carrying the DER-encoded OCSP response. Adds RFC 5019 §5 cache control headers: - `Cache-Control: max-age=N, public` - `Expir
crate/server/src/routes/ocsp/handler.rs:663
↓ 2 callers
Function
build_ocsp_nocheck_extension
Build the `id-pkix-ocsp-nocheck` extension (OID 1.3.6.1.5.5.7.48.1.5), whose DER content is the ASN.1 NULL value (`05 00`), non-critical.
crate/crypto/src/openssl/ocsp.rs:1453
↓ 2 callers
Function
build_query_request
(major: i32, minor: i32)
crate/server/src/tests/kmip_endpoints.rs:22
↓ 2 callers
Function
build_request
Builds a v1 SHA-256 `TimeStampReq` asking for the TSA certificate.
crate/crypto/src/openssl/tsa.rs:138
↓ 2 callers
Function
build_request_with_digest
Build a request using an explicit digest for the `CertId` (bypassing `build_test_request`'s hardcoded SHA-256, to exercise other algorithms).
crate/crypto/src/openssl/ocsp.rs:1323
↓ 2 callers
Function
build_secret_object
(vendor_id: &str, bytes: &[u8])
crate/server/src/routes/ssh/storage.rs:166
↓ 2 callers
Function
build_sensitive_stub_attributes
Build a metadata-only `Attributes` struct for a non-extractable (sensitive) HSM key. Used when `hsm.export()` fails with a sensitive-key error. The s
crate/interfaces/src/hsm/hsm_store.rs:1329
↓ 2 callers
Function
build_try_later_response
Return an OCSP `tryLater` error response (minimal DER). Per RFC 6960 §2.3 the responder returns `tryLater` when it cannot answer right now (e.g. the
crate/server/src/routes/ocsp/handler.rs:750
↓ 2 callers
Function
build_unauthorized_response
Return an OCSP `unauthorized` error response (minimal DER). Per RFC 6960 §2.3 the responder returns `unauthorized` when it is not authorised to provi
crate/server/src/routes/ocsp/handler.rs:716
↓ 2 callers
Function
build_usage_mask_from_key_usage
( key_usage_vec: &[KeyUsage], )
crate/clients/client_utils/src/import_utils.rs:190
↓ 2 callers
Function
build_validate_certificate_request
Build a `Validate` request to validate a certificate chain.
crate/kmip/src/kmip_2_1/requests/validate.rs:7
↓ 2 callers
Function
build_x25519_ecdh_es_request
( kid: &str, alg: &str, enc: &str, static_x_b64: &str, plaintext: &[u8
crate/server/src/tests/jose/ecdh.rs:538
↓ 2 callers
Function
ca_public_key
( kms: &KMS, key_uid: &str, user: &UserId, )
crate/server/src/routes/ssh/certificate.rs:179
↓ 2 callers
Function
cached_regex
Compile `pattern` once into `cell`, reporting an invalid pattern as an error.
crate/kmip/src/ttlv/xml/parser.rs:34
↓ 2 callers
Method
calculate_b
(&self, v: usize)
crate/crypto/src/crypto/fpe/ff1.rs:201
↓ 2 callers
Function
call_get_function_list
(lib: &Library)
crate/clients/clap/src/actions/pkcs11/verify.rs:223
↓ 2 callers
Function
call_get_slot_list
(func_list: &CK_FUNCTION_LIST)
crate/clients/clap/src/actions/pkcs11/verify.rs:255
↓ 2 callers
Function
call_login
( func_list: &CK_FUNCTION_LIST, session: CK_SESSION_HANDLE, token: &str, )
crate/clients/clap/src/actions/pkcs11/verify.rs:322
↓ 2 callers
Method
call_sign_message
One `C_SignMessage` call (plus a retry on `CKR_BUFFER_TOO_SMALL`); the caller maps the return code.
crate/hsm/base_hsm/src/session/message_sign.rs:150
↓ 2 callers
Function
call_with
( auth_verifier: Arc<AuthVerifierValidator>, realm: Option<&str>, request: test::TestR
crate/server/src/middlewares/auth_verifier/middleware.rs:167
↓ 2 callers
Function
caller_gcm_iv_allowed
(_: &AesGcmCapabilities)
crate/hsm/base_hsm/src/session/session_impl.rs:255
↓ 2 callers
Function
caller_gcm_iv_refused
Error for an AES-GCM encryption that would use a caller-supplied IV in the FIPS build.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:608
↓ 2 callers
Function
canAddProperty
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Method
canRead
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
canonical_bytes
(event: &AuditEvent)
crate/access/src/audit/hash.rs:101
↓ 2 callers
Function
canonical_curve
Canonical lower-case key for an EC curve name, folding the common aliases.
crate/server/src/core/operations/certify/template.rs:143
↓ 2 callers
Function
canonical_query_string
Sorts the query parameters by encoded name, then encoded value.
crate/server/src/routes/aws_xks/sigv4.rs:266
↓ 2 callers
Function
canonical_request
Builds the `SigV4` canonical request; `signed_headers` must be sorted and deduplicated.
crate/server/src/routes/aws_xks/sigv4.rs:184
↓ 2 callers
Function
canonical_uri_path
Normalizes the URI path: empty segments from `//` runs, `.` and `..` are removed (a trailing slash is kept) and every segment is percent-encoded once.
crate/server/src/routes/aws_xks/sigv4.rs:238
↓ 2 callers
Method
capabilities
()
crate/hsm/base_hsm/src/base_hsm.rs:25
↓ 2 callers
Function
captureMatchIfValid
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
capture_values
Capture values from a response TTLV JSON for use in subsequent steps.
crate/test_kms_server/src/vector_runner.rs:930
↓ 2 callers
Function
cb
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
cbc
()
crate/server/src/tests/hsm/rotation.rs:82
↓ 2 callers
Function
cef_severity
(result: &AuditResult)
crate/access/src/audit/cef.rs:131
↓ 2 callers
Function
cek_from_kms_key
Load an AES key held by the KMS to use as the JWE CEK (`cek_kid`). The key leaves the KMS (wrapped under the recipient key), so it must be active, ex
crate/server/src/routes/jose/encrypt.rs:352
↓ 2 callers
Function
cek_len
AES-GCM key size in bytes for a given `enc` value.
crate/server/src/tests/jose/ecdh.rs:32
↓ 2 callers
Function
ceremony_kms_with_wrapping
Build a `KMS` configured for ceremony mode with AES-KW share wrapping enabled. A fresh wrapping key is pre-created and its UID is set as `ceremony_wr
crate/server/src/tests/key_ceremony_tests.rs:100
↓ 2 callers
Function
cert_text
Extract the X.509 text representation and check for key usage bits. The `openssl` crate with `default-features = false` does not expose `X509::key_usa
crate/test_kms_server/src/certify_tests.rs:160
↓ 2 callers
Function
cert_to_pem
Convert an X509 DER certificate to a PEM string.
crate/server/src/routes/spire/pki.rs:159
↓ 2 callers
Function
certificate
( subject: &str, subject_key: &PKey<Private>, issuer: &str, serial: u32,
crate/server/src/core/certificate/oracle_signing.rs:557
↓ 2 callers
Function
certificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/sub_ca_tests.rs:120
↓ 2 callers
Function
certificate_from
A certificate valid for one day starting at the Unix time `from`.
crate/crypto/src/openssl/tsa.rs:417
↓ 2 callers
Function
certify_for_owner
[`certify`] with the authorization checks (issuer `Certify` grant, `Create` right) evaluated for `user` while the created objects are stored, in the s
crate/server/src/core/operations/certify/certify_op.rs:100
↓ 2 callers
Function
certify_grant
The `certify` grant delegating object `uid` to the enrollment service identity.
crate/server/src/tests/enrollment_tests.rs:211
↓ 2 callers
Function
certify_self_signed
Issue a self-signed EC certificate (and its key pair) owned by `owner`.
crate/server/src/core/operations/auto_rotate.rs:1509
↓ 2 callers
Function
cg
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
chain
A valid `n`-event chain.
crate/clients/ckms/src/tests/audit.rs:50
↓ 2 callers
Method
char_from_position
(&self, position: u16)
crate/crypto/src/crypto/fpe/alphabet.rs:209
↓ 2 callers
Method
char_to_position
(&self, c: char)
crate/crypto/src/crypto/fpe/alphabet.rs:201
↓ 2 callers
Function
checkIEEE754
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
checkIntBI
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callers
Function
checkListener
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previous
next →
2,801–2,900 of 16,000, ranked by callers