MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions12,829 in github.com/Cosmian/kms

↓ 4 callersFunctioninsert_cek
Insert a successfully unwrapped CEK into the `UnwrappedCache`. `kmip_key_object` is the RSA key KMIP object used as the fingerprint source. Errors ar
crate/server/src/routes/jose/cek_cache.rs:150
↓ 4 callersFunctioninteger_item
Build a minimal valid Integer item encoded in TTLV binary format. Layout: [tag 3B][type 1B][length 4B][value 4B][padding 4B] = 16 bytes total. Uses
crate/kmip/src/ttlv/tests/wire_edge_cases.rs:24
↓ 4 callersFunctionisAnchor
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersMethodis_admin
Returns `true` if `user` is an HSM admin. Wildcard `"*"` grants access to every user.
crate/interfaces/src/hsm/hsm_store.rs:145
↓ 4 callersFunctionisolation_test_kms
Create a KMS instance backed by a fresh in-memory `SQLite` database.
crate/server/src/routes/spire/transit.rs:1123
↓ 4 callersFunctionjose_create_sym_key
( rt: &Runtime, client: &KmsClient, alg: &'static str, )
crate/clients/clap/src/actions/bench/jose.rs:21
↓ 4 callersFunctionjson_access
(db: &DB)
crate/server_database/src/tests/json_access_test.rs:24
↓ 4 callersFunctionjwt_authorization_config
Fetch the JWT authorization configuration for Google CSE 'drive' and 'meet'
crate/server/src/routes/google_cse/jwt.rs:119
↓ 4 callersFunctionk
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionkey_wrapped_by
A 32-byte "wrapped" AES key whose wrapping key is the HSM key `wrapping_key_uid`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:322
↓ 4 callersFunctionkmip1_get_attribute_list_names
--------------------------------------------------------------------------- Helper: send a KMIP 1.x `GetAttributeList` and return the advertised names
crate/server/src/tests/ttlv_tests/attribute_version_gating.rs:90
↓ 4 callersFunctionli
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersMethodlicense
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersMethodlist_uids_for_tags
(&self, tags: &HashSet<String>)
crate/server_database/src/stores/redis/redis_with_findex.rs:1010
↓ 4 callersFunctionlist_uids_for_tags_test
( db: &DB, )
crate/server_database/src/tests/list_uids_for_tags_test.rs:15
↓ 4 callersFunctionload_issuer_key
Load the issuer signing key: in memory for database keys, by reference for HSM keys (which may be non-extractable and must never be exported).
crate/server/src/core/operations/certify/resolve_issuer.rs:157
↓ 4 callersFunctionload_raw_private_key
( algorithm_name: &str, raw_bytes: &[u8], )
crate/crypto/src/crypto/pqc/mod.rs:424
↓ 4 callersFunctionload_raw_public_key
( algorithm_name: &str, raw_bytes: &[u8], )
crate/crypto/src/crypto/pqc/mod.rs:386
↓ 4 callersFunctionlocal_google_cse_config
A [`GoogleCseConfig`] backed by a single local key: no Google network access needed.
crate/server/src/tests/google_cse/utils.rs:96
↓ 4 callersMethodlocate
This operation requests that the server search for one or more Managed Objects, depending on the attributes specified in the request. All attributes a
crate/clients/client/src/kms_rest_client.rs:506
↓ 4 callersFunctionlocate_kms_objects
( kms_rest_client: &KmsClient, vendor_id: &str, tags: &[String], )
crate/clients/pkcs11/provider/src/kms_object.rs:161
↓ 4 callersFunctionlocate_objects_of_type
Locate KMS objects by tags, optionally filtering by `ObjectType`. This avoids returning objects of wrong type when multiple object types share the sam
crate/clients/pkcs11/provider/src/kms_object.rs:457
↓ 4 callersFunctionmake_kms_with
Like [`make_kms`], letting the caller adjust the configuration first.
crate/server/src/tests/enrollment_tests.rs:135
↓ 4 callersFunctionmake_sink
(file: std::fs::File, committed_len: u64)
crate/server/src/core/audit/file_sink.rs:401
↓ 4 callersMethodmerge
Merge the attributes from `other` into `self`. If an attribute is present in both `self` and `other`, and *overwrite* is set, the value from `other` i
crate/kmip/src/kmip_2_1/kmip_attributes.rs:777
↓ 4 callersFunctionmin_plaintext_length
Minimum length of the plaintext for FPE to be secure. Returns the smallest `n` such that `alphabet_len^n >= RECOMMENDED_THRESHOLD`.
crate/crypto/src/crypto/fpe/alphabet.rs:16
↓ 4 callersFunctionminimal_config
Build a minimal [`ClapConfig`] that uses a `SQLite` database in `tmp_dir`.
crate/server/src/config/params/server_params.rs:1570
↓ 4 callersFunctionmodify_attribute
( kms: &Arc<KMS>, uid: &str, attribute: Attribute, )
crate/server/src/tests/test_modify_attribute.rs:83
↓ 4 callersFunctionnow_and_expiry
()
crate/server/src/tests/google_cse/utils.rs:137
↓ 4 callersMethodobject_get_raw
Read the raw (encrypted) object blob, returning `None` if the key is absent.
crate/server_database/src/stores/redis/objects_db.rs:224
↓ 4 callersFunctionobjectify
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionopId
(s,o,i="",{v2OperationIdCompatibilityMode:u}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionop_encrypt
Helper to encrypt data (Operator operation)
crate/clients/ckms/src/tests/rbac_tests.rs:38
↓ 4 callersMethodopen_contexts
(&self)
crate/hsm/base_hsm/src/session/message_context.rs:114
↓ 4 callersFunctionopen_for_append
(path: &Path)
crate/server/src/core/audit/file_sink.rs:393
↓ 4 callersFunctionopenpgp_normalize
Accepts armored or binary, secret or public input. Returns `(armored_bytes, is_secret_key)`.
crate/crypto/src/crypto/openpgp/mod.rs:593
↓ 4 callersFunctionopenssl_x509_to_certificate_attributes
(x509: &X509)
crate/crypto/src/openssl/certificate.rs:59
↓ 4 callersMethodoperation_enum
(&self)
crate/kmip/src/kmip_1_4/kmip_operations.rs:2570
↓ 4 callersFunctionowner
(db: &DB)
crate/server_database/src/tests/owner_test.rs:18
↓ 4 callersFunctionparse_hash_alg_from_wide
Parse a CNG hash algorithm name (wide string) into a `HashingAlgorithm`. Returns `None` if the pointer is null or the algorithm is unknown.
crate/clients/cng/src/provider.rs:176
↓ 4 callersFunctionparse_sigv4_header_timestamp
(timestamp: &str)
crate/server/src/routes/aws_xks/sigv4_middleware.rs:327
↓ 4 callersFunctionparse_uid_placeholder_index
Single source of truth to parse placeholder index from a UniqueIdentifier text string. Supports raw (uid-N / $UNIQUE_IDENTIFIER_N) and namespaced (tes
crate/clients/clap/src/tests/xml/request.rs:1135
↓ 4 callersFunctionparse_uri
Strip the `secret://` prefix and split at the first `/`. Returns `(first_segment, remainder)`.
crate/server/src/config/command_line/secret_backends/common.rs:24
↓ 4 callersMethodpeek_mut
(&mut self)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:55
↓ 4 callersFunctionpermissions
(db: &DB)
crate/server_database/src/tests/permissions_test.rs:15
↓ 4 callersFunctionpkcs11_lib_path
Returns the expected path to the built PKCS#11 shared library.
crate/clients/ckms/src/tests/pkcs11.rs:85
↓ 4 callersMethodpost_json
Send an HTTP POST request with a JSON body. # Errors Returns an error if the request fails.
crate/clients/client/src/http_client/client.rs:470
↓ 4 callersFunctionpqc_keygen_seeded
( name: &CString, seed: &[u8], propquery: Option<&CString>, )
crate/crypto/src/crypto/pqc/mod.rs:97
↓ 4 callersFunctionpredicates_isBooleanJSONSchema
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionprepare_sym_key_elements
( number_of_bits: Option<usize>, wrap_key_b64: &Option<String>, algorithm: SymmetricAlgorithm, )
crate/clients/client_utils/src/create_utils.rs:72
↓ 4 callersFunctionpreserialized_op
Serialize a KMIP operation to TTLV JSON bytes (one-time cost at preparation). Wraps the operation in a `RequestMessage` — the same envelope used by t
crate/clients/clap/src/actions/bench/load.rs:218
↓ 4 callersFunctionprofile
(id: u32)
crate/clients/pkcs11/module/src/objects_store.rs:118
↓ 4 callersMethodrecord_hsm_operation
Record HSM operation. `operation` must be a `'static` literal (e.g. `Op::OP_NAME`, `"Wrap"`, `"Unwrap"`). `hsm_model` is a runtime label from `hsm_mo
crate/server/src/core/otel_metrics.rs:615
↓ 4 callersMethodrecord_kmip_operation_duration
Record KMIP operation duration
crate/server/src/core/otel_metrics.rs:375
↓ 4 callersMethodregister_objects_store
Register an Objects store for Objects `uid` starting with `<prefix>::`. This function registers an `ObjectsStore` for objects whose unique identifier
crate/server_database/src/core/database_objects.rs:98
↓ 4 callersMethodrekey
This request is used to generate a replacement key for an existing symmetric key. It is analogous to the Create operation, except that attributes of t
crate/server/src/core/kms/kmip.rs:674
↓ 4 callersMethodremote_verify
( &self, remote_id: &str, algorithm: &SignatureAlgorithm, data: &[u8],
crate/clients/pkcs11/provider/src/backend.rs:674
↓ 4 callersFunctionrequest_with
Build a `SignatureVerify` carrying only the two mutually exclusive payload fields; every other field is irrelevant to input resolution.
crate/server/src/core/operations/signature_verify.rs:491
↓ 4 callersFunctionrequire_id
Extract the `Id` from a `SearchOptions`, returning an error if `All` was passed. Centralises the "find requires an ID" check shared by four `Backend`
crate/clients/pkcs11/provider/src/backend.rs:49
↓ 4 callersFunctionresolve_aad
( data_encryption_algorithm: DataEncryptionAlgorithm, aad: Option<Vec<u8>>, )
crate/clients/clap/src/actions/symmetric/cipher_io.rs:16
↓ 4 callersFunctionresolve_async
Run an async future on a dedicated thread with a fresh single-threaded tokio runtime. Required because config loading runs before the main runtime.
crate/server/src/config/command_line/secret_backends/common.rs:7
↓ 4 callersFunctionresolve_single_uri
Helper: wrap a URI in a minimal TOML table and resolve it.
crate/server/src/config/command_line/secret_backends/mod.rs:162
↓ 4 callersMethodretrieve
(&self, uid: &str)
crate/interfaces/src/hsm/hsm_store.rs:220
↓ 4 callersFunctionretrieve_issuer_private_key_and_certificate
Retrieve the certificate associated to the given private key. If the private key is not provided, the private key is retrieved from the certificate.
crate/server/src/core/certificate/find.rs:173
↓ 4 callersMethodrevoke
This operation requests the server to revoke a Managed Cryptographic Object or an Opaque Object. The request contains a reason for the revocation (e.g
crate/clients/client/src/kms_rest_client.rs:594
↓ 4 callersFunctionrevoke_access
Revoke access to a user
crate/clients/ckms/src/tests/access.rs:95
↓ 4 callersMethodrevoke_access
Remove an access authorization for a user (identified by `access.userid`) to an object (identified by `access.unique_identifier`) which is owned by `o
crate/server/src/core/kms/permissions.rs:132
↓ 4 callersMethodrevoke_crypto_officer_activation
Revoke `activated_by`'s active Crypto Officer ceremony record. `revoked_by` is stored in the audit column (who issued the revocation). Only `activate
crate/server_database/src/core/database_permissions.rs:136
↓ 4 callersFunctionrsa_oaep_params
()
crate/clients/clap/src/actions/bench/helpers.rs:198
↓ 4 callersFunctionrun_all_xml_vectors_in_dir
Run all XML vectors in a directory (sorted alphabetically) against the shared test server. Optionally exclude specific filenames (e.g., PKCS11 tests t
crate/clients/clap/src/tests/xml/runner.rs:21
↓ 4 callersFunctionrun_ckms_output
Run a ckms command and capture stdout on success, or return None on failure.
crate/clients/ckms/src/tests/rbac_tests.rs:691
↓ 4 callersFunctionrun_sign
( kms_rest_client: KmsClient, input_file: PathBuf, key_id: Option<String>, tags: Option<Vec<St
crate/clients/clap/src/actions/shared/sign.rs:14
↓ 4 callersFunctionrun_signature_verify
( kms_rest_client: KmsClient, data_file: &PathBuf, signature_file: &PathBuf, key_id: &Option<S
crate/clients/clap/src/actions/shared/signature_verify.rs:14
↓ 4 callersFunctionsaml_runtime
(saml_realm: Option<&str>)
crate/server/src/routes/ui_auth.rs:865
↓ 4 callersFunctionsanitize
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionscep_pkcs_req_message
A `PKCSReq` with the right challenge, signed by a self-signed bootstrap certificate.
crate/server/src/tests/enrollment_tests.rs:921
↓ 4 callersFunctionsecret_data_create_request
Build a `Create` request for a secret data - random Seed of 32 bytes generated server-side
crate/kmip/src/kmip_2_1/requests/create.rs:210
↓ 4 callersFunctionseed_postgres_chain_with
Seeds a fresh instance with `n` events via `PgAuditSink`, returning its `instance_id`. `mutate` runs on each event just before it is written, letting
crate/clients/clap/src/actions/audit.rs:1394
↓ 4 callersFunctionself_signature
Signature config of type `typ` by the primary key of `secret`, with `extra` hashed subpackets. Created one second in the future so it is newer than th
crate/crypto/src/crypto/openpgp/mod.rs:1248
↓ 4 callersMethodserialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctionset_attribute
( kms: &KMS, request: SetAttribute, user: &UserId, )
crate/server/src/core/operations/attributes/set.rs:56
↓ 4 callersFunctionset_certificate_serial_tag
Replace any `_serial=` tag in `tags` with the one for `serial_hex` (computed from the certificate DER). Dropping first defeats client-planted or inher
crate/kmip/src/kmip_2_1/extra/tagging.rs:39
↓ 4 callersFunctionset_deactivation_date
Set the `DeactivationDate` attribute on a key via KMIP `SetAttribute`.
crate/server/src/tests/jose/key_state.rs:638
↓ 4 callersMethodset_x509_extension_file
Set an X509 extensions file containing a `v3_ca` parag. # Arguments `x509_extension_file` - The X509 extensions file to set # Returns The X509 exten
crate/kmip/src/kmip_2_1/extra/certificates.rs:57
↓ 4 callersFunctionsetup
(p: Page)
ui/tests/e2e/helpers.ts:404
↓ 4 callersFunctionsha256_file
Streams `path` through SHA-256 in fixed-size chunks (no full-file load) and returns `(lowercase hex digest, file size in bytes)`. Shared by the serve
crate/access/src/audit/file_hash.rs:22
↓ 4 callersFunctionsign_request
( algorithm: &str, digest: &[u8], wrapped_private_key: String, )
crate/server/src/tests/google_cse/crypto_paths.rs:191
↓ 4 callersFunctionsign_test_jwt
(claims: &UserClaim)
crate/server/src/middlewares/jwt/jwt_token_auth.rs:368
↓ 4 callersMethodsignature_verify
This operation requests the server to perform a signature verify operation on the provided data using a Managed Cryptographic Object as the key for th
crate/clients/client/src/kms_rest_client.rs:689
↓ 4 callersMethodslot
(&mut self, family: MessageFamily)
crate/hsm/base_hsm/src/session/message_context.rs:100
↓ 4 callersFunctionspawn_browser_simulation
Issue a minimal HTTP GET to `url` (on a plain TCP connection) after sleeping `delay_ms` milliseconds. Runs on a dedicated OS thread so it does not co
crate/clients/client/src/http_client/tests.rs:502
↓ 4 callersFunctionspawn_mock_auth_verifier
Start a local auth-verifier answering `GET /auth/token/lookup-self` with `body` for token `good-token` only (HTTP 403 otherwise). Returns its base URL
crate/server/src/middlewares/spire_token.rs:587
↓ 4 callersFunctionspawn_mock_http_once
Spawn a one-shot raw-TCP HTTP/1.1 server on `port` that reads a single request and replies with the supplied `status_line` and JSON `body`. Returns t
crate/clients/client/src/http_client/tests.rs:714
↓ 4 callersFunctionstart_ceremony_test_kms_server
Ceremony-mode test server. Loads configuration from `test_data/configs/server/rbac/crypto_officers.toml` (`require_ceremony = true`, CO users: `owner
crate/test_kms_server/src/test_server.rs:1020
↓ 4 callersFunctionstart_default_test_kms_server_with_utimaco_and_kek
()
crate/test_kms_server/src/test_server.rs:539
↓ 4 callersFunctionstripHtml
(text: string)
ui/src/utils/utils.ts:14
↓ 4 callersMethodsubject
(&self)
crate/clients/pkcs11/provider/src/pkcs11_certificate.rs:94
↓ 4 callersFunctiontags
( db: &DB, verify_attributes: bool, )
crate/server_database/src/tests/tagging_tests.rs:21
↓ 4 callersFunctionte
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 4 callersFunctiontemp_path
(label: &str)
crate/server/src/core/audit/file_sink.rs:354
← previousnext →1,301–1,400 of 12,829, ranked by callers