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
checkForUpdates
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
checkInt
(s,o,i,u,_,w)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
checkOffset
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
check_apple_envelope
(envelope: &[u8], ca_key: &PKey<Private>, ca: &X509)
crate/server/src/tests/enrollment_tests.rs:1079
↓ 1 callers
Function
check_approle_response
Check a `reqwest::Response` for success, returning it as-is on success or a [`KmsCliError`] with the operation name and response body on failure.
crate/clients/clap/src/actions/vault/approle.rs:152
↓ 1 callers
Function
check_basic
(kms: &KMS, req: &HttpRequest)
crate/server/src/routes/est/enroll.rs:133
↓ 1 callers
Function
check_block_cipher_mode_in_encryption_key_information
The purpose of this function is to check the block cipher mode in the encryption key information against the wrapping key It verifies the `BlockCipher
crate/crypto/src/crypto/wrap/wrap_key.rs:67
↓ 1 callers
Function
check_cas
Vault check-and-set: the write proceeds only when `cas` (if any) is the current version.
crate/server/src/routes/kv/mod.rs:202
↓ 1 callers
Function
check_chain
Run the signature, date, internal-state and CRL checks on a chain. # Errors Returns [`KmsError::Certificate`] when the chain is invalid, any other er
crate/server/src/core/operations/validate.rs:276
↓ 1 callers
Function
check_eddsa_sign
(groups: &[EddsaGroup], id: Id)
crate/crypto/src/crypto/elliptic_curves/sign.rs:553
↓ 1 callers
Function
check_eddsa_sign_and_verify_round_trip
Generates an Ed25519 (`EdDSA`) key pair (`CKM_EC_EDWARDS_KEY_PAIR_GEN`, OASIS Cryptoki v3.0 §2.3.9) and checks that a `CKM_EDDSA` signature round-trip
crate/hsm/base_hsm/src/tests_shared.rs:2343
↓ 1 callers
Method
check_ekus
(&self, requested: Option<&[String]>)
crate/server/src/core/operations/certify/template.rs:455
↓ 1 callers
Function
check_envelope_algorithms
Refuse a `pkcsPKIEnvelope` whose algorithms are outside the SCEP allow-lists. OpenSSL has no getter for `contentEncryptionAlgorithm`, so the DER is w
crate/crypto/src/openssl/scep_cms.rs:240
↓ 1 callers
Function
check_fixed_length
Rejects a declared length that differs from the fixed length of the item type (KMIP 2.1 Table 427).
crate/kmip/src/ttlv/wire/ttlv_bytes_deserializer.rs:14
↓ 1 callers
Function
check_found
Compare the uids of `rows` with `expected`, duplicates included.
crate/server_database/src/tests/database_tests.rs:1093
↓ 1 callers
Function
check_hkdf_derive
Generates a `CKK_GENERIC_SECRET` base key and derives a key from it via `CKM_HKDF_DERIVE` (OASIS Cryptoki v3.0 §2.5).
crate/hsm/base_hsm/src/tests_shared.rs:2364
↓ 1 callers
Function
check_hsm
(kms: &KMS, index: usize, slots: Vec<usize>)
crate/server/src/routes/health.rs:253
↓ 1 callers
Function
check_internal_certificate_states
Verify that every certificate in the chain the KMS holds a record for is currently `Active` or `PreActive`. This is what lets [`validate_operation`]
crate/server/src/core/operations/validate.rs:1241
↓ 1 callers
Function
check_jwt_algorithm
(alg: Algorithm)
crate/server/src/middlewares/jwt/jwt_config.rs:48
↓ 1 callers
Function
check_key_compromised
Check if key state changed to compromised
crate/server/src/tests/ttlv_tests/normative_tests/aklc_m_3_14.rs:522
↓ 1 callers
Function
check_message_based_aes_gcm_round_trip
Checks a message-based AES-GCM AEAD round-trip (`C_MessageEncryptInit`/`C_EncryptMessage` and `C_MessageDecryptInit`/`C_DecryptMessage`, OASIS Cryptok
crate/hsm/base_hsm/src/tests_shared.rs:2397
↓ 1 callers
Function
check_migration_claims
Check the claims of a validated KACLS migration token against this request.
crate/server/src/routes/google_cse/jwt.rs:360
↓ 1 callers
Function
check_modify_target
KMIP 2.1 §6.1.34: only existing attributes may be modified; with several instances the Current Attribute must select one. Attributes the server defaul
crate/server/src/core/operations/attributes/modify.rs:28
↓ 1 callers
Function
check_mount_access
Refuse a KMS UID that is not allowlisted for the pod's namespace. A UID starting with `[` is a KMS tag list (resolves to an arbitrary object) and is n
crate/clients/k8s/csi_provider/src/service.rs:203
↓ 1 callers
Function
check_operation_policy_name
Send a KMIP 1.0 `GetAttributes` for `"Operation Policy Name"` and verify the round-tripped value matches the original.
crate/server/src/tests/ttlv_tests/register_operation_policy_name_1_0.rs:139
↓ 1 callers
Function
check_pkcs11_v3_interface_list_is_populated
Checks that the PKCS#11 v3.0 interface discovery (`C_GetInterfaceList`) is populated. Unlike [`get_supported_algorithms`], this asserts that the libr
crate/hsm/base_hsm/src/tests_shared.rs:2322
↓ 1 callers
Function
check_public_and_private_key_linked
( owner_client_conf_path: &str, public_key_id: &str, public_key_attributes: &Attributes, )
crate/clients/ckms/src/tests/certificates/certify.rs:490
↓ 1 callers
Method
check_public_key
(&self, public_key: &PKey<Public>)
crate/server/src/core/operations/certify/template.rs:417
↓ 1 callers
Function
check_public_key_state
Check public key state
crate/server/src/tests/ttlv_tests/normative_tests/aklc_m_3_14.rs:578
↓ 1 callers
Function
check_requested_extensions
Refuse every CSR-requested extension that is not in [`ALLOWED_CSR_EXTENSIONS`], any keyUsage that lets the certificate sign certificates or CRLs, and
crate/server/src/core/operations/certify/template.rs:275
↓ 1 callers
Function
check_rsa_mask_against_flags
Check that bits set in `mask` are only bits set in `flags`. If any bit set in `mask` is not set in `flags`, raise an error. If `mask` is `None`, rais
crate/crypto/src/crypto/rsa/operation.rs:34
↓ 1 callers
Function
check_rsa_mask_compliance
Check that `mask` is compliant with FIPS restrictions for private and public key components. For example an RSA pubic key must not be used for decrypt
crate/crypto/src/crypto/rsa/operation.rs:68
↓ 1 callers
Function
check_rv_raw
Internal variant used in contexts that return `Result<_, String>`.
crate/clients/clap/src/actions/pkcs11/verify.rs:889
↓ 1 callers
Method
check_sans
SANs are default-deny: a SAN type is accepted only when the template has a pattern for it, or when the template sets `allow_any_identity = true` and n
crate/server/src/core/operations/certify/template.rs:513
↓ 1 callers
Function
check_set_delete_attributes
Check the full set/get/delete cycle for a given key.
crate/clients/ckms/src/tests/attributes/test_set_attribute.rs:175
↓ 1 callers
Method
check_slot
(&self, slot_id: usize)
crate/hsm/base_hsm/src/kms_hsm.rs:215
↓ 1 callers
Method
check_subject
(&self, csr: &X509Req)
crate/server/src/core/operations/certify/template.rs:474
↓ 1 callers
Function
check_vault_token
Extract and validate the `X-Vault-Token` header from an incoming request. Returns: - [`VaultTokenResult::Valid`] — header present, token accepted by
crate/server/src/middlewares/spire_token.rs:230
↓ 1 callers
Method
checkin
Return a successfully used session to its slot pool.
crate/hsm/base_hsm/src/slots.rs:175
↓ 1 callers
Method
checkpoint_policy
Loads `--checkpoint-key` / `--tsa-ca`, when given.
crate/clients/clap/src/actions/audit.rs:456
↓ 1 callers
Function
checkpoint_signature_is_valid
Whether `signature` is a valid SHA-256 signature of `message` under `key`. RSA keys are accepted with PKCS#1 v1.5 or PSS padding, since the KMS key at
crate/clients/clap/src/actions/audit.rs:989
↓ 1 callers
Function
choosePeriod
(label: string)
ui/tests/unit/tsx-imports/ServerHealth.test.ts:151
↓ 1 callers
Function
chooseScalarStyle
(s,o,i,u,_,w,x,C)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
cipher_for_enc
Select the OpenSSL `Cipher` for the given content-encryption algorithm.
crate/server/src/routes/jose/aes_gcm.rs:29
↓ 1 callers
Function
ck
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
ck_ptr
Hands a read-only value to the C API as the untyped pointer `CK_ATTRIBUTE` requires.
crate/clients/pkcs11/module/src/utils.rs:26
↓ 1 callers
Function
ck_ulong_to_u64
(value: pkcs11_sys::CK_ULONG)
crate/clients/pkcs11/module/src/core/mechanism.rs:59
↓ 1 callers
Function
ckm_rsa_pkcs_encrypt
Encryption 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:46
↓ 1 callers
Function
ckm_rsa_pkcs_oaep_encrypt
Encryption using `CKM_RSA_PKCS_OAEP` a.k.a PKCS #1 RSA OAEP as specified in PKCS#11 v2.40 available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:72
↓ 1 callers
Function
ckms_main
Main function for the KMS CLI application. This function initializes logging, parses command-line arguments, and executes the appropriate command bas
crate/clients/ckms/src/commands.rs:165
↓ 1 callers
Function
claim
(extra: serde_json::Value)
crate/server/src/routes/google_cse/jwt.rs:1326
↓ 1 callers
Function
classify_function_probe
Classifies one raw `CK_RV` shallow-probe result. `CKR_FUNCTION_NOT_SUPPORTED` always means "not implemented" (❌), regardless of the function's own `ex
crate/clients/clap/src/actions/pkcs11/capabilities.rs:2304
↓ 1 callers
Function
classify_tail
Classifies the tail of `path` to decide how startup should recover. Reads only the last `TAIL_WINDOW` bytes and retains the last **two candidate rows
crate/server/src/core/audit/recovery.rs:112
↓ 1 callers
Function
cleanup
()
ui/tests/integration/kms-secret-data-export-import-roundtrip.test.ts:65
↓ 1 callers
Function
cleanup
()
ui/tests/integration/kms-locate-export-import-roundtrip.test.ts:58
↓ 1 callers
Function
cleanup
()
ui/tests/integration/kms-certificate-export-import-roundtrip.test.ts:62
↓ 1 callers
Function
cleanup
()
ui/tests/integration/kms-opaque-object-export-import-roundtrip.test.ts:65
↓ 1 callers
Function
cleanup
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
cleanup_hsm_slot_objects
Remove all test-vector objects (`vec_…` keys) from the active HSM slot before test steps execute. Orphaned keys from a previous test run accumulate i
crate/test_kms_server/src/test_server.rs:868
↓ 1 callers
Function
cleanup_keys
Destroys every KMS object provisioned by this run. Best-effort: a failure to destroy one object is logged but does not fail the command, since the mec
crate/clients/clap/src/actions/pkcs11/capabilities.rs:1110
↓ 1 callers
Function
clear_and_reopen
(fixture: &RedisFixture)
crate/server_database/src/tests/redis_migration_tests.rs:577
↓ 1 callers
Function
clear_database
(fixture: &F)
crate/server_database/src/tests/sql_migration_tests.rs:443
↓ 1 callers
Function
clear_ephemeral_response
(response: &mut Operation)
crate/server/src/core/operations/message.rs:1200
↓ 1 callers
Function
clear_generated_crl_cache_for_tests
()
crate/server/src/core/operations/generate_crl.rs:88
↓ 1 callers
Method
clear_rotation_flags
Clear rotation flags after this key is retired as part of a rekey. - `rotate_interval` = 0 (prevent the scheduler from picking it up again) - `rotate
crate/kmip/src/kmip_2_1/kmip_attributes.rs:1952
↓ 1 callers
Function
client_auth
()
crate/server/src/core/operations/certify/template.rs:628
↓ 1 callers
Function
client_certificate
A client certificate for `cn`, issued by the trusted test client CA.
crate/server/src/socket_server.rs:800
↓ 1 callers
Method
client_ip
The address `req` is throttled under: the peer, or the client a trusted proxy reports.
crate/server/src/middlewares/rate_limiter.rs:206
↓ 1 callers
Method
client_side_decrypt_with_buffer
Decrypt a buffer using a symmetric key. # Errors - If the key encryption algorithm is not supported - If the data encryption algorithm is not supporte
crate/clients/clap/src/actions/symmetric/decrypt.rs:325
↓ 1 callers
Method
client_side_decrypt_with_file
( &self, kms_rest_client: KmsClient, params: ClientSideDecryptParams<'_>, inpu
crate/clients/clap/src/actions/symmetric/decrypt.rs:237
↓ 1 callers
Method
client_side_encrypt_with_buffer
Encrypt a buffer using a symmetric stream cipher and return the ciphertext. Ciphertext format is: | `kem_nonce` | `kem_ciphertext` | `kem_tag` | ciphe
crate/clients/clap/src/actions/symmetric/encrypt.rs:453
↓ 1 callers
Method
client_side_encrypt_with_file
Encrypt a file using a symmetric stream cipher and return the ephemeral key
crate/clients/clap/src/actions/symmetric/encrypt.rs:274
↓ 1 callers
Function
cloneArray
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
cloneNode
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
cloneShallowElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
close
(handle: CK_SESSION_HANDLE)
crate/clients/pkcs11/module/src/sessions.rs:1207
↓ 1 callers
Method
closeAllNodes
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
close_session
()
crate/clients/pkcs11/module/src/tests.rs:771
↓ 1 callers
Method
cng_alg_id
(&self)
crate/clients/cng/src/key.rs:32
↓ 1 callers
Function
collapse_adjacently_tagged_structure
Collapse an Adjacently tagged structure with a tag and a content into a single TTLV element. See kmip_ttlv_serializer.rs for the documentation example
crate/kmip/src/ttlv/normalize.rs:11
↓ 1 callers
Function
collect
(n: &TTLV, out: &mut Vec<u8>)
crate/kmip/src/ttlv/normalize.rs:24
↓ 1 callers
Function
collectAttributeColumns
* Walk every page of the Ant Design Table and collect Type and Key Format Type * values for rows matching the given UID prefix (or all rows if no pre
ui/tests/e2e/locate-attributes.spec.ts:47
↓ 1 callers
Function
collectHsmKeysAcrossPages
* Walk every page of the Ant Design Table and count HSM / Unknown rows. * Returns the number of hsm:: UIDs with Active state and the total entries *
ui/tests/e2e/locate-hsm.spec.ts:54
↓ 1 callers
Function
collectUids
()
ui/tests/e2e/locate-hsm.spec.ts:176
↓ 1 callers
Function
collectValuesByTag
* Recursively collect every TextString value whose TTLV tag matches `targetTag` * anywhere in the TTLV tree.
ui/tests/e2e/vendor-id-flow.spec.ts:37
↓ 1 callers
Function
collect_bench_points_recursive
( dir: &Path, groups: &mut BTreeMap<String, Vec<BenchPoint>>, )
crate/clients/clap/src/actions/bench/output.rs:392
↓ 1 callers
Function
collect_estimates
()
crate/clients/clap/src/actions/bench/output.rs:666
↓ 1 callers
Function
collect_points
()
crate/clients/clap/src/actions/bench/output.rs:674
↓ 1 callers
Function
colorLevelBadges
(content)
documentation/docs/javascripts/log_filter.js:252
↓ 1 callers
Function
combinePlugins
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
combineTypes
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
comment
(kms: &KMS, uid: &str)
crate/server/src/core/operations/batch_undo.rs:472
↓ 1 callers
Function
compare_item_echo
Operation and Unique Batch Item ID echoed in a response batch item.
crate/clients/clap/src/tests/xml/versioned/compare.rs:167
↓ 1 callers
Function
compare_key_block
( ctx: &Ctx, expected: &kmip_2_1::kmip_data_structures::KeyBlock, actual: &kmip_2_1::kmip_data_str
crate/clients/clap/src/tests/xml/compare.rs:164
↓ 1 callers
Function
compare_key_bytes
Key bytes must match exactly. An empty or `$KEY_MATERIAL_` expected value is a vector placeholder (V21 placeholders were already replaced by the actua
crate/clients/clap/src/tests/xml/compare.rs:239
↓ 1 callers
Function
compare_key_value
( ctx: &Ctx, expected: &kmip_2_1::kmip_data_structures::KeyValue, actual: &kmip_2_1::kmip_data_str
crate/clients/clap/src/tests/xml/compare.rs:256
↓ 1 callers
Function
compare_message_presence
(index: usize, exp_has: bool, act_has: bool)
crate/clients/clap/src/tests/xml/versioned/compare.rs:157
↓ 1 callers
Function
compare_payload_v14
(ctx: &Ctx, expected: &Op14, actual: &Op14)
crate/clients/clap/src/tests/xml/versioned/compare.rs:601
↓ 1 callers
Function
compare_payload_v21
(ctx: &Ctx, expected: &Op21, actual: &Op21)
crate/clients/clap/src/tests/xml/versioned/compare.rs:369
↓ 1 callers
Function
compare_response_messages
Compare expected and actual KMIP responses on essential fields and payloads. `vector` is the vector file stem and `request` the 0-based response inde
crate/clients/clap/src/tests/xml/compare.rs:15
← previous
next →
4,701–4,800 of 16,000, ranked by callers