MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 2 callersFunctionbitwise_not
(data: &[u8])
crate/server/src/tests/hsm/fake_hsm_authz.rs:104
↓ 2 callersFunctionbj
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionbound_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 callersMethodbounded_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:406
↓ 2 callersFunctionboundsError
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodbuild
Build a `LoginState` using the given explicit redirect port. This is the internal constructor shared by `TryFrom` and the test-only `try_from_with_po
crate/clients/client/src/http_client/login.rs:97
↓ 2 callersFunctionbuildAzureByokContent
(kid: string, wrappedKeyBytes: Uint8Array)
ui/src/utils/azureByok.ts:45
↓ 2 callersFunctionbuildAzureByokObject
(kid: string, wrappedKeyBytes: Uint8Array)
ui/src/utils/azureByok.ts:32
↓ 2 callersMethodbuildSystem
(s=!0)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionbuild_and_sign_certificate
( kms: &KMS, issuer: &Issuer<'_>, subject: &Subject, request: Certify, kms_public_url: Opt
crate/server/src/core/operations/certify/build_certificate.rs:57
↓ 2 callersFunctionbuild_chain_from_stack
Build a chain of certificates from a PEM stack
crate/clients/clap/src/actions/certificates/import_certificate.rs:368
↓ 2 callersFunctionbuild_find_attributes
(meta: &Option<KeyMetadata>, filter: &HsmObjectFilter)
crate/interfaces/src/hsm/hsm_store.rs:1304
↓ 2 callersFunctionbuild_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 callersFunctionbuild_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 callersFunctionbuild_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:370
↓ 2 callersFunctionbuild_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:647
↓ 2 callersFunctionbuild_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:1591
↓ 2 callersFunctionbuild_private_key_from_der_bytes
( key_format_type: KeyFormatType, bytes: Zeroizing<Vec<u8>>, )
crate/server/src/tests/google_cse/mod.rs:346
↓ 2 callersFunctionbuild_query_request
(major: i32, minor: i32)
crate/server/src/tests/kmip_endpoints.rs:24
↓ 2 callersFunctionbuild_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:1461
↓ 2 callersFunctionbuild_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:1102
↓ 2 callersFunctionbuild_sensitive_stub_object
Build a stub KMIP `Object` for a non-extractable (sensitive) HSM key. The `key_value` is intentionally empty because the key bytes cannot be exported
crate/interfaces/src/hsm/hsm_store.rs:1177
↓ 2 callersFunctionbuild_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:700
↓ 2 callersFunctionbuild_usage_mask_from_key_usage
( key_usage_vec: &[KeyUsage], )
crate/clients/client_utils/src/import_utils.rs:190
↓ 2 callersFunctionbuild_validate_certificate_request
Build a `Validate` request to validate a certificate chain.
crate/kmip/src/kmip_2_1/requests/validate.rs:7
↓ 2 callersFunctionbuild_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 callersFunctioncached_signing_metadata
Fetch signing-key metadata from the handle cache, populating it on miss.
crate/hsm/base_hsm/src/kms_hsm.rs:186
↓ 2 callersMethodcalculate_b
(&self, v: usize)
crate/crypto/src/crypto/fpe/ff1.rs:192
↓ 2 callersFunctioncall_get_function_list
(lib: &Library)
crate/clients/clap/src/actions/pkcs11/verify.rs:220
↓ 2 callersFunctioncall_get_slot_list
(func_list: &CK_FUNCTION_LIST)
crate/clients/clap/src/actions/pkcs11/verify.rs:252
↓ 2 callersFunctioncall_login
( func_list: &CK_FUNCTION_LIST, session: CK_SESSION_HANDLE, token: &str, )
crate/clients/clap/src/actions/pkcs11/verify.rs:319
↓ 2 callersMethodcall_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 callersFunctioncall_with
( auth_verifier: Arc<AuthVerifierValidator>, realm: Option<&str>, request: test::TestR
crate/server/src/middlewares/auth_verifier/middleware.rs:157
↓ 2 callersFunctioncanAddProperty
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodcanRead
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncanonical_curve
Canonical lower-case key for an EC curve name, folding the common aliases.
crate/server/src/core/operations/certify/template.rs:143
↓ 2 callersMethodcapabilities
()
crate/hsm/base_hsm/src/base_hsm.rs:26
↓ 2 callersFunctioncaptureMatchIfValid
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncapture_values
Capture values from a response TTLV JSON for use in subsequent steps.
crate/test_kms_server/src/vector_runner.rs:717
↓ 2 callersFunctioncb
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncef_severity
(result: &AuditResult)
crate/access/src/audit/cef.rs:130
↓ 2 callersFunctioncek_cache_uid
Build the cache UID for a JOSE CEK from the RSA key uid and the raw `encrypted_key` bytes. The key uid is part of the cache key because the fingerpri
crate/server/src/routes/jose/cek_cache.rs:52
↓ 2 callersFunctioncek_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:354
↓ 2 callersFunctioncek_len
AES-GCM key size in bytes for a given `enc` value.
crate/server/src/tests/jose/ecdh.rs:32
↓ 2 callersFunctionceremony_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:96
↓ 2 callersFunctioncert_text
(x509: &X509)
crate/test_kms_server/src/certify_tests.rs:162
↓ 2 callersFunctioncert_to_pem
Convert an X509 DER certificate to a PEM string.
crate/server/src/routes/spire/pki.rs:165
↓ 2 callersFunctioncertificate
( subject: &str, subject_key: &PKey<Private>, issuer: &str, serial: u32,
crate/server/src/core/certificate/oracle_signing.rs:565
↓ 2 callersFunctioncertificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/sub_ca_tests.rs:119
↓ 2 callersFunctioncertificate
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/revocation_authority_tests.rs:113
↓ 2 callersFunctioncertify_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 callersFunctioncertify_grant
The `certify` grant delegating object `uid` to the enrollment service identity.
crate/server/src/tests/enrollment_tests.rs:210
↓ 2 callersFunctioncertify_ttlv_request
( certificate_id: Option<String>, certificate_signing_request_format: Option<String>, certificate_
crate/clients/wasm/src/wasm.rs:2235
↓ 2 callersFunctioncg
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodchar_from_position
(&self, position: u16)
crate/crypto/src/crypto/fpe/alphabet.rs:214
↓ 2 callersMethodchar_to_position
(&self, c: char)
crate/crypto/src/crypto/fpe/alphabet.rs:206
↓ 2 callersFunctioncheck
Minimal implementation of the KMIP Check operation sufficient for BL-M-3-21: - Retrieves the target object - If a `cryptographic_usage_mask` is suppli
crate/server/src/core/operations/check.rs:22
↓ 2 callersFunctioncheckIEEE754
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncheckIntBI
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncheckListener
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncheck_authentication_kacls_url
( kacls_url: Option<&str>, google_cse_kacls_url: &str, )
crate/server/src/routes/google_cse/jwt.rs:493
↓ 2 callersFunctioncheck_authorization_audience
( configured: Option<&Vec<String>>, token_aud: Option<&Vec<String>>, )
crate/server/src/routes/google_cse/jwt.rs:459
↓ 2 callersFunctioncheck_authorization_claims
( token: &UserClaim, google_cse_kacls_url: &str, roles: Option<&[Role]>, )
crate/server/src/routes/google_cse/jwt.rs:512
↓ 2 callersFunctioncheck_certificate_added_extensions
(cert_x509_der: &[u8], expected_crl_dp: &str)
crate/clients/ckms/src/tests/certificates/certify.rs:384
↓ 2 callersFunctioncheck_certificate_valid
Errors if the primary key revoked itself (type 0x20, RFC 9580 Section 5.2.1.11) or is past the Key Expiration Time of its newest self-signature (RFC 9
crate/crypto/src/crypto/openpgp/mod.rs:435
↓ 2 callersFunctioncheck_crl_freshness
Check that a CRL has not passed its `nextUpdate` time (RFC 5280 §6.3 step (a)(1)(ii)). Returns an error if the CRL is expired. A CRL whose `nextUpdat
crate/server/src/core/operations/validate.rs:1141
↓ 2 callersFunctioncheck_extractable_and_sensitive
Validate that the object may be exported/retrieved given its Sensitive, Extractable, and `NeverExtractable` attributes. Per KMIP 1.4 §3.48 / 2.1 §4.5
crate/server/src/core/operations/export_get.rs:62
↓ 2 callersMethodcheck_ns_length
(&self, ns_len: usize)
crate/crypto/src/crypto/fpe/ff1.rs:175
↓ 2 callersFunctioncheck_pinned_version
Fail when `spec` pins an `objectVersion` that differs from the `actual` version of the object fetched from the KMS. An empty `objectVersion` means "la
crate/clients/k8s/csi_provider/src/service.rs:230
↓ 2 callersFunctioncheck_row
(line: &str)
crate/server/src/core/audit/recovery.rs:46
↓ 2 callersFunctioncheck_sql_rotate_name
For SQL (non-HSM) objects, requires `rotate_name` to equal the object's UID. This enforces the gen-0 UID = keyset name invariant for deterministic `@
crate/server/src/core/operations/attributes/policy.rs:59
↓ 2 callersFunctioncheck_tls_unique
RFC 7030 §3.5: a CSR `challengePassword` carries base64(tls-unique) of the client's TLS connection, which the server MUST verify. `tls_unique` is the
crate/server/src/routes/est/enroll.rs:76
↓ 2 callersMethodcheckin_session
Return a healthy session to the pool for reuse.
crate/hsm/base_hsm/src/slots.rs:437
↓ 2 callersMethodcheckout_session
Checkout for every other operation: closes message contexts first, because a token may refuse other operations while one is active (`CKR_OPERATION_ACT
crate/hsm/base_hsm/src/slots.rs:429
↓ 2 callersMethodcheckout_session_for_signature
Checkout for `sign`/`verify`: keeps any message context left open on the pooled session so consecutive signatures with the same key reuse it. The poo
crate/hsm/base_hsm/src/slots.rs:416
↓ 2 callersFunctionchrono_now
()
crate/clients/k8s/operator/src/controller.rs:263
↓ 2 callersFunctioncipher_for
(enc: &str)
crate/server/src/tests/jose/ecdh.rs:41
↓ 2 callersFunctioncipher_for_enc
Select the OpenSSL `Cipher` for the given content-encryption algorithm.
crate/server/src/routes/jose/aes_gcm.rs:26
↓ 2 callersFunctioncj
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionckm_rsa_pkcs_decrypt
Decrypt using `CKM_RSA_PKCS` a.k.a PKCS #1 RSA V1.5 as specified in PKCS#11 v2.40 available at <https://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/c
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs.rs:104
↓ 2 callersFunctionckm_rsa_pkcs_key_unwrap
Key Unwrap using `CKM_RSA_PKCS` a.k.a PKCS #1 RSA V1.5 as specified in PKCS#11 v2.40 available at <https://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs.rs:83
↓ 2 callersFunctionckm_rsa_pkcs_key_wrap
Key Wrap using `CKM_RSA_PKCS` a.k.a PKCS #1 RSA V1.5 as specified in PKCS#11 v2.40 available at <https://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs.rs:29
↓ 2 callersMethodclean
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodclean_for_generation
(&self, vendor_id: &str)
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1850
↓ 2 callersFunctioncleanup
()
ui/tests/integration/kms-attributes-set-get-delete.test.ts:52
↓ 2 callersFunctionclearBuffer
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionclear_all
(mgr: &mut ConnectionManager)
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:500
↓ 2 callersMethodclear_cache
Clear a value from the cache.
crate/server_database/src/core/unwrapped_cache.rs:128
↓ 2 callersMethodclear_find_objects_ctx
Clear the unread index
crate/clients/pkcs11/module/src/sessions.rs:609
↓ 2 callersFunctionclient_username
Extract the username from the client certificate, with the same checks as HTTP mTLS.
crate/server/src/socket_server.rs:517
↓ 2 callersFunctionclient_with_mock
The owner client of `ctx`, with the Gmail API redirected to `mock`.
crate/clients/clap/src/tests/google_cmd/key_pairs.rs:301
↓ 2 callersFunctioncloneShallowKeyValuePair
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncloneSpecificValue
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncodePointAt
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctioncollect_estimates_recursive
( base: &Path, dir: &Path, version_label: Option<&str>, results: &mut Vec<CtBenchmarkComplete>
crate/clients/clap/src/actions/bench/output.rs:162
↓ 2 callersFunctioncollect_json_output
( version_label: Option<&str>, protocol_slug: &str, )
crate/clients/clap/src/actions/bench/output.rs:91
↓ 2 callersFunctioncolon_split
Within a value, there can be properties (ie: `email:test@example.com`). This function extracts the property value, by splitting the input `value` (ie:
crate/crypto/src/openssl/x509_extensions.rs:494
↓ 2 callersFunctioncompare_object
Deep compare of KMIP Object, including nested KeyBlock, KeyValue, and Attributes when present
crate/clients/clap/src/tests/xml/compare.rs:39
↓ 2 callersFunctioncompileList
(s,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersMethodcomponentDidMount
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
← previousnext →2,101–2,200 of 12,829, ranked by callers