MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 2 callersFunctiondl
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctiondll_directory
()
crate/clients/cng/src/lib.rs:89
↓ 2 callersFunctiondoWrite
(s,o,i,u,_,w,x)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctiondocsUrl
(path: string, hash?: string)
ui/src/utils/utils.ts:10
↓ 2 callersFunctionec_create
(curve: RecommendedCurve)
crate/server/src/tests/kmip_policy/routes.rs:83
↓ 2 callersFunctionec_curve_to_usage_mask
( curve: Option<EcCurve>, object_type: ObjectType, )
crate/interfaces/src/hsm/hsm_store.rs:83
↓ 2 callersFunctionec_domain_parameters_for_curve
(curve: EcCurve)
crate/interfaces/src/hsm/hsm_store.rs:96
↓ 2 callersMethodec_p256_public_key
(&self)
crate/clients/pkcs11/provider/src/pkcs11_public_key.rs:154
↓ 2 callersFunctionec_public_blob_from_spki_der
Parse an EC `SubjectPublicKeyInfo` (SPKI) DER and produce a `BCRYPT_ECCKEY_BLOB`. Detects the curve from the OID.
crate/clients/cng/src/blob.rs:190
↓ 2 callersFunctionecdsa_coord_size
Return the ECDSA coordinate byte-length for JOSE EC algorithms (None for non-EC algs). Per RFC 7518 §3.4: ES256 → P-256 → 32 bytes ES384 → P-384 → 48
crate/server/src/routes/jose/mod.rs:53
↓ 2 callersFunctionecdsa_p256_wide
()
crate/clients/clap/src/actions/cng_verify.rs:76
↓ 2 callersFunctionecies_get_iv
Derive an initialization vector from recipient public key `Q` and ephemeral public key `R` using the supplied hashing algorithm.
crate/crypto/src/crypto/elliptic_curves/ecies/standard_curves.rs:19
↓ 2 callersFunctionecies_get_key
Derive the symmetric secret key from the shared point using SHAKE128.
crate/crypto/src/crypto/elliptic_curves/ecies/standard_curves.rs:43
↓ 2 callersFunctioned25519_groups
Ed25519 vectors: Wycheproof, NIST ACVP.
crate/crypto/src/kat_vectors.rs:641
↓ 2 callersMethodedit_policy
(self, operation: KmipOperation)
crate/kmip/src/kmip_2_1/attribute_policy.rs:18
↓ 2 callersFunctionei
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionel
(s,o,i,u,_,w,x,C,j)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionemitsWrappingTags
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionemptyElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionemptyStack
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionencaps_decaps_roundtrip
(algorithm: CryptographicAlgorithm)
crate/crypto/src/crypto/pqc/hybrid_kem.rs:89
↓ 2 callersFunctionencapsulate
Returns (shared secret, encapsulation). Every KEM packs both in `Data` as a serialized tuple: an encapsulation is a ciphertext and never travels in `I
crate/server/src/tests/hsm/hybrid_kem_dek.rs:223
↓ 2 callersFunctionencodeCharacters
(s,o="reserved")
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionencodeOpenSshEcdsaP256
(uncompressedPoint: Uint8Array)
ui/src/utils/sshKey.ts:28
↓ 2 callersFunctionencode_hex
(bytes: &[u8])
crate/hsm/base_hsm/src/session/mod.rs:21
↓ 2 callersFunctionencode_rsa_private_key_der
Encode PKCS#1 `RSAPrivateKey` DER.
crate/clients/cng/src/blob.rs:507
↓ 2 callersFunctionencoded_len
Number of bytes `ttlv` occupies on the wire: 8-byte header plus value and padding.
crate/kmip/src/ttlv/wire/ttlv_bytes_serializer.rs:63
↓ 2 callersFunctionencoded_size
Size in bytes of the TTLV encoding of a response header (with the 8-byte Response Message envelope) or of a response batch item, as sent in `flavor`.
crate/server/src/core/operations/message.rs:400
↓ 2 callersFunctionencoded_value_len
Number of bytes following the header: the Structure length field, or the value plus its padding for primitives.
crate/kmip/src/ttlv/wire/ttlv_bytes_serializer.rs:69
↓ 2 callersFunctionencrypt
`iv || ciphertext || tag`, the layout the HSM decrypt oracle takes back as `data`.
crate/server/src/tests/hsm/rotation.rs:119
↓ 2 callersFunctionencrypt
Encrypts a file using the given public key and access policy.
crate/clients/ckms/src/tests/elliptic_curve/encrypt_decrypt.rs:20
↓ 2 callersFunctionencrypt
Encrypts a file using the given public key and access policy.
crate/clients/ckms/src/tests/certificates/encrypt.rs:28
↓ 2 callersMethodencrypt
(&self, request: &Encrypt)
crate/crypto/src/crypto/cover_crypt/encryption.rs:140
↓ 2 callersMethodencrypt
( &self, uid: &str, data: &[u8], cryptographic_algorithm: Option<CryptoAlgorit
crate/interfaces/src/hsm/hsm_store.rs:948
↓ 2 callersMethodencrypt
Wrap a Data Encryption Key (DEK) using the configured KEK. The KMIP `Encrypt` response may return the IV and AEAD tag as separate fields. These are
crate/clients/k8s/plugin/src/service.rs:102
↓ 2 callersMethodencrypt_aes_cbc_multi_round
Encrypt data using AES-CBC in multiple rounds with PKCS#7 padding. This function performs AES-CBC encryption of the given plaintext, splitting the op
crate/hsm/base_hsm/src/session/session_impl.rs:1398
↓ 2 callersFunctionencrypt_as
(kms: &KMS, uid_str: &str, user: &UserId)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:748
↓ 2 callersFunctionencrypt_data
Encrypt data using a public/private key in the KMS.
crate/clients/cng/src/backend.rs:538
↓ 2 callersMethodencrypt_final
Finish the active encryption operation and append any remaining bytes.
crate/hsm/base_hsm/src/session/session_impl.rs:1693
↓ 2 callersFunctionencrypt_impl
( req: &HttpRequest, kms: &KMS, name: &str, body: EncryptTransitRequest, )
crate/server/src/routes/spire/transit_encryption.rs:368
↓ 2 callersMethodencrypt_object
(&self, uid: &str, redis_db_object: &RedisDbObject)
crate/server_database/src/stores/redis/objects_db.rs:216
↓ 2 callersFunctionencrypt_pgp_ttlv_request
( key_unique_identifier: &str, plaintext: Vec<u8>, )
crate/clients/wasm/src/wasm.rs:1269
↓ 2 callersFunctionencrypt_raw
(kms: &KMS, owner: &UserId, pk: &str)
crate/server/src/tests/configurable_kem_tests.rs:78
↓ 2 callersFunctionencrypt_response
The raw KMIP `Encrypt` response of a KEM public key
crate/server/src/tests/hsm/hybrid_kem_dek.rs:207
↓ 2 callersFunctionencrypt_rsa_ttlv_request
( key_unique_identifier: &str, plaintext: Vec<u8>, encryption_algorithm: JsValue, hash_fn: JsV
crate/clients/wasm/src/wasm.rs:1446
↓ 2 callersFunctionencrypt_sym_ttlv_request
( key_unique_identifier: &str, encryption_policy: Option<String>, plaintext: Vec<u8>, nonce: O
crate/clients/wasm/src/wasm.rs:1413
↓ 2 callersFunctionencrypt_symmetric
Single-shot symmetric encryption: the IV used, the ciphertext and the tag. An AES-GCM IV that the FIPS module must generate is drawn by the OpenSSL p
crate/server/src/core/operations/encrypt.rs:636
↓ 2 callersFunctionencrypt_to_file
( client: cosmian_kms_client::KmsClient, kek: &str, dir: &std::path::Path, len
crate/clients/clap/src/actions/symmetric/decrypt.rs:541
↓ 2 callersFunctionencrypt_with
( kms: &KMS, user: &UserId, uid: &str, data: &[u8], )
crate/server/src/core/operations/rekey/symmetric/sql.rs:534
↓ 2 callersFunctionencrypt_with_certificate
( request: &Encrypt, server_params: &ServerParams, key_id: &str, certificate_value: &[u8],
crate/server/src/core/operations/encrypt.rs:1158
↓ 2 callersFunctionencrypt_with_pkey
( request: &Encrypt, #[cfg(feature = "non-fips")] server_params: &ServerParams, #[cfg(not(feature
crate/server/src/core/operations/encrypt.rs:1075
↓ 2 callersFunctionencrypt_with_public_key
( request: &Encrypt, server_params: &ServerParams, owm: &ObjectWithMetadata, rng: &KmsRng, )
crate/server/src/core/operations/encrypt.rs:921
↓ 2 callersFunctionencryption_nonce
IV/Counter/Nonce of a symmetric encryption (KMIP 2.1 §6.1.17): the request's value, or a server-generated random one (returned in the response, flagge
crate/server/src/core/operations/encrypt.rs:518
↓ 2 callersFunctionencryption_tag_length
[`tag_length`] for a new encryption: a FIPS build only seals AES-GCM with the full tag (see [`SymCipher::min_encrypt_tag_size`]); decryption keeps acc
crate/server/src/core/operations/encrypt.rs:684
↓ 2 callersFunctionenforce_ecies_fixed_suite_for_attributes
( params: &ServerParams, operation_tag: &str, key_id: &str, attrs: &Attributes, )
crate/server/src/core/operations/algorithm_policy.rs:696
↓ 2 callersFunctionenforce_ecies_fixed_suite_for_pkey_id
( params: &ServerParams, operation_tag: &str, key_id: &str, pkey_id: openssl::pkey::Id, )
crate/server/src/core/operations/algorithm_policy.rs:577
↓ 2 callersMethodenforce_keyset_latest
Reject a Re-Key / Re-KeyKeyPair request when the selected key is not the latest generation in its named keyset. No-ops for keys that are not part of
crate/server/src/core/operations/rekey/common.rs:96
↓ 2 callersFunctionenforce_kmip_algorithm_policy_for_kem_components
( params: &ServerParams, operation_tag: &str, uid_for_error: &str, (curve, algorithm): (Option
crate/server/src/core/operations/algorithm_policy.rs:543
↓ 2 callersFunctionenforce_kmip_algorithm_policy_for_operation
( params: &ServerParams, operation: OperationEnumeration, ttlv: &TTLV, )
crate/server/src/core/operations/algorithm_policy.rs:54
↓ 2 callersFunctionenforce_size_cap
Marks the sink capped once its committed length reaches the configured limit. The write crossing the limit remains committed.
crate/server/src/core/audit/file_sink.rs:326
↓ 2 callersFunctionenqueue_socket_events
Queues one event per KMIP batch item of a socket-server request (no Actix middleware runs there). `user` is `None` when the client was not authenticat
crate/server/src/middlewares/audit/mod.rs:394
↓ 2 callersFunctionenrichVisibleRows
(rows: LocatedRow[])
ui/src/components/common/Locate.tsx:212
↓ 2 callersFunctionensure
Fail with `message` unless `condition`; unlike `assert!`, lets the caller destroy its key.
crate/hsm/base_hsm/src/tests_shared.rs:737
↓ 2 callersMethodensure_X509_or_none
(&self)
crate/clients/pkcs11/module/src/core/attribute.rs:499
↓ 2 callersFunctionensure_ckms_binary
Ensures the ckms binary is built before any test runs Call this function at the start of every test that needs the ckms binary
crate/clients/ckms/src/tests/ensure_binary.rs:13
↓ 2 callersFunctionensure_func_list_3_0_registered
PKCS#11 v3.0 Interfaces API gap-fill: populates the `FUNC_LIST_3_0*` tables exactly once, regardless of how many threads call `C_GetInterfaceList`/`C_
crate/clients/pkcs11/provider/src/lib.rs:127
↓ 2 callersFunctionensure_issuer_key_active
Verify that the issuer private key is in the Active state before signing. KMIP §4.57 mandates that a Deactivated key **SHALL NOT** be used for applyi
crate/server/src/core/operations/certify/resolve_issuer.rs:50
↓ 2 callersFunctionensure_kek_wrapping
Startup check: an HSM AES key encryption key must be able to wrap with its configured mode (AES-KW, AES-KWP or AES-GCM, the default). For AES-KW/KWP,
crate/server/src/core/wrapping/wrap.rs:372
↓ 2 callersFunctionensure_key_enabled
Fail with the Azure EKM `KeyDisabled` error when the key is not in a usable state. `accepted_states` are those of the KMIP operation that performs th
crate/server/src/routes/azure_ekm/handlers.rs:51
↓ 2 callersFunctionensure_key_wrap_supported
AES-KW/KWP are only attempted on slots that advertise them.
crate/interfaces/src/hsm/hsm_store.rs:929
↓ 2 callersMethodensure_message_context
Makes sure a message context for `family` is open for this key and mechanism. Returns `Ok(false)` when the token rejects the mechanism (cached per sl
crate/hsm/base_hsm/src/session/message_context.rs:268
↓ 2 callersFunctionensure_multi_part_cipher
Ciphers whose OpenSSL streaming matches their one-shot output, hence usable for multi-part operations. XTS (one data unit per call), key wrapping, GCM
crate/server/src/core/operations/encrypt.rs:709
↓ 2 callersFunctionensure_no_caller_gcm_iv
An AES-GCM IV is generated inside the FIPS module (NIST SP 800-38D §9.1, FIPS 140-3 IG C.H): a FIPS build refuses one supplied by the caller.
crate/server/src/core/operations/encrypt.rs:617
↓ 2 callersFunctionensure_svid_providers_have_audience
`--jwt-svid-auth` is global: it makes EVERY `--jwt-auth-provider` issuer accept SPIFFE subjects. A JWT-SVID is minted for a specific audience and work
crate/server/src/config/params/server_params.rs:1498
↓ 2 callersFunctionenum_value_matches
Compare a response value with its expected text. Binary TTLV responses encode enumerations as hex (e.g. "0x00000002"), so a known enum name also match
crate/test_kms_server/src/vector_runner.rs:876
↓ 2 callersFunctionephemeral_secret_template
Template of the ephemeral, extractable session object carrying the bytes to (un)wrap.
crate/hsm/base_hsm/src/session/aes_key_wrap.rs:38
↓ 2 callersFunctionerr
(o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionerror
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionerror_policy
(obj: &KMSSecret, err: &OperatorError, _ctx: &Context)
crate/clients/k8s/operator/src/controller.rs:172
↓ 2 callersMethoderror_response
(&self)
crate/server/src/routes/aws_xks/error.rs:181
↓ 2 callersFunctionerror_response_bytes
Encodes the Response Message that fails every item of a request with `error`.
crate/server/src/routes/kmip/handlers.rs:621
↓ 2 callersFunctiones_compile
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionescapeDeepLinkPath
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionevent
(id: i64, operation: &str, details: Option<String>, prev_hash: [u8; 32])
crate/clients/ckms/src/tests/audit.rs:21
↓ 2 callersFunctionevent_from_row
Rebuilds an `AuditEvent` from a row produced by `select-audit-events-page`. Column access is by name, so an extra column (e.g. `chain_generation`, whi
crate/server_database/src/stores/audit/row.rs:17
↓ 2 callersFunctionevict
Move the streams matching `pred` from `streams` into `out`.
crate/server/src/core/operations/key_ops/multi_part.rs:442
↓ 2 callersFunctionevict_ocsp_cache_entry
Evict a single entry from the in-memory OCSP response cache. Called from `Revoke` (`crate::core::operations::revoke`) right after a certificate's lif
crate/server/src/routes/ocsp/handler.rs:158
↓ 2 callersFunctionexecute_steps
Execute the steps of a test vector against a running server.
crate/test_kms_server/src/vector_runner.rs:1629
↓ 2 callersFunctionexport_action
(path: PathBuf, format: ExportFormat)
crate/clients/clap/src/actions/audit.rs:1223
↓ 2 callersFunctionexport_get
Export an object This function is used by the KMIP Export and Get operations
crate/server/src/core/operations/export_get.rs:126
↓ 2 callersMethodexport_policy
(&self)
crate/clients/cng/src/key.rs:261
↓ 2 callersFunctionexport_policy_from_attributes
(attrs: &Attributes)
crate/clients/cng/src/backend.rs:266
↓ 2 callersFunctionexport_private_key_pkcs8
Export a private key from the KMS in PKCS#8 DER format. This is used by `NCryptExportKey` with the `PKCS8_PRIVATEKEY` blob type (e.g. Intune `Export-
crate/clients/cng/src/backend.rs:295
↓ 2 callersFunctionexported_policy
Export policy of a persisted key, derived from the KMS `Extractable`/`Sensitive` attributes.
crate/clients/cng/src/provider.rs:1417
↓ 2 callersFunctionextendStatics
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionextension_config_is_ca
Return `true` when the vendor extension-config attribute marks this certificate as a CA (`basicConstraints=CA:TRUE` or `basicConstraints=critical,CA:T
crate/server/src/core/operations/certify/build_certificate.rs:232
↓ 2 callersFunctionextractExample
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 2 callersFunctionextractMeta
(parsed: unknown)
ui/src/components/common/Locate.tsx:207
↓ 2 callersFunctionextract_bearer_token
Extract a Bearer token from the `Authorization` header of a request. Returns the raw token string (trimmed) on success, or an `Unauthorized` error wh
crate/server/src/middlewares/mod.rs:74
↓ 2 callersFunctionextract_csrf_state
Extract the `state` query parameter from `auth_url` — that is the CSRF token the callback handler expects.
crate/clients/client/src/http_client/tests.rs:486
← previousnext →3,101–3,200 of 16,000, ranked by callers