MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 11 callersFunctionreject_reserved_service_identity
Reject a reserved service identity on externally-derived auth paths.
crate/server/src/middlewares/mod.rs:171
↓ 11 callersFunctionremove_leftover_key
Remove the key with this deterministic identifier, and its `_pk` public key, left by an earlier run or protocol pass, so that it can be created again.
crate/clients/clap/src/actions/bench/helpers.rs:345
↓ 11 callersFunctionrevoked_serials
Parse DER CRL with `x509_parser` and return the serial numbers of revoked entries.
crate/server/src/tests/crl_tests.rs:237
↓ 11 callersFunctionrsa_sha256_sign
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1245
↓ 11 callersFunctionscep_roundtrip
Send one `PKIOperation` the way a SCEP client does and decode the `CertRep`.
crate/server/src/tests/enrollment_tests.rs:934
↓ 11 callersFunctionseed_three_generations
Keyset `hsm::0::k`: generations 0 (`k`) and 1 (`k@1`) retired, 2 (`k@2`) the head.
crate/server/src/tests/hsm/fake_hsm_rotation.rs:907
↓ 11 callersFunctionself_signed
(cn: &str)
crate/crypto/src/openssl/scep_cms.rs:645
↓ 11 callersMethodset_object
Set a new object, clearing the cached unwrapped version if any
crate/interfaces/src/stores/object_with_metadata.rs:74
↓ 11 callersMethodset_vendor_attribute
Set a vendor attribute to the list of vendor attributes replacing one with an existing value if any This function will remove the vendor attribute if
crate/kmip/src/kmip_2_1/kmip_attributes.rs:584
↓ 11 callersMethodstream_cipher
( &self, mode: Mode, key: &[u8], nonce: &[u8], aad: &[u8], )
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:552
↓ 11 callersFunctiontamper_row
Disables the append-only triggers, runs one parameterised `UPDATE`, then re-enables them — the bypass every tamper test below needs, since the trigger
crate/server_database/src/stores/audit/pgsql.rs:1055
↓ 11 callersFunctiontest_kms_with_kek
Create a test KMS whose `key_encryption_key` is an AES-256 key created beforehand, by `kek_owner`, on the same database. `make_config` is called twice
crate/server/src/tests/test_utils.rs:67
↓ 11 callersFunctiontest_private_key_conversion_pkcs
( private_key: &PKey<Private>, id: Id, key_size: u32, kft: KeyFormatType,
crate/crypto/src/openssl/private_key.rs:558
↓ 11 callersFunctiontest_public_key_conversion_pkcs
( public_key: &PKey<Public>, id: Id, key_size: u32, kft: KeyFormatType, )
crate/crypto/src/openssl/public_key.rs:550
↓ 11 callersFunctionthrowError
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 11 callersMethodto_bytes
(&self, kmip_flavor: KmipFlavor)
crate/kmip/src/ttlv/ttlv_struct.rs:112
↓ 11 callersMethodupdate_state
Update the state of an object in the database.
crate/server_database/src/core/database_objects.rs:426
↓ 11 callersFunctionuser_has_permission
Check if a user has permission to perform an operation on an object. If the user is the owner of the object, it will always return true. For non-HSM o
crate/server/src/core/retrieve_object_utils.rs:250
↓ 11 callersFunctionvalidate_certificate
( cli_conf_path: &str, sub_command: &str, uids: Vec<String>, date: Option<String>, )
crate/clients/ckms/src/tests/certificates/validate.rs:113
↓ 11 callersFunctionwrap_object_with_key
Wrap an object (a key) with a wrapping key The wrapping key is fetched from the database The key is wrapped using the wrapping key # Arguments `objec
crate/crypto/src/crypto/wrap/wrap_key.rs:96
↓ 10 callersFunctionDk
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionU
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionW
(s,o,i)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionalice
()
crate/server/src/middlewares/ui_session.rs:406
↓ 10 callersFunctionallow
(wl: Option<&HashSet<T>>, token: &T)
crate/server/src/core/operations/algorithm_policy.rs:569
↓ 10 callersMethodapply_on_int
Adds noise generated from a chosen distribution to the input data. # Arguments `data` - A single int value to which noise will be added. # Returns
crate/crypto/src/crypto/anonymization/noise.rs:249
↓ 10 callersFunctionassert_serial_tag
( pool: &P, present: bool, tags_in_object_blob: bool, )
crate/server_database/src/tests/sqlite_migration_tests.rs:304
↓ 10 callersFunctionassert_wrapped_key_found
(pool: &P)
crate/server_database/src/tests/sqlite_migration_tests.rs:287
↓ 10 callersFunctionb64url
(data: &[u8])
crate/clients/client/src/jose.rs:10
↓ 10 callersFunctionbench_op_id
Benchmark a single KMIP operation under a parameterized [`BenchmarkId`].
crate/clients/clap/src/actions/bench/transport.rs:255
↓ 10 callersFunctionbuild_create_covercrypt_usk_request
Build a `Create` request for a `CoverCrypt` USK
crate/clients/client_utils/src/cover_crypt_utils.rs:64
↓ 10 callersFunctioncheck
Run a successful command and check the token exchange followed by the single Gmail call.
crate/clients/clap/src/tests/google_cmd/gmail_api.rs:35
↓ 10 callersMethodcreate
Insert the given Object in the database. A new UUID will be created if none is supplier. This method will fail if a `uid` is supplied and an object w
crate/server_database/src/stores/redis/redis_with_findex.rs:1144
↓ 10 callersFunctioncreate_test_key
Create a fresh AES-256 symmetric key; return its KID.
crate/server/src/tests/jose/tags.rs:21
↓ 10 callersFunctiondecrypt
Decrypt a file using the given symmetric key
crate/clients/ckms/src/tests/symmetric/encrypt_decrypt.rs:69
↓ 10 callersMethoddecrypt
( &self, _slot_id: usize, _key_id: &[u8], _algorithm: CryptoAlgorithm,
crate/server/src/core/operations/certify/hsm_subject_tests.rs:168
↓ 10 callersFunctiondestroy
( cli_conf_path: &str, sub_command: &str, key_id: &str, remove: bool, )
crate/clients/ckms/src/tests/shared/destroy.rs:27
↓ 10 callersFunctioneddsa_sign_all_curves
HSM-delegated `EdDSA` signing (issue #1157, "HSM delegation Track B"). Exercises `CKM_EC_EDWARDS_KEY_PAIR_GEN` key generation and `CKM_EDDSA` signing
crate/hsm/base_hsm/src/tests_shared.rs:1618
↓ 10 callersFunctionemitTagAndPreviousTextNode
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersMethodequals
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionextract_client_ip
Extracts the client IP address. The `X-Forwarded-For` header is only trusted when the direct TCP peer address falls within one of the `trusted_proxie
crate/server/src/middlewares/audit/client_ip.rs:31
↓ 10 callersFunctionextract_query_params
Extract query parameters from a `PostgreSQL` connection URL by splitting on `?`/`&`. This avoids `Url::parse()` which cannot handle multi-host connect
crate/server_database/src/stores/sql/pgsql.rs:2323
↓ 10 callersMethodfinalize
Finalize key creation: create the key pair in the KMS and transition from `Pending` to `Persisted`.
crate/clients/cng/src/key.rs:272
↓ 10 callersFunctionfind_by_class_and_id
Run a `C_FindObjectsInit`/`C_FindObjects`/`C_FindObjectsFinal` sequence for the given class and `CKA_ID`, returning the matched object handles.
crate/clients/pkcs11/module/src/tests.rs:1757
↓ 10 callersFunctiongen_key
Generates a symmetric key
crate/clients/ckms/src/tests/access.rs:43
↓ 10 callersFunctiongenerate_ec_keypair
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:458
↓ 10 callersFunctiongenerate_key
()
crate/server/src/middlewares/jwt/jwt_token_auth.rs:646
↓ 10 callersFunctiongenerate_rsa_keypair
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:386
↓ 10 callersFunctionget_hsm_password
()
crate/hsm/base_hsm/src/test_helpers.rs:3
↓ 10 callersFunctionget_hsm_slot_id
()
crate/hsm/base_hsm/src/test_helpers.rs:13
↓ 10 callersFunctionget_jwks_response
Helper function: call `GET /.well-known/jwks.json` and return the raw `ServiceResponse`.
crate/server/src/tests/jwks_endpoint.rs:23
↓ 10 callersFunctionget_key_metadata
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:2068
↓ 10 callersFunctionget_mechanisms_and_hashes
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:164
↓ 10 callersMethodget_vendor_attribute_value
( &self, vendor_identification: &str, attribute_name: &str, )
crate/kmip/src/kmip_2_1/kmip_attributes.rs:604
↓ 10 callersFunctiongpg_create_key
Create an **unprotected** key inside gpg. `algo` is a `--quick-generate-key` algorithm string: "ed25519", "rsa2048", "rsa3072", "rsa4096". Returns (fi
crate/test_kms_server/src/pgp_gnupg_tests.rs:97
↓ 10 callersFunctionheader
( batch_count: i32, batch_error_continuation_option: Option<BatchErrorContinuationOption>, )
crate/server/src/tests/ttlv_tests/batch_semantics_2_1.rs:32
↓ 10 callersMethodhsm
Get the HSM library interface
crate/hsm/base_hsm/src/session/session_impl.rs:348
↓ 10 callersFunctionhttp_req
()
crate/server/src/routes/aws_xks/tests.rs:49
↓ 10 callersMethodinit
Initialize the DB parameters based on the command-line parameters # Parameters - `workspace`: The workspace configuration used to determine the publi
crate/server/src/config/command_line/db.rs:281
↓ 10 callersMethodinsert
Caches the unwrapped version of the given object under this UID. The fingerprint of the wrapped object is stored alongside the unwrapped object to en
crate/server_database/src/core/unwrapped_cache.rs:165
↓ 10 callersMethodinto_parts
(self)
crate/interfaces/src/stores/object_with_metadata.rs:113
↓ 10 callersMethodkey_bytes_ref
Borrow the key material of a symmetric key, raw or transparent (no copy).
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:326
↓ 10 callersFunctionlist_objects
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1964
↓ 10 callersFunctionlocate_keys
( owner: &str, kms: &Arc<KMS>, attributes: Option<Attributes>, )
crate/server/src/tests/hsm/mod.rs:356
↓ 10 callersMethodmac
This operation requests the server to perform message authentication code (MAC) operation on the provided data using a Managed Cryptographic Object as
crate/server/src/core/kms/kmip.rs:582
↓ 10 callersFunctionmakeSequence
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionml_kem_encapsulate
ML-KEM encapsulation: produces a (`shared_secret`, `ciphertext`) pair. The `public_key_der` should be SPKI (`SubjectPublicKeyInfo`) DER bytes.
crate/crypto/src/crypto/pqc/ml_kem.rs:56
↓ 10 callersMethodopen
( &self, rng: &KmsRng, owner: StreamOwner<'_>, state: S, )
crate/server/src/core/operations/key_ops/multi_part.rs:413
↓ 10 callersFunctionparse_signed_pkimessage
SAFETY: OpenSSL FFI; justified at each unsafe block
crate/crypto/src/openssl/scep_cms.rs:504
↓ 10 callersFunctionphase
Starts one nested phase timer when Sign profiling is active.
crate/clients/pkcs11/module/src/profiling.rs:216
↓ 10 callersFunctionraw_binary_post
--------------------------------------------------------------------------- Helper: POST raw bytes to the binary KMIP endpoint. Returns the HTTP stat
crate/clients/clap/src/tests/serialization/wire_payloads.rs:22
↓ 10 callersMethodrefresh
Fetch again all JWKS using the `uris`. The threshold to refresh JWKS is set to `REFRESH_INTERVAL`.
crate/server/src/middlewares/jwt/jwks.rs:127
↓ 10 callersMethodregister
( &self, request: Register, user: &UserId, )
crate/server/src/core/kms/kmip.rs:618
↓ 10 callersFunctionrekey_symmetric_key
Create a symmetric key via the CLI
crate/clients/ckms/src/tests/symmetric/rekey.rs:17
↓ 10 callersMethodremove_vendor_attribute
Remove the vendor attribute with the given vendor identification and attribute name. Returns the value of the removed attribute if it existed.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:620
↓ 10 callersMethodrequest
(&self, data: Map<String, Value>)
crate/clients/clap/src/actions/kv.rs:141
↓ 10 callersFunctionresetToDataState
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionresolve_authenticated_user
Resolve an [`AuthenticatedUser`] from a successfully validated JWT claim set. A verified `email` takes priority when present and is namespaced for se
crate/server/src/middlewares/jwt/jwt_token_auth.rs:110
↓ 10 callersMethodresume
(&mut self)
crate/server/src/core/audit/store.rs:1322
↓ 10 callersFunctionretry_on_transient_lock
Retries `operation` while it fails with a transient `SQLite` lock error, using capped exponential backoff, up to `MAX_LOCK_RETRY_ELAPSED`. `SQLite`'s
crate/server_database/src/stores/sql/sqlite.rs:168
↓ 10 callersFunctionrevoke_cert
Revoke a certificate using the given reason code.
crate/test_kms_server/src/crl_tests.rs:35
↓ 10 callersFunctionrsa_key_wrap
(slot: &Arc<SlotManager>, digest: RsaOaepDigest)
crate/hsm/base_hsm/src/tests_shared.rs:539
↓ 10 callersFunctionrsa_pkcs_v15_sign
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1216
↓ 10 callersFunctionrsa_pss_sign_all_algorithms
Exercises HSM-delegated RSA-PSS signing (issue #1154, RSA-PSS sub-item) across the SHA-256/384/512 variants, both with the default salt length (= dige
crate/hsm/base_hsm/src/tests_shared.rs:1341
↓ 10 callersFunctionrsa_sign_all_algorithms
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:1273
↓ 10 callersFunctionrun_ckms
Helper to run a ckms command and return success/failure
crate/clients/ckms/src/tests/rbac_tests.rs:25
↓ 10 callersFunctionrun_tokenize
( cli_conf_path: &str, subcommand: &str, extra_args: &[&str], )
crate/clients/ckms/src/tests/fpe/tokenize.rs:11
↓ 10 callersFunctionsession
(path: &Path, enabled: bool)
crate/hsm/base_hsm/src/session/message_signature_tests.rs:84
↓ 10 callersMethodset
(value: &OsString)
crate/clients/clap/src/actions/bench/load.rs:1666
↓ 10 callersFunctionstartNewTag
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 10 callersFunctionstart_singleton_from_toml
Start (once per `cell`) a test server from a TOML fixture after applying `patch`.
crate/test_kms_server/src/test_server.rs:1509
↓ 10 callersFunctionstub
Compiles the stub and opens the same path a second time: `dlopen` returns the same loaded image, so the counters read through this handle are the ones
crate/hsm/base_hsm/src/session/message_signature_tests.rs:46
↓ 10 callersFunctiontest_init
()
crate/clients/pkcs11/provider/src/tests.rs:412
↓ 10 callersFunctiontest_private_key_conversion_transparent_ec
( private_key: &PKey<Private>, ec_public_key: Option<&EcPoint>, ec_group: Option<&EcGr
crate/crypto/src/openssl/private_key.rs:730
↓ 10 callersFunctiontest_public_key_conversion_transparent_ec
( public_key: &PKey<Public>, ec_group: Option<&EcGroup>, curve: RecommendedCurve,
crate/crypto/src/openssl/public_key.rs:669
↓ 10 callersFunctionuid
(id: &str)
crate/server/src/tests/hsm/rotation.rs:78
↓ 10 callersMethodunwrapped_cache
(&self)
crate/server_database/src/core/mod.rs:301
↓ 10 callersMethodupsert
Insert the object
crate/clients/pkcs11/module/src/objects_store.rs:53
↓ 10 callersFunctionvalid_claims
()
crate/server/src/middlewares/jwt/jwt_token_auth.rs:694
↓ 10 callersMethodwith_context
(self, op: O)
crate/server/src/result.rs:45
← previousnext →601–700 of 16,000, ranked by callers