MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 6 callersMethoddecrypt_with_mechanism
( &self, key_handle: CK_OBJECT_HANDLE, mechanism: &mut CK_MECHANISM, encrypted
crate/hsm/base_hsm/src/session/session_impl.rs:1814
↓ 6 callersFunctionderive_session_key_from_url
Derive a session cookie encryption key from the public URL and a user-provided salt. This function creates a deterministic key from the public URL an
crate/server/src/start_kms_server.rs:811
↓ 6 callersFunctionecdh_es_round_trip
(crv: &str, alg: &str, enc: &str)
crate/server/src/tests/jose/ecdh.rs:179
↓ 6 callersFunctionemptyMap
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionencrypt
(kms: &Arc<KMS>, user: &str, key: &str, body: Value)
crate/server/src/routes/spire/transit_encryption.rs:696
↓ 6 callersFunctionencrypt
Encrypt plaintext with the given key, returning the JSON encrypt response.
crate/server/src/tests/jose/key_state.rs:62
↓ 6 callersMethodencrypt_big
Encrypts the given `value` using the FPE method. The value must be less than or equal to the `max_value` of the `Integer` representation. # Example
crate/crypto/src/crypto/fpe/integer.rs:141
↓ 6 callersFunctionenforce_kmip_algorithm_policy_for_csr
Certify from a PKCS#10 request: its public key and, for RSA and EC keys (whose signature names a hash), its signature algorithm must satisfy the activ
crate/server/src/core/operations/algorithm_policy.rs:291
↓ 6 callersFunctionenroll_device
Enroll a device through SCEP and return its key and certificate.
crate/server/src/tests/enrollment_tests.rs:1188
↓ 6 callersFunctionenroll_for_peer
Issue for an authenticated request. A client certificate issued by the EST CA must still be active (TLS verification does not check revocation) and ma
crate/server/src/routes/est/enroll.rs:259
↓ 6 callersFunctionensure_pkcs11_lib
Ensures the `libcosmian_pkcs11` shared library (cdylib) is built. Mirrors the pattern from `ensure_binary.rs`.
crate/clients/ckms/src/tests/pkcs11.rs:36
↓ 6 callersMethodexport_key
Export a key from the HSM
crate/hsm/base_hsm/src/session/session_impl.rs:2964
↓ 6 callersMethodextension
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionextract_private_key
Extract the private key from a test.
crate/clients/ckms/src/tests/utils/extract_uids.rs:28
↓ 6 callersFunctionextract_public_key
Extract the public key from a test.
crate/clients/ckms/src/tests/utils/extract_uids.rs:33
↓ 6 callersMethodfail_json
(**kwargs)
ansible/tests/unit/test_kms_api.py:139
↓ 6 callersFunctionfield
(body: &Value, name: &str)
crate/server/src/tests/google_cse/crypto_paths.rs:51
↓ 6 callersMethodfreeze
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctiongcm
(tag_length: Option<i32>, iv_length: Option<i32>)
crate/server/src/core/operations/decrypt.rs:1059
↓ 6 callersFunctiongcm_fixture_session
(gcm: AesGcmCapabilities, fixture_args: &[&str])
crate/hsm/base_hsm/src/session/session_impl.rs:4493
↓ 6 callersFunctiongcm_mechanism
Build a `CK_MECHANISM` for `CKM_AES_GCM` pointing at the caller-owned `params`. `params` MUST be a local variable in the caller's own stack frame (not
crate/clients/pkcs11/module/src/core/mechanism.rs:580
↓ 6 callersFunctiongenerate_rsa_keypair
Generate RSA keypair using OpenSSL (random size from 2048, 3072, or 4096 bits).
crate/clients/clap/src/tests/shared/openssl_utils.rs:18
↓ 6 callersMethodgetMetaProperty
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionget_hsm_model
()
crate/test_kms_server/src/test_server.rs:622
↓ 6 callersFunctionget_hsm_password
()
crate/test_kms_server/src/test_server.rs:626
↓ 6 callersMethodget_info_struct
Get PKCS#11 info as Info struct. This method calls `C_GetInfo` and returns the `Info` structure with parsed library information.
crate/hsm/base_hsm/src/hsm_lib.rs:556
↓ 6 callersMethodget_key_metadata
(&self, uid: &str)
crate/interfaces/src/hsm/hsm_store.rs:1101
↓ 6 callersMethodget_parameter
Read a server-internal parameter from the main database without writing it. # Errors Fails if the main store cannot read or decrypt the parameter.
crate/server_database/src/core/database_objects.rs:566
↓ 6 callersFunctiongi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctiongrant
(kms: &KMS, uid: &str, user: &str, op: KmipOperation)
crate/server/src/tests/hsm/fake_hsm_authz.rs:396
↓ 6 callersFunctiongrant_certify_access
Grant `user` `Get` + `Certify` on `cert_id` AND `Get` on `sk_id`. This allows a non-owner to use the CA cert/key as an issuer in a `Certify` request,
crate/server/src/tests/crl_tests.rs:869
↓ 6 callersFunctionh
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodhas_usage_mask
(&self, required: CryptographicUsageMask, lenient: bool)
crate/interfaces/src/stores/object_with_metadata.rs:229
↓ 6 callersFunctionheaders
(cookie: &str)
crate/server/src/middlewares/ui_session.rs:413
↓ 6 callersFunctionhybrid_kem_algorithm_name
Map a hybrid KEM `CryptographicAlgorithm` to the OpenSSL algorithm name string.
crate/crypto/src/crypto/pqc/mod.rs:411
↓ 6 callersFunctionih
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodincludesCycle
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctioninit_char_test_backend
()
crate/clients/pkcs11/module/src/sessions.rs:1844
↓ 6 callersFunctioninsert_test_key_pair
Insert a private key (`<base>`) and its paired public key (`<base>_pk`) directly into the global `OBJECTS_STORE`, returning the two handles.
crate/clients/pkcs11/module/src/tests.rs:1725
↓ 6 callersFunctioninvalid_response_message_with_reason
According to the specification, when a Request Message is invalid, the KMIP server returns a Response Message containing an Operation Failed batch ite
crate/server/src/routes/kmip/handlers.rs:191
↓ 6 callersFunctioniot_template
()
crate/server/src/core/operations/certify/template.rs:634
↓ 6 callersMethodisEmpty
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionisJSONSchemaObject
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionisPrimitiveElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionis_WS_OR_EOL
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodis_aes_gcm
(&self)
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:354
↓ 6 callersFunctionis_mysql_deadlock
(msg: &str)
crate/server_database/src/stores/sql/mysql.rs:111
↓ 6 callersFunctioniteratorDone
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodjoin_split_key
This operation reconstructs a Managed Cryptographic Object from split-key shares. KMIP 2.1 §4.29.
crate/server/src/core/kms/kmip.rs:145
↓ 6 callersFunctionjose_to_kmip_params
Derive KMIP `CryptographicParameters` from JOSE algorithm identifiers. For encrypt/decrypt, pass both `alg` and `enc`. For sign/verify, pass only `al
crate/server/src/routes/jose/algorithm.rs:183
↓ 6 callersMethodkey
(&self)
crate/server/src/core/operations/certify/issuer.rs:46
↓ 6 callersFunctionkey_protection_from_attributes
Sensitive/extractable attributes the KMS reported for a key.
crate/clients/pkcs11/provider/src/kms_object.rs:1588
↓ 6 callersMethodkey_type
(&self, id: &str)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:121
↓ 6 callersFunctionkms_export_pgp
Export a KMS PGP key as secret or public armor.
crate/test_kms_server/src/pgp_gnupg_tests.rs:269
↓ 6 callersFunctionkms_with_fake_hsm
KMS on a fresh `SQLite` database with `FakeHsm` mounted under the `hsm` prefix.
crate/server/src/tests/hsm/fake_hsm_authz.rs:353
↓ 6 callersFunctionlen_usize
Converts an `NCrypt` `u32` byte count to a `usize`.
crate/clients/clap/src/actions/cng_verify.rs:27
↓ 6 callersMethodlist_objects
List objects in the HSM that match the specified filter The filter can be used to narrow down the search to specific types of objects such as AES keys
crate/hsm/base_hsm/src/session/session_impl.rs:747
↓ 6 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
↓ 6 callersFunctionlow_level_init_test
(cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:91
↓ 6 callersFunctionmake_aes256_key
()
crate/server/src/core/operations/auto_rotate.rs:393
↓ 6 callersFunctionmh
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionml_dsa_sign
Sign data using an ML-DSA private key. ML-DSA uses an internal hash, so we use `Signer::new_without_digest` (same pattern as `EdDSA`).
crate/crypto/src/crypto/pqc/ml_dsa.rs:50
↓ 6 callersFunctionmock_auth_verifier
A validator of a mock Auth Verifier whose `GET /whoami` answers 200 to an `_ea_` cookie while `live` is set (the session exists), and 401 otherwise.
crate/server/src/middlewares/auth_verifier/token.rs:376
↓ 6 callersMethodmount
Fetch secrets from the KMS and return their contents as files. For each object declared in the `SecretProviderClass`, the provider: 1. Calls `KmsClie
crate/clients/k8s/csi_provider/src/service.rs:122
↓ 6 callersFunctionmysql_deadlock_backoff_ms
(attempt: u32)
crate/server_database/src/stores/sql/mysql.rs:122
↓ 6 callersFunctionnh
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodnid
(&self)
crate/clients/pkcs11/module/src/traits/key_algorithm.rs:85
↓ 6 callersMethodobjects_get
( &self, uids: &HashSet<String>, )
crate/server_database/src/stores/redis/objects_db.rs:331
↓ 6 callersFunctionone_shot_http_server
Spawn an async one-shot HTTP/1.1 server on a random port. The server runs as a `tokio::spawn` task on the **same** event-loop as the test, avoiding t
crate/server/src/middlewares/jwt/jwks.rs:384
↓ 6 callersMethodoperation_enum
(&self)
crate/kmip/src/kmip_2_1/kmip_operations.rs:342
↓ 6 callersFunctionoutcome_label
`outcome` label value of a KMIP or HSM operation result: `"success"` or `"error"`.
crate/server/src/core/otel_metrics.rs:64
↓ 6 callersFunctionpad_be_bytes
(bytes: &mut Vec<u8>, size: usize)
crate/crypto/src/lib.rs:8
↓ 6 callersFunctionparams_with_allowlists
(conf: ClapConfig)
crate/server/src/tests/kmip_policy/helpers.rs:41
↓ 6 callersFunctionparse_ocsp_request
(request_der: &[u8])
crate/crypto/src/openssl/ocsp.rs:198
↓ 6 callersMethodpeek
Returns the unwrapped object cached under the given UID if it exists and its fingerprint matches the one of the given wrapped object. Returns `Ok(Non
crate/server_database/src/core/unwrapped_cache.rs:142
↓ 6 callersMethodpreserved_data
(&self)
crate/server_database/src/tests/sql_migration_tests.rs:108
↓ 6 callersFunctionprovider
()
crate/crypto/src/crypto/symmetric/tests.rs:602
↓ 6 callersMethodread
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionread_bytes_from_file
Read all bytes from a file
crate/server/src/tests/google_cse/mod.rs:98
↓ 6 callersFunctionrebuild_url_without_ssl_params
Rebuild the connection URL, removing only SSL-related query parameters. Other parameters like `target_session_attrs` are preserved for `tokio-postgres
crate/server_database/src/stores/sql/pgsql.rs:2338
↓ 6 callersFunctionrecord_cse_user
Records the CSE user in the request extensions so that the audit middleware attributes the event to it: tokens are validated here, not by a middleware
crate/server/src/routes/google_cse/operations.rs:282
↓ 6 callersMethodrecord_failure_at
(&self, client: IpAddr, now: Instant)
crate/server/src/routes/enrollment_guard.rs:108
↓ 6 callersFunctionredis_master_key_for_database
Derive the master key of the database at `redis_url` from `password`. The salt is stored in the database (`kms_kdf_salt`). A database created by an o
crate/server_database/src/stores/redis/redis_with_findex.rs:159
↓ 6 callersMethodreject_unsupported_extensions
Reject JOSE header extensions this server does not implement, whatever the authenticator: - `crit` must be absent: RFC 7515 §4.1.11 requires rejecting
crate/server/src/middlewares/jwt/jwt_config.rs:206
↓ 6 callersFunctionrekey_as
(kms: &KMS, uid_str: &str, user: &UserId)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:1022
↓ 6 callersMethodremote_id
(&self)
crate/clients/pkcs11/module/src/core/object.rs:77
↓ 6 callersMethodremove_operations
Remove the ability to `user` to perform the `operations` on the object identified by its `uid`
crate/server_database/src/core/database_permissions.rs:61
↓ 6 callersMethodremove_tags
(&mut self, vendor_id: &str)
crate/kmip/src/kmip_2_1/extra/tagging.rs:99
↓ 6 callersFunctionrender
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersMethodrender
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionresolve_optional_provider
( result: Result<T, E>, dlopen_impossible: bool, log_warning: impl FnOnce(&E), )
crate/server/src/openssl_providers.rs:366
↓ 6 callersMethodretrieve_tags
Retrieve the tags of the object with the given `uid`
crate/server_database/src/core/database_objects.rs:375
↓ 6 callersFunctionrevoke
( kms_rest_client: KmsClient, key_id: &str, revocation_reason: &str, reason_code: RevocationRe
crate/clients/clap/src/actions/shared/utils/revoke_utils.rs:21
↓ 6 callersFunctionrevoke_cert
( kms: &Arc<KMS>, owner: &UserId, cert_id: &str, reason: RevocationReasonCode,
crate/server/src/tests/test_validate.rs:1381
↓ 6 callersFunctionrfc3394_wrap
(plaintext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc3394.rs:36
↓ 6 callersFunctionrsa
(bits: u32)
crate/server/src/tests/kmip_policy/certify.rs:24
↓ 6 callersFunctionrun_sanity
Runs the criterion groups of one `--mode`/`--protocol` pair once at `sanity` speed.
crate/clients/clap/src/actions/bench/clap.rs:560
↓ 6 callersFunctionsafeBuildUrl
(s,o,{selectedServer:i=""}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 6 callersFunctionsave_role
(kms: &KMS, policy: &RolePolicy)
crate/server/src/routes/ssh/storage.rs:72
↓ 6 callersFunctionserial_tag
System tag under which an enrolled certificate is indexed by issuer and serial, so that the state of a certificate presented for renewal is found with
crate/server/src/routes/enrollment.rs:345
← previousnext →1,101–1,200 of 16,000, ranked by callers