MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 1 callersFunctiontest_non_admin_export_encrypt_only_fails
#28: Non-admin with Encrypt-only cannot export (Get no longer wildcard for HSM)
crate/server/src/tests/hsm/permissions.rs:551
↓ 1 callersFunctiontest_non_admin_export_no_grant
#26: Non-admin cannot export without grant
crate/server/src/tests/hsm/permissions.rs:520
↓ 1 callersFunctiontest_non_admin_export_with_get
#27: Non-admin can export with Get grant Same as #25: if the HSM enforces `CKA_SENSITIVE`, the Sensitive/DENIED response proves the permission check
crate/server/src/tests/hsm/permissions.rs:535
↓ 1 callersFunctiontest_non_admin_grant_fails
#18: Non-admin cannot grant operations
crate/server/src/tests/hsm/permissions.rs:409
↓ 1 callersFunctiontest_non_admin_kek_wrapping
Issue #761 — Non-admin users are allowed to wrap keys using a server-level KEK. Before the fix, `wrap_using_crypto_oracle()` checked `is_object_owned
crate/server/src/tests/hsm/issues.rs:49
↓ 1 callersFunctiontest_non_admin_locate_after_grant
#10: Non-admin locates only granted key after Encrypt grant
crate/server/src/tests/hsm/permissions.rs:307
↓ 1 callersFunctiontest_non_admin_locate_after_revoke
#11: Non-admin sees nothing after grant is revoked
crate/server/src/tests/hsm/permissions.rs:327
↓ 1 callersFunctiontest_non_admin_locate_empty
#9: Non-admin locates nothing (no grants)
crate/server/src/tests/hsm/permissions.rs:295
↓ 1 callersFunctiontest_non_admin_revoke_fails
#19: Non-admin cannot revoke operations
crate/server/src/tests/hsm/permissions.rs:417
↓ 1 callersFunctiontest_non_admin_sign_no_grant
#30: Non-admin cannot sign without grant (RSA)
crate/server/src/tests/hsm/permissions.rs:575
↓ 1 callersFunctiontest_non_admin_sign_with_grant
#29: Non-admin can sign with Sign grant (RSA)
crate/server/src/tests/hsm/permissions.rs:566
↓ 1 callersFunctiontest_object_search
()
crate/server/src/tests/hsm/search.rs:21
↓ 1 callersFunctiontest_objects_db
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:539
↓ 1 callersFunctiontest_pems
( owner_client_conf_path: &str, key_file_path: &str, export_format: ExportKeyFormat, )
crate/clients/ckms/src/tests/shared/import_export_encodings.rs:59
↓ 1 callersFunctiontest_permissions_db
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:605
↓ 1 callersFunctiontest_private_key_conversion_transparent_rsa
( private_key: &PKey<Private>, id: Id, key_size: u32, )
crate/crypto/src/openssl/private_key.rs:661
↓ 1 callersFunctiontest_protected_parameters
Server parameters are sealed under the database key in Redis: replicas converge on the first value, nothing is stored in clear, and a wrong master key
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:1310
↓ 1 callersFunctiontest_public_key_conversion_transparent_rsa
( public_key: &PKey<Public>, id: Id, key_size: u32, )
crate/crypto/src/openssl/public_key.rs:613
↓ 1 callersFunctiontest_query_
(major: i32, minor: i32)
crate/server/src/tests/ttlv_tests/query.rs:24
↓ 1 callersFunctiontest_redis_clear_keeps_salt
Clearing the database keeps its salt: the key held in memory still matches it.
crate/server_database/src/tests/redis_kdf_salt_tests.rs:147
↓ 1 callersFunctiontest_redis_concurrent_instantiate_converges
Instances starting at the same time on an empty database all end with the same salt.
crate/server_database/src/tests/redis_kdf_salt_tests.rs:114
↓ 1 callersFunctiontest_redis_fresh_db_uses_random_salt
An empty database gets a random 16-byte salt, kept across restarts.
crate/server_database/src/tests/redis_kdf_salt_tests.rs:42
↓ 1 callersFunctiontest_redis_legacy_db_keeps_legacy_salt
A database that holds data but no salt (created by an older KMS) keeps the legacy salt, and the data written with the legacy key stays readable.
crate/server_database/src/tests/redis_kdf_salt_tests.rs:65
↓ 1 callersFunctiontest_redis_non_empty_db_without_salt_uses_legacy_salt
A database that is not empty never gets a random salt, whatever it holds: here a single metadata key, then a single unrelated key (a lost salt must no
crate/server_database/src/tests/redis_kdf_salt_tests.rs:92
↓ 1 callersFunctiontest_revoke_symmetric_key
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/revoke_destroy.rs:14
↓ 1 callersFunctiontest_rsa_pkcs_oaep
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/encrypt_decrypt.rs:55
↓ 1 callersFunctiontest_rsa_pkcs_v15
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/encrypt_decrypt.rs:128
↓ 1 callersFunctiontest_server_side_unwrap
Issue #762 — A key wrapped by an HSM KEK can be unwrapped server-side via Import. The previous CLI path tried to export the HSM KEK locally (which fa
crate/server/src/tests/hsm/issues.rs:113
↓ 1 callersFunctiontest_ttlv_wrapped_kem_import
Keys created on a server without KEK, exported TTLV-wrapped by a software AES key, then imported (still wrapped) in a server whose KEK is in the HSM.
crate/server/src/tests/hsm/hybrid_kem_dek.rs:579
↓ 1 callersFunctiontest_unwrap_against_openssl_cli_inner
( tmp_path: &Path, secret_bytes: &[u8], )
crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs:501
↓ 1 callersFunctiontest_unwrap_on_export
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/wrap_with_hsm_key.rs:132
↓ 1 callersFunctiontest_unwrap_with_hsm_key
only called from the non-FIPS part of `test_all_hsm_cli`
crate/clients/ckms/src/tests/hsm/wrap_with_hsm_key.rs:182
↓ 1 callersFunctiontest_wrap_against_openssl_cli_inner
( tmp_path: &Path, secret_bytes: &[u8], )
crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs:376
↓ 1 callersFunctiontest_wrap_with_aes_gcm
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/wrap_with_hsm_key.rs:28
↓ 1 callersFunctiontest_wrap_with_rsa_oaep
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/wrap_with_hsm_key.rs:82
↓ 1 callersFunctiontest_wrapped_by_backfill
Faithful Redis re-index test for the `wrapped_by::<uid>` Findex index. Seeds a **legacy** wrapped object — stored directly via `object_upsert`, so it
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:1140
↓ 1 callersFunctiontest_wrapped_ec_dek
()
crate/server/src/tests/hsm/ec_dek.rs:27
↓ 1 callersFunctiontest_wrapped_rsa_dek
()
crate/server/src/tests/hsm/rsa_dek.rs:28
↓ 1 callersFunctiontest_wrapped_secret_data
()
crate/server/src/tests/hsm/secret_data_dek.rs:22
↓ 1 callersFunctiontest_wrapped_symmetric_dek
()
crate/server/src/tests/hsm/symmetric_dek.rs:28
↓ 1 callersFunctiontime_stamp_value
(time_stamp: OffsetDateTime)
crate/kmip/src/ttlv/date_time.rs:58
↓ 1 callersFunctiontls_auth
(req: &ServiceRequest)
crate/server/src/middlewares/tls_auth.rs:128
↓ 1 callersFunctiontlv
Minimal DER TLV encoder (lengths < 65536) for hand-built CSRs.
crate/server/src/core/operations/certify/template.rs:982
↓ 1 callersFunctiontoBytes
(value: unknown)
ui/tests/integration/kms-secret-data-export-import-roundtrip.test.ts:32
↓ 1 callersFunctiontoBytes
(value: unknown)
ui/tests/integration/kms-locate-export-import-roundtrip.test.ts:32
↓ 1 callersFunctiontoBytes
(value: unknown)
ui/tests/integration/kms-certificate-export-import-roundtrip.test.ts:32
↓ 1 callersFunctiontoBytes
(value: unknown)
ui/tests/integration/kms-opaque-object-export-import-roundtrip.test.ts:32
↓ 1 callersMethodtoElement
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersMethodtoHTML
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontoNumber
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontoPropertyKey
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontoStr
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontoTypedData
Convert a string input to the correct JSON value based on data_type.
ui/src/actions/Tokenize/TokenizeNoise.tsx:18
↓ 1 callersFunctiontoUint8
(value: unknown)
ui/tests/integration/kms-key-flows.test.ts:11
↓ 1 callersFunctiontoUint8
(value: unknown)
ui/tests/integration/kms-azure-byok-import-export.test.ts:32
↓ 1 callersMethodto_cryptographic_algorithm
Convert to KMIP `CryptographicAlgorithm`.
crate/clients/clap/src/actions/pqc/keys/create_key_pair.rs:104
↓ 1 callersFunctionto_http_request
( actix_req: &actix_web::HttpRequest, body: Bytes, )
crate/server/src/routes/aws_xks/sigv4_middleware.rs:342
↓ 1 callersFunctionto_json
(value: Result<JsValue, JsValue>)
crate/clients/wasm/tests/wasm_bindings.rs:838
↓ 1 callersFunctionto_json_value
Serialize a typed [`Jwk`] to a raw [`serde_json::Value`]. Returns `None` (logging the failure, but not propagating it) if serialization fails, so the
crate/server/src/routes/jwks.rs:222
↓ 1 callersMethodto_kem_algorithm
Convert to `KemAlgorithm` for `ConfigurableKEM` variants. Returns `None` for standard PQC algorithms.
crate/clients/clap/src/actions/pqc/keys/create_key_pair.rs:138
↓ 1 callersFunctionto_qualified_uids
Convert a list of rows into a list of qualified uids
crate/server_database/src/stores/sql/mysql.rs:2305
↓ 1 callersFunctionto_rsa_private_key
Convert an openssl RSA key to a KMIP RSA Private Key.
crate/crypto/src/crypto/rsa/operation.rs:130
↓ 1 callersFunctionto_rsa_public_key
Convert to RSA KMIP Public Key.
crate/crypto/src/crypto/rsa/operation.rs:77
↓ 1 callersMethodto_vendor_attribute
Convert to a `VendorAttribute` using the given vendor identification.
crate/crypto/src/crypto/dh_shared_keys.rs:23
↓ 1 callersFunctionto_wire_bytes
Serialize a `RequestMessage` to binary TTLV bytes for the `/kmip` endpoint.
crate/clients/clap/src/actions/bench/transport.rs:170
↓ 1 callersFunctiontoken
(header: &str)
crate/server/src/middlewares/auth_verifier/token.rs:322
↓ 1 callersFunctiontoken_from
A token whose payload carries `iss` (header and signature are irrelevant here).
crate/server/src/middlewares/jwt/jwks.rs:644
↓ 1 callersMethodtoken_serial_number
(&self)
crate/clients/pkcs11/provider/src/backend.rs:256
↓ 1 callersFunctiontombstone_state_events
Tombstone the lifecycle events this node has observed for `uid`.
crate/server_database/src/stores/sql/pgsql.rs:395
↓ 1 callersFunctiontoo_many_login_attempts
`429` of `POST /ui/login_as`, with the `Retry-After` (seconds or HTTP date) when known.
crate/server/src/routes/ui_auth.rs:407
↓ 1 callersFunctiontopMenu
(page: Page, key: string)
ui/tests/e2e/fips-menu.spec.ts:25
↓ 1 callersMethodtouch_validated
Mark a cached entry as validated against the DB, updating its `last_validated` timestamp.
crate/server_database/src/core/object_cache.rs:110
↓ 1 callersFunctiontouched_object
The object an operation changes and the permission it needs on it, `None` when it only creates objects, or `Err(())` when the server cannot revert it.
crate/server/src/core/operations/batch_undo.rs:81
↓ 1 callersMethodtouches
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontrace_certificate
Debug the details of a given X.509 certificate along with a debug message. This function retrieves the Subject Key Identifier (SKI) and Authority Key
crate/server/src/core/operations/validate.rs:369
↓ 1 callersMethodtransclude
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontransformErrors
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontransit_curve_from_key_type
Map a Vault key type string to a KMS `RecommendedCurve` (for EC keys).
crate/server/src/routes/spire/transit.rs:256
↓ 1 callersFunctiontransit_hash_alg_to_kmip
Map a Vault `hash_algorithm` URL path segment to a KMIP `HashingAlgorithm`.
crate/server/src/routes/spire/transit.rs:274
↓ 1 callersFunctiontransit_key_type_from_alg
Map a KMIP `CryptographicAlgorithm` to a transit key type (`ml-dsa-65`).
crate/server/src/routes/spire/transit.rs:194
↓ 1 callersFunctiontransit_key_type_from_curve
Map a KMIP `RecommendedCurve` to a transit key type (`ed25519`).
crate/server/src/routes/spire/transit.rs:189
↓ 1 callersFunctiontransit_key_type_from_pkey
Derive the Vault transit key type string from an OpenSSL `PKey<Public>`. Reading the curve from the actual key material is authoritative; the `find`
crate/server/src/routes/spire/transit.rs:209
↓ 1 callersFunctiontransit_key_type_from_pkey_id
Map an OpenSSL key `Id` to a transit key type (`ed25519`).
crate/server/src/routes/spire/transit.rs:184
↓ 1 callersFunctiontransit_rsa_bits_from_key_type
Map a Vault key type string to an RSA bit count.
crate/server/src/routes/spire/transit.rs:265
↓ 1 callersFunctiontraversal_filter
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontrigger_crl_regeneration
Trigger CRL regeneration for `issuer_id` after a certificate revocation. The CRL is generated by the server itself: the signing key is authorized as
crate/server/src/core/operations/revoke.rs:430
↓ 1 callersFunctiontrim_padded_ck_string
Truncates a fixed-size, space-padded PKCS#11 UTF8 byte array (e.g. `manufacturerID`, `libraryDescription`) at the first trailing space, per PKCS#11 v3
crate/clients/clap/src/actions/pkcs11/verify.rs:562
↓ 1 callersFunctiontruncate_and_continue
Truncates the audit file to `keep_len` (discarding a torn tail write) and appends an `audit:torn-write-recovered` sentinel as the first event of this
crate/server/src/core/audit/recovery.rs:435
↓ 1 callersFunctiontryDecode
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontrySubscribe
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontryUnsubscribe
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callersFunctiontry_acquire_cron_lease
TTL-lease fallback of `GET_LOCK` (Galera): the lease row is committed, hence replicated to every node. Another node winning the same row concurrently
crate/server_database/src/stores/sql/mysql.rs:580
↓ 1 callersMethodtry_acquire_cron_lock
( &self, _lock_name: &str, )
crate/server_database/src/core/mod.rs:489
↓ 1 callersMethodtry_atomic
One attempt at applying `operations` atomically. Returns `Retry` on a lost CAS race; any other error (including a `Create` conflict) is returned direc
crate/server_database/src/stores/redis/redis_with_findex.rs:664
↓ 1 callersFunctiontry_covercrypt_rekey
Attempt Covercrypt-specific rekey. Returns `Some(response)` if handled, `None` otherwise.
crate/server/src/core/operations/rekey/keypair/covercrypt.rs:30
↓ 1 callersFunctiontry_mac_params
Build KMIP parameters for MAC operations.
crate/server/src/routes/jose/algorithm.rs:289
↓ 1 callersFunctiontry_run_as_service
Attempt to register with the Windows SCM. Returns `Ok(())` if the SCM dispatcher started (and later returned after service stop). Returns `Err` if th
crate/server/src/windows_service.rs:41
↓ 1 callersFunctiontry_run_single_xml_vector_on_client
Run a vector and return the first mismatch as an error. `uid_map` holds the UID placeholders (updated in place); `generated_uids` collects the objects
crate/clients/clap/src/tests/xml/runner.rs:245
↓ 1 callersMethodtry_sign_message
Signs through the session's persistent message context. `Ok(None)` means the message path is disabled for this slot or the token rejected the mechanis
crate/hsm/base_hsm/src/session/message_sign.rs:116
↓ 1 callersFunctiontry_u8_into_bool
Borrowed from: https://github.com/parallaxsecond/rust-cryptoki/blob/89055f2a30e30d07a99e5904e9231d743c75d8e5/cryptoki/src/object.rs#L769
crate/clients/pkcs11/module/src/core/attribute.rs:446
← previousnext →7,101–7,200 of 16,000, ranked by callers