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
↓ 1 callers
Function
encrypt
crate/hsm/base_hsm/tests/fixtures/fips_gcm_hsm.c:234
↓ 1 callers
Method
encrypt
Encrypts the given `value` using the FPE method. The value must be less than or equal to the `max_value` of the `Integer` representation. # Example
crate/crypto/src/crypto/fpe/integer.rs:103
↓ 1 callers
Method
encrypt
( &'a self, _slot_id: usize, key_id: &'a [u8], _algorithm: CryptoAlgorithm,
crate/server/src/tests/hsm/fake_hsm_rotation.rs:275
↓ 1 callers
Method
encrypt
(&self, ctx: &EncryptContext, cleartext: Vec<u8>)
crate/clients/pkcs11/provider/src/backend.rs:652
↓ 1 callers
Method
encrypt_aes_cbc
( &self, key_handle: CK_OBJECT_HANDLE, plaintext: &[u8], iv_counter_nonce: Opt
crate/hsm/base_hsm/src/session/session_impl.rs:1087
↓ 1 callers
Method
encrypt_aes_cbc_multi_part
Encrypt data with AES-CBC using a single PKCS#11 multi-part operation: one `C_EncryptInit`, one `C_EncryptUpdate` per part of at most `max_part_length
crate/hsm/base_hsm/src/session/session_impl.rs:1566
↓ 1 callers
Method
encrypt_aes_gcm
( &self, key_handle: CK_OBJECT_HANDLE, plaintext: &[u8], iv_counter_nonce: Opt
crate/hsm/base_hsm/src/session/session_impl.rs:1051
↓ 1 callers
Method
encrypt_aes_gcm_caller_iv
AES-GCM with an IV chosen outside the HSM, accepted only where the same policy already allows a KMS-generated classic IV. The caller owns nonce unique
crate/hsm/base_hsm/src/session/session_impl.rs:1018
↓ 1 callers
Method
encrypt_aes_gcm_classic
AES-GCM encryption with a caller-generated random 96-bit IV.
crate/hsm/base_hsm/src/session/session_impl.rs:950
↓ 1 callers
Method
encrypt_aes_gcm_hsm_generated_iv
AES-GCM encryption for HSMs that reject a caller-supplied IV (`AesGcmCapabilities::supports_caller_iv == false`): a zeroed `pIv` buffer is passed and
crate/hsm/base_hsm/src/session/session_impl.rs:967
↓ 1 callers
Function
encrypt_bulk
Encrypt multiple plaintexts with the same key and return the corresponding ciphertexts. This is a hack where `request.data` is a serialized `BulkData
crate/server/src/core/operations/encrypt.rs:283
↓ 1 callers
Function
encrypt_cc_ttlv_request
( key_unique_identifier: &str, encryption_policy: String, plaintext: Vec<u8>, authentication_d
crate/clients/wasm/src/wasm.rs:2005
↓ 1 callers
Function
encrypt_certificate_ttlv_request
( unique_identifier: &str, plaintext: Vec<u8>, authentication_data: Option<Vec<u8>>, encryptio
crate/clients/wasm/src/wasm.rs:2459
↓ 1 callers
Function
encrypt_dir
Direct AES-GCM encryption — delegates to the KMIP Encrypt pipeline.
crate/server/src/routes/jose/encrypt.rs:91
↓ 1 callers
Function
encrypt_fpe_ttlv_request
( key_unique_identifier: &str, plaintext: Vec<u8>, tweak: Option<Vec<u8>>, authenticated_data:
crate/clients/wasm/src/wasm.rs:1510
↓ 1 callers
Function
encrypt_multi_part
Multi-part symmetric encryption (KMIP 2.1 §6.1 and §6.1.17): the OpenSSL cipher context is kept server-side under the Correlation Value; the tag is re
crate/server/src/core/operations/encrypt.rs:769
↓ 1 callers
Function
encrypt_oaep
( dll: &KspDll, h_provider: usize, h_key: usize, plaintext: &[u8], )
crate/clients/clap/src/actions/cng_verify.rs:479
↓ 1 callers
Function
encrypt_rsa_oaep
RSA-OAEP key wrapping: generate ephemeral CEK, wrap with RSA public key, AES-GCM encrypt. Follows RFC 7516 §5.1 (JWE Encryption): 1. Generate random
crate/server/src/routes/jose/encrypt.rs:155
↓ 1 callers
Method
encrypt_rsa_oaep
( &self, key_handle: CK_OBJECT_HANDLE, digest: RsaOaepDigest, plaintext: &[u8]
crate/hsm/base_hsm/src/session/session_impl.rs:1166
↓ 1 callers
Function
encrypt_single
Encrypt a single plaintext with the key and return the corresponding ciphertext. The key can be a symmetric key, a public key or a certificate. # Argu
crate/server/src/core/operations/encrypt.rs:251
↓ 1 callers
Method
encrypt_update
Feed one part to the active encryption operation and append the produced bytes.
crate/hsm/base_hsm/src/session/session_impl.rs:1674
↓ 1 callers
Function
encrypt_with_rsa
( public_key: &PKey<Public>, cryptographic_parameters: Option<&CryptographicParameters>, plaintext
crate/server/src/core/operations/encrypt.rs:1122
↓ 1 callers
Function
encrypt_with_symmetric_key
( request: &Encrypt, owm: &ObjectWithMetadata, rng: &KmsRng, )
crate/server/src/core/operations/encrypt.rs:408
↓ 1 callers
Function
endIndex
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
endOfMode
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
endReadable
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
end_auth_verifier_session
Revoke the browser's Auth Verifier SAML session, if any, on the Auth Verifier. Returns `true` when the browser holds a valid session of the SAML real
crate/server/src/routes/ui_auth.rs:779
↓ 1 callers
Function
enforce_authorization_claims
Run [`check_authorization_claims`] when [`ENFORCE_AUTHORIZATION_CLAIMS`] is set.
crate/server/src/routes/google_cse/jwt.rs:632
↓ 1 callers
Function
enforce_fips_provider_only
()
crate/server/src/openssl_providers.rs:407
↓ 1 callers
Function
enforce_subject_algorithm_policy
Certify: the certified key (and a PKCS#10 request's signature) must satisfy the active algorithm policy; the issuer key is checked when it is resolved
crate/server/src/core/operations/certify/certify_op.rs:78
↓ 1 callers
Function
enrichRows
Fetch Type/Algorithm/Length/Format/State attributes for a list of UIDs in parallel.
ui/src/components/common/LocateButton.tsx:77
↓ 1 callers
Function
enroll
Authenticate, authorise and execute one `PKCSReq` / `RenewalReq`. `principal` is set once the message is authenticated.
crate/server/src/routes/scep/pki_operation.rs:291
↓ 1 callers
Function
ensure
()
crate/crypto/src/error/mod.rs:167
↓ 1 callers
Function
ensure
()
crate/kmip/src/error/mod.rs:195
↓ 1 callers
Function
ensure
()
crate/server/src/error.rs:410
↓ 1 callers
Function
ensure
()
crate/clients/clap/src/error/mod.rs:182
↓ 1 callers
Function
ensure
()
crate/clients/ckms/src/error/mod.rs:180
↓ 1 callers
Function
ensureCanMutateNextListeners
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
ensureIsArray
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Method
ensure_activation_schema
(&self)
crate/server_database/src/stores/sql/sqlite.rs:403
↓ 1 callers
Function
ensure_allowed
Fail unless the `AlgorithmIdentifier` `alg` names one of `allowed`.
crate/crypto/src/openssl/scep_cms.rs:287
↓ 1 callers
Function
ensure_fips_pbkdf2_parameters
NIST SP 800-132 §5: the derived key is at least 112 bits; §5.1: the salt is at least 128 bits; §5.2: an iteration count of at least 1,000 is recommend
crate/server/src/core/operations/derive_key.rs:1022
↓ 1 callers
Function
ensure_func_list_registered
()
crate/clients/pkcs11/provider/src/lib.rs:112
↓ 1 callers
Function
ensure_hmac_generation_key_length
NIST SP 800-131A r2 §10: a key under 112 bits is disallowed for HMAC generation (Table 9); the pedantic FIPS provider (`hmac-key-check`) also refuses
crate/server/src/core/operations/mac.rs:443
↓ 1 callers
Method
ensure_login_session
(&self)
crate/hsm/base_hsm/src/slots.rs:350
↓ 1 callers
Function
ensure_no_proxy_for_localhost
()
crate/server/src/tests/test_utils.rs:201
↓ 1 callers
Function
ensure_openssl_env
()
crate/crypto/src/lib.rs:113
↓ 1 callers
Method
ensure_schema
(&self, clear_database: bool)
crate/server_database/src/stores/migrate.rs:591
↓ 1 callers
Function
ensure_url
(database_url: Option<&str>, alternate_env_variable: &str)
crate/server/src/config/command_line/db.rs:353
↓ 1 callers
Function
ensure_value
( value: Option<&str>, option_name: &str, env_variable_name: &str, )
crate/server/src/config/command_line/db.rs:370
↓ 1 callers
Method
ensure_wrapping_key_schema
(&self)
crate/server_database/src/stores/sql/sqlite.rs:368
↓ 1 callers
Method
enter
(&self, _: &tracing::span::Id)
crate/clients/pkcs11/module/src/tests.rs:131
↓ 1 callers
Method
enumSerialiseAttributes
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Method
enumSerialiseContent
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
env_of
Builds an environment lookup from `(name, value)` pairs.
crate/clients/clap/src/actions/audit.rs:1974
↓ 1 callers
Method
error_response
(&self)
crate/server/src/routes/kv/error.rs:73
↓ 1 callers
Method
error_response
(&self)
crate/server/src/routes/jose/error.rs:65
↓ 1 callers
Function
es_parse
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
es_refractor_createRefractor
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
es_refractor_refract
(s,{specPath:o=["visitors","document","objects","OpenApi","$visitor"],plugins:i=[]}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
es_substitute
(s,o,i={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
escapeHtml
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
escapeJsonPointerToken
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
escapePathComponent
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
escape_ext_value
Escapes a value for use in a CEF extension field value. Per CEF spec 0.1: `\` → `\\`, then `=` → `\=`, then newlines.
crate/access/src/audit/cef.rs:161
↓ 1 callers
Function
escape_header
Escapes a value for use in the CEF pipe-delimited header. Escapes `\` → `\\`, `|` → `\|`, then newlines — a raw `\n`/`\r` in the operation name would
crate/access/src/audit/cef.rs:152
↓ 1 callers
Function
establish_connect_tunnel
Establish an HTTP CONNECT tunnel through the proxy. Connects to the proxy, sends `CONNECT host:port HTTP/1.1`, reads the response, and returns the ra
crate/clients/client/src/http_client/proxy.rs:123
↓ 1 callers
Function
etag_for
Compute a strong `ETag` validator (RFC 5019 §2.2.6, RFC 7232 §2.3) for an OCSP response body: the hex-encoded SHA-256 digest of the DER bytes. Since t
crate/server/src/routes/ocsp/handler.rs:680
↓ 1 callers
Function
eventTargetAgnosticAddListener
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
every_action
()
crate/crypto/src/crypto/cover_crypt/attributes.rs:269
↓ 1 callers
Method
evict_expired
Remove every expired entry from the cache. Called opportunistically from `insert` once the cache grows past `max_entries`, so a token that validates
crate/server/src/middlewares/spire_token.rs:86
↓ 1 callers
Method
evp_gcm_cipher
The EVP cipher of an AES-GCM variant, for the `EVP_CIPHER_CTX` based paths.
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:406
↓ 1 callers
Function
execute_access_step
Execute a `GrantAccess` or `RevokeAccess` step via the Cosmian REST API.
crate/test_kms_server/src/vector_runner.rs:1358
↓ 1 callers
Function
execute_alloc_temp_file_step
Execute an `AllocTempFile` pseudo-step. The request JSON must have: `{ "capture_as": "variable_name", "extension": "pem" }` Optionally: `"additional_
crate/test_kms_server/src/vector_runner.rs:1439
↓ 1 callers
Function
execute_generate_crl_step
Execute a `GenerateCrl` step via the Cosmian REST API. The request JSON must have: `{ "issuer_id": "{{cert_id}}" }` Optionally: `"format": "pem"|"der
crate/test_kms_server/src/vector_runner.rs:1499
↓ 1 callers
Function
exists
(handle: CK_SESSION_HANDLE)
crate/clients/pkcs11/module/src/sessions.rs:1157
↓ 1 callers
Function
expandNodes
(s,o,i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
expandOptionalGroups
(page: Page)
ui/tests/e2e/ui-config-menu.spec.ts:15
↓ 1 callers
Function
expand_kmip2_get_attributes_request
(op: &mut Operation, kmip_version: KmipFlavor)
crate/server/src/core/operations/message.rs:1212
↓ 1 callers
Function
expect_crl_issuers
Fail unless the `crls` table holds exactly `expected` issuers.
crate/server_database/src/stores/sql/sqlite.rs:2245
↓ 1 callers
Function
expect_rejected
(result: &HResult<T>, what: &str)
crate/hsm/base_hsm/src/tests_shared.rs:1105
↓ 1 callers
Method
expected_response_is_missing_iv_error
Determine if the expected response represents the specific negative test case where a Decrypt is expected to fail due to a missing IV. We detect this
crate/clients/clap/src/tests/xml/request.rs:114
↓ 1 callers
Function
expected_state
(id: &str)
crate/server_database/src/tests/sqlite_migration_tests.rs:147
↓ 1 callers
Method
expire_cron_lease
Test-only: expire a lease as if its holder had died, without waiting for the TTL.
crate/server_database/src/stores/sql/mysql.rs:657
↓ 1 callers
Function
expire_version
Destroy the TTL candidate `uid` if its metadata says it has expired at `now`.
crate/server/src/routes/kv/metadata.rs:557
↓ 1 callers
Function
expired_auth_verifier_session_cookie
Removal cookie for the Auth Verifier session; must match the name and path it was set with.
crate/server/src/routes/ui_auth.rs:847
↓ 1 callers
Function
expiring_soon_counts
Number of dates in `(now, now + days]` for every window of [`EXPIRY_WINDOWS_DAYS`]. Dates already past are not "expiring soon": the key is (or is abou
crate/server/src/core/otel_metrics.rs:805
↓ 1 callers
Function
export
Export an object If the request contains a `KeyWrappingData`, the key will be wrapped. If the request contains a `KeyWrapType`, the key will be unwra
crate/server/src/core/operations/export.rs:19
↓ 1 callers
Method
export
( &self, _slot_id: usize, _object_id: &[u8], )
crate/interfaces/src/hsm/interface.rs:739
↓ 1 callers
Method
export
This operation requests that the server returns a Managed Object specified by its Unique Identifier, together with its attributes. The Key Format Type
crate/clients/client/src/kms_rest_client.rs:312
↓ 1 callers
Function
exportGlobalErrorCauseWrapper
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
exportRsaKey
( page: Page, keyId: string, formatLabel: string, opts?: { wrapKeyId?: string;
ui/tests/e2e/rsa-export-options.spec.ts:31
↓ 1 callers
Function
exportWebAssemblyErrorCauseWrapper
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Method
export_aes_key
(&self, key_handle: CK_OBJECT_HANDLE)
crate/hsm/base_hsm/src/session/session_impl.rs:3416
↓ 1 callers
Function
export_aes_key_bytes
Export an AES-256 key through RSA-OAEP and verify its bytes outside the HSM.
crate/hsm/base_hsm/src/tests_shared.rs:332
↓ 1 callers
Function
export_cc_test
( key_format_type: KeyFormatType, key_id: &str, tmp_path: &Path, owner_client_
crate/clients/ckms/src/tests/shared/export.rs:417
↓ 1 callers
Function
export_certificate_ttlv_request
( unique_identifier: &str, output_format: &str, pkcs12_password: Option<String>, )
crate/clients/wasm/src/wasm.rs:2341
↓ 1 callers
Method
export_ec_private_key
(&self, key_handle: CK_OBJECT_HANDLE)
crate/hsm/base_hsm/src/session/session_impl.rs:3228
↓ 1 callers
Method
export_ec_public_key
(&self, key_handle: CK_OBJECT_HANDLE)
crate/hsm/base_hsm/src/session/session_impl.rs:3298
↓ 1 callers
Method
export_file
( &self, path: &Path, since: Option<time::OffsetDateTime>, out: &mut W, )
crate/clients/clap/src/actions/audit.rs:273
← previous
next →
5,201–5,300 of 16,000, ranked by callers