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
↓ 3 callers
Method
prehashed
`true` when the signer signs the [`digest`](Self::digest) of the data (RSA, ECDSA); `false` when it signs the raw data (`EdDSA` cannot take a digest).
crate/server/src/core/certificate/oracle_signing.rs:122
↓ 3 callers
Function
preserialized_wire_op
Serialize a KMIP operation to binary TTLV wire bytes (one-time cost at preparation). Wraps the operation in a `RequestMessage` as required by the bina
crate/clients/clap/src/actions/bench/load.rs:271
↓ 3 callers
Function
privileged_decrypt_request
( algorithm: &str, encrypted_data_encryption_key: String, wrapped_private_key: String, spki_ha
crate/server/src/tests/google_cse/crypto_paths.rs:549
↓ 3 callers
Function
privileged_test_app
A test application whose `google_cse_privileged_users` lists the user of [`DUMMY_TOKEN`].
crate/server/src/tests/google_cse/mod.rs:83
↓ 3 callers
Function
probe_slot
Run `check` for one slot with a bounded wait, at most one probe in flight, and a short cache.
crate/server/src/routes/health.rs:212
↓ 3 callers
Method
process
Run the benchmark suite using criterion. Spawns a blocking task with a fresh tokio runtime (required because criterion's measurement loop is synchron
crate/clients/clap/src/actions/bench/clap.rs:37
↓ 3 callers
Function
processBuffer
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
process_message
Processes a Request Message decoded by [`decode_request_message`].
crate/server/src/core/operations/message.rs:448
↓ 3 callers
Function
protoChain
(s,o=[s])
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
provision_restricted_writer
Idempotently provisions the hardened-deployment role: `SELECT`/`INSERT` on `kms_audit_events`, `SELECT`/`INSERT`/`UPDATE` on `kms_audit_control`, no D
crate/server_database/src/stores/audit/pgsql.rs:1919
↓ 3 callers
Function
public_jwk_members
Public JWK members (`x`, `y`, `n`, `e`) of the generated public key `kid_public`. All `None` for a curve without a JWK form (e.g. Ed448, secp256k1).
crate/server/src/routes/jose/keys.rs:178
↓ 3 callers
Method
purge_key
Abort every multi-part operation using the key `key_uid`. Called when the key is destroyed or revoked as compromised, so its key schedule does not out
crate/server/src/core/operations/key_ops/multi_part.rs:353
↓ 3 callers
Function
qh
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
query_rows
(path: &Path, sql: &str)
crate/server_database/src/tests/sqlite_migration_tests.rs:49
↓ 3 callers
Method
randInt
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
raw_binary_post
POST raw binary bytes to the KMIP binary endpoint and return the HTTP status. The binary endpoint is `/kmip` (not `/kmip/2_1`). A network / connectio
crate/clients/clap/src/tests/serialization/batch_abuse.rs:29
↓ 3 callers
Method
raw_get_attributes
Raw `C_GetAttributeValue` call, returning the `CK_RV` unchanged so callers can decide how to interpret HSM-specific error codes (e.g. [`call_get_attri
crate/hsm/base_hsm/src/session/session_impl.rs:3477
↓ 3 callers
Function
readLineBreak
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
read_body_capped
Read the body of `resp`, giving up as soon as it exceeds `max` bytes so that a hostile or broken peer cannot make the KMS buffer an unbounded response
crate/server/src/middlewares/auth_verifier/mod.rs:59
↓ 3 callers
Function
read_limited_body
Read a request body of at most [`MAX_ENROLLMENT_BODY`] bytes; the error is the response to send back.
crate/server/src/routes/enrollment.rs:213
↓ 3 callers
Function
read_only_error
Error for an attribute the server manages for this operation. KMIP 2.1 names two result reasons: Add and Set Attribute return `Read Only Attribute` (
crate/server/src/core/operations/attributes/policy.rs:25
↓ 3 callers
Function
recertify
KMIP `ReCertify` operation — certificate rotation with new UID. Creates a new certificate for the same subject/issuer, assigns a fresh UID, and links
crate/server/src/core/operations/recertify.rs:77
↓ 3 callers
Function
record
Builds the undo record of an executed item from the stored state it left; `None` when its effects cannot be reverted.
crate/server/src/core/operations/batch_undo.rs:295
↓ 3 callers
Method
record_success
Forget the failures of `client` after a successful authentication.
crate/server/src/routes/enrollment_guard.rs:148
↓ 3 callers
Function
record_uid
UID of the SSH record `record_key`: HMAC-SHA256 under the server-internal UID key, truncated to a UUID. KMIP clients cannot compute it, so they cannot
crate/server/src/routes/ssh/storage.rs:182
↓ 3 callers
Function
redis_master_key_from_password_with_salt
Derive a Redis Master Key from a password and a salt
crate/server_database/src/stores/redis/redis_with_findex.rs:106
↓ 3 callers
Method
refresh_key_scan
Run a full key scan and replace the cached snapshot with it.
crate/server_database/src/stores/redis/redis_with_findex.rs:364
↓ 3 callers
Method
register
Register an HSM key UID for cleanup at the end of the benchmark.
crate/clients/clap/src/actions/bench/helpers.rs:47
↓ 3 callers
Function
register_fallback_backend
Register a backend whose `find_all_private_keys` returns the given key id and whose other `find_all_*` methods return empty sets.
crate/clients/pkcs11/module/src/tests.rs:2087
↓ 3 callers
Function
reimport_cert_with_issuer
Re-import the DER of `leaf_id` as a new certificate linked to `ca_id`, as a client importing a third-party certificate with its issuer does. Returns t
crate/test_kms_server/src/crl_tests.rs:1161
↓ 3 callers
Function
reject_reserved_cse_user
A Google CSE token must not name a reserved service identity (such as the AWS XKS one): the email becomes the KMS user that owns or is granted the key
crate/server/src/routes/google_cse/jwt.rs:523
↓ 3 callers
Function
reject_reserved_uid
Reject `uid` if it is a reserved identifier (see [`RESERVED_UIDS`]).
crate/server_database/src/core/database_objects.rs:36
↓ 3 callers
Method
rekey_hsm
Rotate an HSM-resident AES key (`object_type == SymmetricKey`) or key pair (`object_type == PrivateKey`) and return the UID of the new (private) key.
crate/server/src/core/operations/rekey/hsm.rs:137
↓ 3 callers
Method
rekey_keypair
This request is used to generate a replacement key pair for an existing public/private key pair. It is analogous to the Create Key Pair operation, ex
crate/clients/client/src/kms_rest_client.rs:562
↓ 3 callers
Function
remote_conf
Write a copy of the `CKMS_CSE_CONF` config pointing at `server_url` without access token; the source file is never modified. Returns the copy's path.
crate/clients/ckms/src/tests/google_cmd/remote_cse.rs:26
↓ 3 callers
Function
remove
( cli_conf_path: &str, master_secret_key_id: &str, attribute: &str, )
crate/clients/ckms/src/tests/cover_crypt/access_structure.rs:173
↓ 3 callers
Function
replaceEntities
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
request_attrs
()
crate/crypto/src/openssl/scep_cms.rs:676
↓ 3 callers
Function
requested_hsm_algorithm
HSM algorithm requested by KMIP parameters; `None` = HSM default (AES-GCM / RSA-OAEP-SHA256).
crate/server/src/core/wrapping/wrap.rs:340
↓ 3 callers
Function
require_minimum
(module, name, minimum)
ansible/plugins/module_utils/kms_api.py:17
↓ 3 callers
Function
require_non_empty
Check that a required credential is non-empty.
crate/secret_backends/src/common.rs:41
↓ 3 callers
Function
require_user
The acting user, which `Create`/`Upsert` need to own the written object.
crate/server_database/src/stores/redis/redis_with_findex.rs:312
↓ 3 callers
Method
reseed
(&self, seed: &[u8])
crate/crypto/src/crypto/rng/mod.rs:197
↓ 3 callers
Method
reset
(&self)
crate/server_database/src/tests/redis_migration_tests.rs:92
↓ 3 callers
Function
resign_all_structures
(key: &PKey<Private>, oid: &str)
crate/server/src/core/certificate/oracle_signing.rs:589
↓ 3 callers
Function
resolve_config
Entry point: replace every `secret://` string in `value` using the selected backend. Does nothing when `config.backend` is `None`.
crate/secret_backends/src/lib.rs:141
↓ 3 callers
Method
resolve_enumeration_values
Recursively resolve enumeration variant names to their numeric codes. When a TTLV tree is deserialized from JSON, enumeration values like `"Create"`
crate/kmip/src/ttlv/ttlv_struct.rs:148
↓ 3 callers
Function
resolve_key_lineage
The registered Azure EKM key followed by its Re-Key successors, oldest first. Azure keeps calling the id it registered, but Re-Key gives the replacem
crate/server/src/routes/azure_ekm/handlers.rs:178
↓ 3 callers
Function
resolve_kv_mount
Resolve the KV mount name. An empty value (what a TOML generated from `Default` contains) means the documented default `kv`. Collisions are only an er
crate/server/src/config/params/server_params.rs:1433
↓ 3 callers
Function
resolve_pkcs12_password
The password of a PKCS#12 container designated by `identifier`. KMIP 2.1 §6.1.19: the container is protected by the Secret Data object designated by
crate/server/src/core/operations/export_get.rs:1475
↓ 3 callers
Method
resolve_secrets
Return a copy of this configuration where every `secret://` string is replaced by the value fetched from the backend selected with the `CKMS_SECRET_BA
crate/clients/ckms/src/config.rs:126
↓ 3 callers
Method
resolve_secrets_with
Same as [`Self::resolve_secrets`] with explicit backend settings. # Errors Return an error if a secret cannot be fetched or the resolved TOML is not
crate/clients/ckms/src/config.rs:142
↓ 3 callers
Function
resolve_uid_or_keyset
Resolve a keyset reference in a rekey operation to a concrete UID. This combines [`ObjectHandle::as_keyset_ref`] + [`resolve_keyset_to_single_uid`] i
crate/server/src/core/uid_utils.rs:268
↓ 3 callers
Function
resolve_uids
Resolve an [`ObjectHandle`] to the set of concrete object UIDs it addresses. A `Tags` handle expands to every UID carrying all of the requested tags;
crate/server/src/core/uid_utils.rs:73
↓ 3 callers
Function
response
(body: &'static [u8])
crate/clients/client/src/http_client/client.rs:725
↓ 3 callers
Function
response_header
(request_header: &RequestMessageHeader)
crate/server/src/core/operations/message.rs:331
↓ 3 callers
Function
restart
( owner: &str, kek_uuid: Uuid, sqlite_path: &Path, default_unwrap: bool, )
crate/server/src/tests/hsm/hybrid_kem_dek.rs:191
↓ 3 callers
Function
restricted_writer_url
Swaps the credentials of `base` for the restricted `kms_audit_writer` role (see [`provision_restricted_writer`]), keeping the same scheme, host, port,
crate/server_database/src/stores/audit/pgsql.rs:1905
↓ 3 callers
Function
restrictive_policy_kms
Policy allowing only P-384, RSA 3072/4096 and AES-256: P-256, RSA-2048 and AES-128 are denied, in FIPS and non-FIPS builds alike.
crate/server/src/tests/kmip_policy/routes.rs:48
↓ 3 callers
Method
retrieveFixedFields
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
retrieve_eligible_keys
Retrieve all objects of `object_type` matching the given identifier. Lifecycle-state filtering is left to [`KMS::select_unique_key`], which runs it a
crate/server/src/core/operations/rekey/common.rs:55
↓ 3 callers
Method
retrieve_tags
Retrieve the tags of the object with the given `uid`
crate/server_database/src/stores/redis/redis_with_findex.rs:1184
↓ 3 callers
Function
revoke
(kms: &KMS, owner: &UserId, id: &str)
crate/server/src/tests/revocation_authority_tests.rs:196
↓ 3 callers
Method
revoke
Invalidate `ticket`, issued to `user`, whatever requests it has left.
crate/server/src/core/operations/login.rs:179
↓ 3 callers
Function
revoke_key
Revoke `key_id` (Cessation of Operation) for cleanup.
crate/server/src/tests/ttlv_tests/integrations/vast.rs:231
↓ 3 callers
Function
revoke_key
Revoke a key in the KMS (required before destroy for Active keys).
crate/clients/cng/src/backend.rs:225
↓ 3 callers
Function
revoke_user_decryption_keys
Revoke all the user decryption keys associated with the master secret key
crate/server/src/core/cover_crypt/revoke_user_decryption_keys.rs:17
↓ 3 callers
Function
rewrap_with_client
[`rewrap`], with the client used to reach the original KACLS produced by `connect` (production: `kacls_client`, which enforces the SSRF guard). # Err
crate/server/src/routes/google_cse/operations.rs:1128
↓ 3 callers
Function
root_dir
()
crate/test_kms_server/src/test_server.rs:143
↓ 3 callers
Function
rotation_from_dates
Rebuild the rotation schedule of an HSM key from its `CKA_START_DATE` / `CKA_END_DATE`. `HsmStore::update_object` is a no-op for KMIP attributes, so
crate/interfaces/src/hsm/hsm_store.rs:1278
↓ 3 callers
Function
rsa_aes_key_wrap_sha1_unwrap
Unwrap (decrypt) the given ciphertext using `RSA_AES_KEY_WRAP_SHA_1` This is a two-step unwrapping process: 1. RSA-OAEP with SHA-1 unwraps the ephemer
crate/clients/clap/src/tests/shared/openssl_utils.rs:47
↓ 3 callers
Function
rsa_oaep_params
()
crate/clients/clap/src/actions/bench/helpers.rs:200
↓ 3 callers
Function
rsa_public_blob_from_spki_der
Parse a `SubjectPublicKeyInfo` (SPKI) DER and return a `BCRYPT_RSAKEY_BLOB`. SPKI wraps a PKCS#1 `RSAPublicKey` in an `AlgorithmIdentifier` + BIT STR
crate/clients/cng/src/blob.rs:72
↓ 3 callers
Function
run
Run the scenario and write `cek_switch_timeline.json`, `cek_switch_summary.json` and `cek_switch_samples.csv` to the criterion home.
crate/clients/clap/src/actions/bench/cek_switch.rs:415
↓ 3 callers
Function
run_google
(conf_path: &str, args: &[&str])
crate/clients/ckms/src/tests/google_cmd/gmail_api.rs:29
↓ 3 callers
Function
run_item
Runs a Set Attribute batch item with Undo semantics and returns its undo record.
crate/server/src/core/operations/batch_undo.rs:481
↓ 3 callers
Function
safe_openssl_version_info
()
crate/server/src/openssl_providers.rs:40
↓ 3 callers
Function
sample_event
(id: i64, prev_hash: [u8; 32])
crate/server/src/core/audit/file_sink.rs:428
↓ 3 callers
Function
san_entries
Sorted raw DER of every `GeneralName` in a `SubjectAltName` extension value. Comparing the encoded names avoids any dependence on a parser's `Debug` r
crate/server/src/routes/enrollment.rs:591
↓ 3 callers
Method
save_to
Write the configuration to `path`, readable by its owner only (0600 on Unix). The TOML is written to an owner-only temporary file next to `path`, the
crate/clients/ckms/src/config.rs:87
↓ 3 callers
Function
scrollToY
(i,u,_)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Method
seal
Encrypt a ceremony payload into a sealed record (base64-encoded). Format: base64(IV ‖ ciphertext ‖ GCM-tag) The `role` parameter is used as Addition
crate/server_database/src/ceremony_keys.rs:98
↓ 3 callers
Method
search_one_keyword
Search for a keyword
crate/server_database/src/stores/redis/permissions.rs:179
↓ 3 callers
Function
secret
(refresh_interval: Option<&str>)
crate/clients/k8s/operator/src/controller.rs:414
↓ 3 callers
Function
seed
( database: &InMemoryMigrationBackend, db_version: &str, min_compatible: Option<&str>,
crate/server_database/src/stores/migrate.rs:687
↓ 3 callers
Function
seed_parameters
(path: &Path, parameters: &[(&str, &str)])
crate/server_database/src/tests/sqlite_migration_tests.rs:89
↓ 3 callers
Method
seed_parameters
(&self, parameters: &[(&str, &str)])
crate/server_database/src/tests/sql_migration_tests.rs:97
↓ 3 callers
Function
seed_postgres_sealed_instance
Seeds a fresh instance whose generation 0 ends with a tampered event, reconnects to trigger the automatic seal-and-roll recovery (sealing generation 0
crate/clients/clap/src/actions/audit.rs:2110
↓ 3 callers
Method
serialise
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
serializeRequest
(s={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 3 callers
Function
serialize_deserialize
(object: &T)
crate/kmip/src/ttlv/tests/kmip_2_1_tests.rs:767
↓ 3 callers
Method
serialize_str
(self, v: &str)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:280
↓ 3 callers
Function
server_accepts
Run one server-side TLS handshake with `acceptor` and return whether the *server accepted it.
crate/server/src/socket_server.rs:792
↓ 3 callers
Function
session_pair
The `auth_session=<value>` pair of the `Set-Cookie` header of `resp`.
crate/server/src/routes/ui_auth.rs:1615
↓ 3 callers
Function
session_store_failure
()
crate/server/src/routes/ui_auth.rs:864
↓ 3 callers
Function
set_ckms_conf
Points the provider at `conf` through `CKMS_CONF`; call it before the library is loaded.
crate/clients/clap/src/actions/pkcs11/verify.rs:36
↓ 3 callers
Function
set_claim
Overwrite one claim of a claim set built by [`valid_claims`].
crate/server/src/middlewares/jwt/jwt_token_auth.rs:705
↓ 3 callers
Method
set_cryptographic_usage_mask_bits
Set the bits in `mask` to the attributes's `CryptographicUsageMask` bits.
crate/kmip/src/kmip_2_1/kmip_attributes.rs:726
↓ 3 callers
Function
set_hsm_attribute
(kms: &KMS, uid_str: &str, attribute: Attribute)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:1036
↓ 3 callers
Method
set_key_pair_unique_identifier
( &mut self, private_key_unique_identifier: T, public_key_unique_identifier: T, )
crate/clients/clap/src/actions/console.rs:94
← previous
next →
2,401–2,500 of 16,000, ranked by callers