Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cosmian/kms
/ functions
Functions
12,829 in github.com/Cosmian/kms
⨍
Functions
12,829
◇
Types & classes
2,591
↓ 1 callers
Method
substitute_placeholders_in_request
(&mut self)
crate/clients/clap/src/tests/xml/request.rs:210
↓ 1 callers
Function
substitute_short_unique_identifier_from_actual
Substitute `$SHORT_UNIQUE_IDENTIFIER_N` placeholders in expected `GetAttributesResponse` by copying the actual `ShortUniqueIdentifier` from the server
crate/clients/clap/src/tests/xml/expected_response.rs:728
↓ 1 callers
Function
substitute_sign_response_signature_from_actual
For `SignResponse` payloads in the expected response, substitute placeholder fields like $`SIGNATURE_DATA` by copying the actual response value when t
crate/clients/clap/src/tests/xml/expected_response.rs:585
↓ 1 callers
Function
substitute_uid_text
(test_name: &str, uid: &mut String, uid_map: &HashMap<usize, String>)
crate/clients/clap/src/tests/xml/request.rs:1114
↓ 1 callers
Function
supplementStateFromOwned
(rows: LocatedRow[], serverUrl: string)
ui/src/components/common/Locate.tsx:256
↓ 1 callers
Function
supported_profiles
PKCS#11 v3.1 conformance profiles ([OASIS PKCS#11 Profiles v3.1]) that this module self-declares via `CKO_PROFILE` objects returned by `C_FindObjects`
crate/clients/pkcs11/module/src/sessions.rs:71
↓ 1 callers
Method
supports_message_verify
(&self)
crate/hsm/base_hsm/src/hsm_lib.rs:629
↓ 1 callers
Function
svg_to_png
Convert an SVG to a PNG under ``build/svg/`` (LaTeX cannot embed SVG).
documentation/pandoc/combine.py:48
↓ 1 callers
Function
swap
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
symDecrypt
(page: import("@playwright/test").Page, keyIdOrName: string, encFile: string)
ui/tests/e2e/keyset-addressing.spec.ts:68
↓ 1 callers
Function
symEncrypt
(page: import("@playwright/test").Page, keyIdOrName: string, plainFile: string)
ui/tests/e2e/keyset-addressing.spec.ts:58
↓ 1 callers
Function
sym_key_attribute
( sym_key: &dyn SymmetricKey, type_: AttributeType, )
crate/clients/pkcs11/module/src/core/object.rs:193
↓ 1 callers
Function
symmetric_decrypt
( dek_uid: &str, owner: &str, kms: &Arc<KMS>, ciphertext: &[u8], )
crate/server/src/tests/hsm/symmetric_dek.rs:168
↓ 1 callers
Function
syncVendorId
()
ui/src/App.tsx:156
↓ 1 callers
Function
systemExtend
(s={},o={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
systemThunkMiddleware
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
t1_removed_tag_must_not_select_existing_object
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:139
↓ 1 callers
Function
t2_concurrent_upserts_must_preserve_tags
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:189
↓ 1 callers
Function
t3_failed_competing_batch_must_rollback_upsert
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:219
↓ 1 callers
Function
t4_same_uid_delete_then_create_and_create_after_upsert
A batch may delete a uid and re-create it; a Create after a live operation on the same uid in one batch must still fail atomically.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:289
↓ 1 callers
Function
t5_delete_is_guarded_by_baseline
A delete based on a stale baseline must not erase a concurrent write.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:339
↓ 1 callers
Function
t6_create_then_delete_in_one_batch
`Create` then `Delete` of the same uid in one batch: a net no-op for an absent uid, but the `Create` must still fail fast if the uid exists.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:385
↓ 1 callers
Function
t8_standalone_mutators_are_cas_guarded
Stand-alone `update_object` racing an `Upsert` batch must not lose tags, and the stand-alone mutators keep object, index and errors consistent.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:426
↓ 1 callers
Function
tagDetails
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
tag_raw_certificates_with_state
Tag each raw DER-encoded certificate with its internal KMS lifecycle state, when the KMS happens to already track a certificate object with identical
crate/server/src/core/operations/validate.rs:1023
↓ 1 callers
Method
tags
(&self, vendor_id: &str)
crate/server/src/core/operations/certify/subject.rs:165
↓ 1 callers
Method
tags
(&self)
crate/interfaces/src/hsm/interface.rs:263
↓ 1 callers
Function
takeWhileFactory
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Method
tbs_der
(&self)
crate/server/src/core/certificate/oracle_signing.rs:200
↓ 1 callers
Function
test_active_key_count_counter
Verify that `ACTIVE_KEY_COUNT_KEY` is maintained correctly across the full lifecycle of key and non-key objects. Steps: 1. Create 2 `SymmetricKey` ob
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:981
↓ 1 callers
Function
test_admin_create_aes
#1: Admin can create AES key on HSM
crate/server/src/tests/hsm/permissions.rs:183
↓ 1 callers
Function
test_admin_create_rsa
#2: Admin can create RSA keypair on HSM
crate/server/src/tests/hsm/permissions.rs:191
↓ 1 callers
Function
test_admin_destroy
#5: Admin can destroy HSM key
crate/server/src/tests/hsm/permissions.rs:224
↓ 1 callers
Function
test_admin_encrypt
#20: Admin can encrypt with HSM key
crate/server/src/tests/hsm/permissions.rs:412
↓ 1 callers
Function
test_admin_export
#25: Admin can export HSM key Some HSMs (e.g. `Crypt2Pay`) enforce `CKA_SENSITIVE = true` at the hardware level regardless of the requested template.
crate/server/src/tests/hsm/permissions.rs:486
↓ 1 callers
Function
test_admin_grant_decrypt
#13: Admin can grant Decrypt
crate/server/src/tests/hsm/permissions.rs:332
↓ 1 callers
Function
test_admin_grant_destroy_blocked
#15: Granting Destroy on HSM key is blocked (same as #7, explicit test)
crate/server/src/tests/hsm/permissions.rs:348
↓ 1 callers
Function
test_admin_grant_encrypt
#12: Admin can grant Encrypt
crate/server/src/tests/hsm/permissions.rs:324
↓ 1 callers
Function
test_admin_grant_get
#14: Admin can grant Get
crate/server/src/tests/hsm/permissions.rs:340
↓ 1 callers
Function
test_admin_grant_revoke_blocked
#16: Granting Revoke on HSM key is blocked
crate/server/src/tests/hsm/permissions.rs:359
↓ 1 callers
Function
test_admin_locate_all
#8: Admin locates all HSM keys
crate/server/src/tests/hsm/permissions.rs:262
↓ 1 callers
Function
test_admin_revoke_encrypt
#17: Admin can revoke a previously granted Encrypt
crate/server/src/tests/hsm/permissions.rs:375
↓ 1 callers
Function
test_aes_gcm
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/encrypt_decrypt.rs:34
↓ 1 callers
Function
test_app_with_audit_and_auth
Creates a test application that records every KMIP request to an audit file, with `ensure_auth_middleware` enforcing authentication (`auth_is_configur
crate/server/src/tests/test_utils.rs:528
↓ 1 callers
Function
test_cert
(relative: &str)
crate/server_database/src/stores/sql/pgsql.rs:1976
↓ 1 callers
Function
test_certificate_import_encrypt
( ca_path: &str, subca_path: &str, cert_path: &str, key_path: &str, tags: &[&str], enc
crate/clients/ckms/src/tests/certificates/encrypt.rs:98
↓ 1 callers
Function
test_certificate_serial_tag_backfill
A certificate stored without the `_serial=<HEX>` tag gets it from `backfill_certificate_serial_tags`, and becomes locatable through that tag in Findex
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:1186
↓ 1 callers
Function
test_client_wrapped_kem_import
`ConfigurableKEM` and native hybrid keys generated client side, wrapped (TTLV) by the HSM KEK with a KMIP Encrypt, and imported as already wrapped.
crate/server/src/tests/hsm/hybrid_kem_dek.rs:605
↓ 1 callers
Function
test_corner_case
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:778
↓ 1 callers
Function
test_db_redis_interleaved_index_updates_keep_object_findable
Writer B (u -> old) finishes its index update before the slower writer A (old -> u): A's late removal of `old` must not leave the final object (tagged
crate/server_database/src/stores/redis/redis_with_findex.rs:1855
↓ 1 callers
Function
test_db_redis_stale_attribute_hit_is_filtered_out
A Findex hit under an *attribute* keyword (here the algorithm) the stored object does not carry must not be returned by `find`.
crate/server_database/src/stores/redis/redis_with_findex.rs:1746
↓ 1 callers
Function
test_db_redis_stale_findex_hit_is_filtered_out
A Findex hit whose tag the stored object does not carry (stale index entry, e.g. from out-of-order post-commit index updates) must not be returned.
crate/server_database/src/stores/redis/redis_with_findex.rs:1800
↓ 1 callers
Function
test_ecies_encrypt_decrypt
(nid: Nid)
crate/crypto/src/crypto/elliptic_curves/ecies/standard_curves.rs:185
↓ 1 callers
Function
test_grant_destroy_blocked
#7: Granting Destroy on HSM key is blocked
crate/server/src/tests/hsm/permissions.rs:244
↓ 1 callers
Function
test_hsm_destroy_type_guard
Issue #763 — Destroying an HSM key is guarded by `expected_object_type`. When `Destroy.expected_object_type` is provided and the target UID is an HSM
crate/server/src/tests/hsm/issues.rs:204
↓ 1 callers
Function
test_hsm_eddsa_sign
Issue #1182: HSM-resident Ed25519 and Ed448 keypairs created via KMIP `CreateKeyPair` must be usable through KMIP `Sign`/`SignatureVerify`.
crate/server/src/tests/hsm/eddsa_sign.rs:125
↓ 1 callers
Function
test_hsm_export_key_bytes
An HSM AES key created with `sensitive = false` (so `CKA_SENSITIVE=false`, `CKA_EXTRACTABLE=true`) can be exported in clear, and the exported bytes ar
crate/server/src/tests/hsm/export_key_bytes.rs:56
↓ 1 callers
Function
test_hsm_kek_wrap_modes
()
crate/server/src/tests/hsm/kek_wrap_modes.rs:35
↓ 1 callers
Function
test_hsm_locate_name_filter_does_not_leak_kek
Issue #935 — Locate with a Name filter must NOT return the server KEK. Before the fix, HSM locate with a Name attribute would silently ignore the fil
crate/server/src/tests/hsm/issues.rs:342
↓ 1 callers
Function
test_hsm_modify_attribute_sensitive_key
Issue #933 — `ModifyAttribute(Name)` must succeed for non-extractable HSM keys. Synology DSM calls `ModifyAttribute(Name)` immediately after `Registe
crate/server/src/tests/hsm/issues.rs:273
↓ 1 callers
Function
test_hsm_non_extractable_key_bytes
An HSM AES key created with `sensitive = true` (`CKA_SENSITIVE=true`, `CKA_EXTRACTABLE=false`) never leaves the HSM: - `Export` and `Get`, plain or wr
crate/server/src/tests/hsm/non_extractable_key_bytes.rs:42
↓ 1 callers
Function
test_hsm_permissions
Run all 32 permission scenarios sequentially. HSMs don't support parallel operations well, so all tests share a single KMS instance and run in order.
crate/server/src/tests/hsm/permissions.rs:624
↓ 1 callers
Function
test_hsm_rekey_by_bare_keyset_name
Test: 3 consecutive re-keys using the HSM base UID as the stable keyset handle. For HSM keys, `rotate_name` must be the full base UID (`hsm::<slot>::
crate/clients/ckms/src/tests/hsm/rekey.rs:41
↓ 1 callers
Function
test_hsm_sub_ca
()
crate/server/src/tests/hsm/sub_ca.rs:348
↓ 1 callers
Function
test_hsm_sub_ca_ec
Sub-CA with an ECDSA HSM key (P-256 and P-384), signed by an RSA HSM root: the HSM's raw r||s signatures must come back DER-encoded in the CSR, the le
crate/server/src/tests/hsm/sub_ca.rs:599
↓ 1 callers
Function
test_hsm_sub_ca_ed25519
()
crate/server/src/tests/hsm/sub_ca.rs:568
↓ 1 callers
Function
test_hybrid_kem_lifecycle
()
crate/server/src/tests/hsm/hybrid_kem_dek.rs:155
↓ 1 callers
Function
test_issue_940
Run every #940 contract test; called from `test_db_redis_with_findex`.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:486
↓ 1 callers
Function
test_kms_client
()
crate/clients/pkcs11/provider/src/tests.rs:198
↓ 1 callers
Function
test_live_count_counter
Verify that the live-object counter key (`kms::metrics::live_object_count`) is kept accurate across `create` / `update_state` / `delete` operations an
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:850
↓ 1 callers
Function
test_migration_state_markers
Redis migration-state markers: a freshly initialised database records its version and a `ready` state; re-opening it is accepted, while a database who
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:1248
↓ 1 callers
Function
test_multi_hsm_key_creation
Test key creation and destruction across three `SoftHSM2` instances using both the legacy UID prefix and the new model-qualified prefixes. Slot IDs a
crate/clients/ckms/src/tests/hsm/multi_softhsm2.rs:103
↓ 1 callers
Function
test_non_admin_create_aes_fails
#3: Non-admin cannot create AES key on HSM
crate/server/src/tests/hsm/permissions.rs:198
↓ 1 callers
Function
test_non_admin_create_rsa_fails
#4: Non-admin cannot create RSA keypair on HSM
crate/server/src/tests/hsm/permissions.rs:210
↓ 1 callers
Function
test_non_admin_create_wrapped_by_kek
#31: Non-admin can create KMS key wrapped by server KEK
crate/server/src/tests/hsm/permissions.rs:568
↓ 1 callers
Function
test_non_admin_decrypt_with_encrypt_only
#23: Non-admin cannot decrypt with only Encrypt grant (no Decrypt)
crate/server/src/tests/hsm/permissions.rs:439
↓ 1 callers
Function
test_non_admin_decrypt_with_grant
#24: Non-admin can decrypt with Decrypt grant
crate/server/src/tests/hsm/permissions.rs:455
↓ 1 callers
Function
test_non_admin_destroy_fails
#6: Non-admin cannot destroy HSM key (no grant)
crate/server/src/tests/hsm/permissions.rs:233
↓ 1 callers
Function
test_non_admin_direct_encrypt_kek_fails
#32: Non-admin cannot directly encrypt with server KEK UID (no grant)
crate/server/src/tests/hsm/permissions.rs:608
↓ 1 callers
Function
test_non_admin_encrypt_no_grant
#21: Non-admin cannot encrypt without grant
crate/server/src/tests/hsm/permissions.rs:419
↓ 1 callers
Function
test_non_admin_encrypt_with_grant
#22: Non-admin can encrypt with Encrypt grant
crate/server/src/tests/hsm/permissions.rs:430
↓ 1 callers
Function
test_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:531
↓ 1 callers
Function
test_non_admin_export_no_grant
#26: Non-admin cannot export without grant
crate/server/src/tests/hsm/permissions.rs:500
↓ 1 callers
Function
test_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:515
↓ 1 callers
Function
test_non_admin_grant_fails
#18: Non-admin cannot grant operations
crate/server/src/tests/hsm/permissions.rs:389
↓ 1 callers
Function
test_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 callers
Function
test_non_admin_locate_after_grant
#10: Non-admin locates only granted key after Encrypt grant
crate/server/src/tests/hsm/permissions.rs:287
↓ 1 callers
Function
test_non_admin_locate_after_revoke
#11: Non-admin sees nothing after grant is revoked
crate/server/src/tests/hsm/permissions.rs:307
↓ 1 callers
Function
test_non_admin_locate_empty
#9: Non-admin locates nothing (no grants)
crate/server/src/tests/hsm/permissions.rs:275
↓ 1 callers
Function
test_non_admin_revoke_fails
#19: Non-admin cannot revoke operations
crate/server/src/tests/hsm/permissions.rs:397
↓ 1 callers
Function
test_non_admin_sign_no_grant
#30: Non-admin cannot sign without grant (RSA)
crate/server/src/tests/hsm/permissions.rs:555
↓ 1 callers
Function
test_non_admin_sign_with_grant
#29: Non-admin can sign with Sign grant (RSA)
crate/server/src/tests/hsm/permissions.rs:546
↓ 1 callers
Function
test_object_search
()
crate/server/src/tests/hsm/search.rs:21
↓ 1 callers
Function
test_objects_db
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:505
↓ 1 callers
Function
test_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 callers
Function
test_permissions_db
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:563
↓ 1 callers
Function
test_private_key_conversion_transparent_rsa
( private_key: &PKey<Private>, id: Id, key_size: u32, )
crate/crypto/src/openssl/private_key.rs:666
↓ 1 callers
Function
test_public_key_conversion_transparent_rsa
( public_key: &PKey<Public>, id: Id, key_size: u32, )
crate/crypto/src/openssl/public_key.rs:610
↓ 1 callers
Function
test_query_
(major: i32, minor: i32)
crate/server/src/tests/ttlv_tests/query.rs:24
↓ 1 callers
Function
test_revoke_symmetric_key
(ctx: &TestsContext)
crate/clients/ckms/src/tests/hsm/revoke_destroy.rs:14
← previous
next →
5,501–5,600 of 12,829, ranked by callers