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
substitute_placeholders
(raw: &str)
crate/kmip/src/ttlv/xml/parser.rs:158
↓ 1 callers
Function
substitute_placeholders_in_expected_response
Substitute uid-N placeholders in the expected ResponseMessage using the uid map captured from prior actual responses. This aligns vector placeholders
crate/clients/clap/src/tests/xml/expected_response.rs:242
↓ 1 callers
Method
substitute_placeholders_in_request
(&mut self)
crate/clients/clap/src/tests/xml/request.rs:262
↓ 1 callers
Function
substitute_reference_server_rng
The OASIS vectors were recorded on a server whose generator is ANSI X9.31 (AES-256). KMIP 2.1 §4.46 requires the attribute to describe the generator a
crate/clients/clap/src/tests/xml/expected_response.rs:967
↓ 1 callers
Function
substitute_short_unique_identifier_from_actual
Substitute `$SHORT_UNIQUE_IDENTIFIER_N` placeholders in expected `GetAttributesResponse` and `ExportResponse` attributes by copying the actual `ShortU
crate/clients/clap/src/tests/xml/expected_response.rs:929
↓ 1 callers
Function
substitute_sign_response_signature_from_actual
For `SignResponse` payloads in the expected response, substitute the `$SIGNATURE_DATA` placeholder (decoded as an empty `ByteString`) by the actual si
crate/clients/clap/src/tests/xml/expected_response.rs:709
↓ 1 callers
Method
substitute_ticket_value
Replace the `$TICKET_VALUE` placeholder of the request header's Ticket credentials and of Logout payloads by the ticket of the preceding Login respons
crate/clients/clap/src/tests/xml/request.rs:197
↓ 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:68
↓ 1 callers
Method
supports_message_verify
(&self)
crate/hsm/base_hsm/src/hsm_lib.rs:710
↓ 1 callers
Method
supports_multi_region
(&self)
crate/server_database/src/core/main_db_params.rs:44
↓ 1 callers
Function
svg_to_png
Convert an SVG to a PNG under ``build/svg/`` (LaTeX cannot embed SVG).
documentation/pandoc/combine.py:47
↓ 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:196
↓ 1 callers
Function
symmetric_decrypt
( dek_uid: &str, owner: &str, kms: &Arc<KMS>, ciphertext: &[u8], )
crate/server/src/tests/hsm/symmetric_dek.rs:175
↓ 1 callers
Function
symmetric_key_default_usage_mask
Default usage mask of a created symmetric key: HMAC (and SHA-3 used as HMAC) keys also get `MACGenerate | MACVerify`, which the MAC and MAC Verify ope
crate/kmip/src/kmip_2_1/requests/create.rs:24
↓ 1 callers
Function
syncVendorId
()
ui/src/App.tsx:164
↓ 1 callers
Function
sync_both
Block until everything committed so far on each node has been applied on the other.
crate/server_database/src/tests/mod.rs:732
↓ 1 callers
Method
sync_key_gauges
Refresh `kms.keys.active.count` and `kms.keys.expiring_soon.count` from the database (all registered stores, no ACL filtering). Failures are logged a
crate/server/src/core/otel_metrics.rs:665
↓ 1 callers
Function
sync_state_json
Write the state the read path reports for `column` into the stored `attributes` JSON and, when present, the key block's embedded attributes. Edits JSO
crate/server_database/src/stores/migrate.rs:184
↓ 1 callers
Method
sync_stored_state
Autocommit per batch (keyset pagination on `id`); the sync is idempotent, so an interrupted run resumes and the marker is set only after the last batc
crate/server_database/src/stores/sql/mysql.rs:365
↓ 1 callers
Method
sync_stored_state
Each batch (keyset pagination on `id`) commits on its own; the step is idempotent, so an interrupted run resumes and the marker is set only after the
crate/server_database/src/stores/sql/sqlite.rs:484
↓ 1 callers
Method
sync_stored_state
One transaction per batch (keyset pagination on `id`): the step is idempotent, so an interrupted run resumes and the marker is set only after the last
crate/server_database/src/stores/sql/pgsql.rs:558
↓ 1 callers
Method
sync_stored_state
Write the state clients already see into the stored attributes and the key block's embedded attributes (same precedence and destroyed-payload rule as
crate/server_database/src/stores/redis/redis_with_findex.rs:567
↓ 1 callers
Function
synthetic_error_response
Synthetic KMIP-style error body for HTTP responses that are not JSON.
crate/test_kms_server/src/vector_runner.rs:515
↓ 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:137
↓ 1 callers
Function
t2_concurrent_upserts_must_preserve_tags
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:187
↓ 1 callers
Function
t3_failed_competing_batch_must_rollback_upsert
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:217
↓ 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:287
↓ 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:337
↓ 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:383
↓ 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:424
↓ 1 callers
Function
t9_unconditional_update_after_delete
Unconditional updates retain their established missing-object error after deletion.
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:484
↓ 1 callers
Function
tagDetails
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 1 callers
Function
tag_names
(ttlv: &TTLV)
crate/kmip/src/ttlv/xml/tests/common.rs:41
↓ 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:1183
↓ 1 callers
Method
tags
(&self, vendor_id: &str)
crate/server/src/core/operations/certify/subject.rs:164
↓ 1 callers
Method
tags
(&self)
crate/interfaces/src/hsm/interface.rs:291
↓ 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:193
↓ 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:1023
↓ 1 callers
Function
test_admin_create_aes
#1: Admin can create AES key on HSM
crate/server/src/tests/hsm/permissions.rs:203
↓ 1 callers
Function
test_admin_create_rsa
#2: Admin can create RSA keypair on HSM
crate/server/src/tests/hsm/permissions.rs:211
↓ 1 callers
Function
test_admin_destroy
#5: Admin can destroy HSM key
crate/server/src/tests/hsm/permissions.rs:244
↓ 1 callers
Function
test_admin_encrypt
#20: Admin can encrypt with HSM key
crate/server/src/tests/hsm/permissions.rs:432
↓ 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:506
↓ 1 callers
Function
test_admin_grant_decrypt
#13: Admin can grant Decrypt
crate/server/src/tests/hsm/permissions.rs:352
↓ 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:368
↓ 1 callers
Function
test_admin_grant_encrypt
#12: Admin can grant Encrypt
crate/server/src/tests/hsm/permissions.rs:344
↓ 1 callers
Function
test_admin_grant_get
#14: Admin can grant Get
crate/server/src/tests/hsm/permissions.rs:360
↓ 1 callers
Function
test_admin_grant_revoke_blocked
#16: Granting Revoke on HSM key is blocked
crate/server/src/tests/hsm/permissions.rs:379
↓ 1 callers
Function
test_admin_locate_all
#8: Admin locates all HSM keys
crate/server/src/tests/hsm/permissions.rs:282
↓ 1 callers
Function
test_admin_revoke_encrypt
#17: Admin can revoke a previously granted Encrypt
crate/server/src/tests/hsm/permissions.rs:395
↓ 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:668
↓ 1 callers
Function
test_cert
(relative: &str)
crate/server_database/src/stores/sql/mysql.rs:2544
↓ 1 callers
Function
test_cert
(relative: &str)
crate/server_database/src/stores/sql/pgsql.rs:2659
↓ 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:1229
↓ 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:672
↓ 1 callers
Function
test_corner_case
()
crate/server_database/src/stores/redis/additional_redis_findex_tests.rs:820
↓ 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:2221
↓ 1 callers
Function
test_db_redis_revoked_ceremony_record_is_tombstoned
Revoking a ceremony record erases the sealed blob, so clearing `revoked_at` cannot bring it back.
crate/server_database/src/stores/redis/redis_with_findex.rs:2198
↓ 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:2090
↓ 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:2144
↓ 1 callers
Function
test_ecies_encrypt_decrypt
(nid: Nid)
crate/crypto/src/crypto/elliptic_curves/ecies/standard_curves.rs:201
↓ 1 callers
Function
test_grant_destroy_blocked
#7: Granting Destroy on HSM key is blocked
crate/server/src/tests/hsm/permissions.rs:264
↓ 1 callers
Function
test_hsm_default_key_is_not_sensitive
An HSM AES key created WITHOUT a `Sensitive` attribute is not sensitive (KMIP 2.1 section 4.55: the server sets `False` when the client omits it): it
crate/server/src/tests/hsm/export_key_bytes.rs:122
↓ 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:209
↓ 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:126
↓ 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:64
↓ 1 callers
Function
test_hsm_kek_wrap_modes
()
crate/server/src/tests/hsm/kek_wrap_modes.rs:40
↓ 1 callers
Function
test_hsm_keyset_rotation
()
crate/server/src/tests/hsm/mod.rs:215
↓ 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:352
↓ 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:278
↓ 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:43
↓ 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:649
↓ 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_ssh_ca
()
crate/server/src/tests/hsm/mod.rs:225
↓ 1 callers
Function
test_hsm_sub_ca
()
crate/server/src/tests/hsm/sub_ca.rs:352
↓ 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:604
↓ 1 callers
Function
test_hsm_sub_ca_ed25519
Sub-CA with an Ed25519 HSM key, signed by an RSA HSM root.
crate/server/src/tests/hsm/sub_ca.rs:572
↓ 1 callers
Function
test_hybrid_kem_lifecycle
()
crate/server/src/tests/hsm/hybrid_kem_dek.rs:173
↓ 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:519
↓ 1 callers
Function
test_kms_client
()
crate/clients/pkcs11/provider/src/tests.rs:211
↓ 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:892
↓ 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:218
↓ 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:230
↓ 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:588
↓ 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:459
↓ 1 callers
Function
test_non_admin_decrypt_with_grant
#24: Non-admin can decrypt with Decrypt grant
crate/server/src/tests/hsm/permissions.rs:475
↓ 1 callers
Function
test_non_admin_destroy_fails
#6: Non-admin cannot destroy HSM key (no grant)
crate/server/src/tests/hsm/permissions.rs:253
↓ 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:633
↓ 1 callers
Function
test_non_admin_encrypt_no_grant
#21: Non-admin cannot encrypt without grant
crate/server/src/tests/hsm/permissions.rs:439
↓ 1 callers
Function
test_non_admin_encrypt_with_grant
#22: Non-admin can encrypt with Encrypt grant
crate/server/src/tests/hsm/permissions.rs:450
← previous
next →
7,001–7,100 of 16,000, ranked by callers