MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions16,000 in github.com/Cosmian/kms

↓ 5 callersFunctiondefault_path_exists
()
crate/server/src/config/command_line/clap_config.rs:1116
↓ 5 callersFunctiondependency
( name: impl Into<Cow<'static, str>>, start: Instant, check: Result<(), String>, )
crate/server/src/routes/health.rs:125
↓ 5 callersFunctionder_error
(what: &str, e: impl std::fmt::Display)
crate/server/src/core/certificate/oracle_signing.rs:272
↓ 5 callersMethoddeserialize_i32
(self, visitor: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/offset_date_time_deserializer.rs:80
↓ 5 callersFunctiondestroy
Destroy a cryptographic object on the KMS # Arguments `kms_rest_client` - The KMS client `uid` - The object id `remove` - If the object should be remo
crate/clients/clap/src/actions/shared/utils/destroy_utils.rs:68
↓ 5 callersFunctiondigest
( req_http: HttpRequest, request: Json<DigestRequest>, cse_config: Data<Option<GoogleCseConfig>>,
crate/server/src/routes/google_cse/mod.rs:138
↓ 5 callersFunctiondispatch
Dispatch operation depending on the TTLV tag
crate/server/src/core/operations/dispatch.rs:171
↓ 5 callersFunctiondispatchPluginsSync
(s,o,i={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctiondispatch_renewal_warnings
Check keys approaching rotation and emit renewal-warning log events. For each Active key whose next rotation falls within the next [`WARNING_THRESHOL
crate/server/src/core/operations/auto_rotate.rs:276
↓ 5 callersFunctione
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionecdh_key_agreement
Perform a NIST-curve (P-256/P-384/P-521) ECDH key agreement and return the shared secret. `private_key_scalar` is the raw big-endian private scalar `
crate/crypto/src/crypto/elliptic_curves/operation.rs:380
↓ 5 callersFunctionecies_encrypt
Encrypt `plaintext` data using `pubkey` public key following ECIES. When using Curve25519 (X25519 or Ed25519 which is converted to X25519), `SalsaSea
crate/crypto/src/crypto/elliptic_curves/ecies/mod.rs:28
↓ 5 callersFunctionempty_database
URL of the test database, flushed.
crate/server_database/src/tests/redis_kdf_salt_tests.rs:27
↓ 5 callersFunctionencrypt
(kms: &KMS, user: &str, uid: &str)
crate/server/src/tests/hsm/fake_hsm_authz.rs:480
↓ 5 callersFunctionencrypt_dek
Encrypt `DEK` with the public part of `rsa`, the way a Google client does.
crate/server/src/tests/google_cse/crypto_paths.rs:346
↓ 5 callersFunctionencrypt_fpe
( key: &[u8], data: &[u8], additional_data: Option<&[u8]>, tweak: Option<&[u8]>, )
crate/crypto/src/crypto/fpe/kmip_fpe.rs:189
↓ 5 callersMethodencrypt_message_aes_gcm
Encrypt `plaintext` under `key_handle` using AES-GCM as a PKCS#11 v3.0 "message" operation (`C_MessageEncryptInit`/`C_EncryptMessage`/`C_MessageEncryp
crate/hsm/base_hsm/src/session/message_aead.rs:81
↓ 5 callersMethodend_message_context
Closes the family's open context, if any. A failing final is only logged: the next init surfaces a truly stuck operation as `CKR_OPERATION_ACTIVE`.
crate/hsm/base_hsm/src/session/message_context.rs:207
↓ 5 callersMethodend_message_operations
Closes both message contexts; no FFI call when nothing is open.
crate/hsm/base_hsm/src/session/message_context.rs:234
↓ 5 callersMethodensure_live_session
Fail closed unless the Auth Verifier session of `token` is still live. Call only once the token signature is verified, so that unauthenticated caller
crate/server/src/middlewares/auth_verifier/session.rs:91
↓ 5 callersFunctionenvelope_for_recipient
Encrypt `plaintext` into a CMS `EnvelopedData` addressed to `recipient`, using AES-128-CBC (RFC 8894 §3.5.2 `AES` capability). An RSA recipient gets R
crate/crypto/src/openssl/scep_cms.rs:150
↓ 5 callersFunctioneq
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionextension_action
A `create` action using a fresh CSE key and an issuer, ready to certify with `ext_leaf.cnf`.
crate/clients/clap/src/tests/google_cmd/key_pairs.rs:270
↓ 5 callersMethodextract_idp_configs
Parse this configuration into one identity provider configuration per JWT authentication provider. Each provider configuration string is parsed in th
crate/server/src/config/command_line/idp_auth_config.rs:77
↓ 5 callersFunctionextract_sigv4_request_timestamp
(request: &http::Request<B>)
crate/server/src/routes/aws_xks/sigv4_middleware.rs:304
↓ 5 callersFunctionfetch_certificate
Fetch a certificate and return its Object, attributes and DER bytes
crate/clients/ckms/src/tests/certificates/certify.rs:294
↓ 5 callersMethodfind_by_rotate_name_uncached
Same as [`Self::find_by_rotate_name`], but always queries the object stores, bypassing (and not populating) the [`crate::core::RotateNameCache`].
crate/server_database/src/core/database_objects.rs:855
↓ 5 callersFunctionfind_owned_symmetric_versions
Return every version of the symmetric transit key `name` **owned by** `user`, sorted by ascending version. Ownership is required for the same key-sub
crate/server/src/routes/spire/transit_encryption.rs:220
↓ 5 callersFunctionfind_owned_transit_key
Find the transit key named `name` **owned by** `user`. Ownership is required (`user_must_be_owner = true`): a key another user tagged `vault_transit:
crate/server/src/routes/spire/transit.rs:336
↓ 5 callersMethodflush
(&mut self)
crate/clients/cng/src/key.rs:518
↓ 5 callersFunctionformatProdErrorMessage
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctiongcm_encrypt
(uid: &str, data: &[u8])
crate/server/src/core/operations/decrypt.rs:1346
↓ 5 callersFunctiongcm_key
(kms: &KMS, user: &UserId)
crate/server/src/core/operations/decrypt.rs:1329
↓ 5 callersMethodgcm_stream_cipher_generated_iv
Stream cipher for an AES-GCM encryption whose IV is generated by the OpenSSL provider. # Errors Fails if this is not an AES-GCM cipher or the key len
crate/crypto/src/crypto/symmetric/symmetric_ciphers.rs:566
↓ 5 callersFunctiongenerate_self_signed_pki
Generate a complete self-signed PKI (CA + server cert + client cert) and write PEM files. Returns [`CertPaths`] with the paths of the generated files
crate/server/src/config/wizard/cert_gen.rs:238
↓ 5 callersFunctiongetLanguage
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctiongetMimeType
(fileName: string)
ui/src/utils/utils.ts:303
↓ 5 callersMethodgetType
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionget_attributes
(kms: &Arc<KMS>, uid: &str, tag: Tag)
crate/server/src/tests/test_set_attribute.rs:64
↓ 5 callersFunctionget_cached_crl
Retrieve the most recently cached CRL DER bytes for an issuer. Called by the public CRL endpoint (`GET /public/certificates/{issuer_id}/crl`). Cache
crate/server/src/core/operations/generate_crl.rs:106
↓ 5 callersMethodget_crl
Retrieve the persisted CRL DER bytes and generation timestamp for `issuer_id`.
crate/server_database/src/core/database_permissions.rs:168
↓ 5 callersMethodget_db_version
(&self)
crate/server_database/src/stores/migrate.rs:254
↓ 5 callersFunctionget_default_config_path
()
crate/server/src/config/command_line/clap_config.rs:45
↓ 5 callersFunctionget_ec_private_key_request
(uid: &str)
crate/kmip/src/kmip_2_1/requests/get.rs:25
↓ 5 callersMethodget_key_metadata
Get the metadata for a key
crate/hsm/base_hsm/src/session/session_impl.rs:3896
↓ 5 callersFunctionget_kms_object
( kms_client: &KmsClient, object_id_or_tags: &str, key_format_type: KeyFormatType, )
crate/clients/pkcs11/provider/src/kms_object.rs:430
↓ 5 callersFunctionget_slot
(hsm: &BaseHsm<P>, cfg: &HsmTestConfig)
crate/hsm/base_hsm/src/tests_shared.rs:124
↓ 5 callersMethodget_slot
Get a slot If a slot has already been opened, returns the opened slot. To close a slot before re-opening it with another password, call `close_slot()`
crate/hsm/base_hsm/src/base_hsm.rs:190
↓ 5 callersFunctionget_subject
Determine the subject of the issued certificate. The subject can be recovered from different sources: - a public key and a subject name - a certificat
crate/server/src/core/operations/certify/resolve_subject.rs:231
↓ 5 callersFunctiongotoUntilVisible
* Navigate to `path` and wait for `ready` to become visible, reloading up to * `attempts` times when it does not. * * The SPA shows no form when it
ui/tests/e2e/helpers.ts:61
↓ 5 callersFunctionhas_all_keywords
`true` if the stored object still carries every keyword in `keywords`. Used to discard stale Findex hits (the index is written after the object, see `
crate/server_database/src/stores/redis/redis_with_findex.rs:354
↓ 5 callersFunctionhybrid_kem_decapsulate
Hybrid KEM decapsulation: recovers the shared secret from a ciphertext. `algorithm` identifies the hybrid KEM variant. `private_key_raw` should be ra
crate/crypto/src/crypto/pqc/hybrid_kem.rs:72
↓ 5 callersFunctionimport_as
`Import` the object as `user`, with the requested `key_wrap_type`.
crate/server/src/tests/hsm/fake_hsm_authz.rs:429
↓ 5 callersFunctionimport_google_cse_demo_key_and_grant
(ctx: &TestsContext)
crate/clients/clap/src/tests/google_cmd/using_hsm.rs:99
↓ 5 callersFunctionimport_root_and_intermediate
( ctx: &TestsContext, )
crate/clients/clap/src/tests/certificates/certify.rs:11
↓ 5 callersFunctioninit_openssl_providers
Initialize OpenSSL providers for production KMS server. For FIPS mode: loads the FIPS provider. For non-FIPS mode with OpenSSL >= 3.0: loads the lega
crate/server/src/openssl_providers.rs:462
↓ 5 callersFunctioninstantiate_db
The ONLY place that calls `Database::instantiate` (its signature changes upstream).
crate/server_database/src/core/database_objects.rs:2214
↓ 5 callersMethodinvalidate_name
Invalidate every cached entry for keyset `name`, for all owners and all generation filters. Called after a rotation (rekey) so the next resolution se
crate/server_database/src/core/rotate_name_cache.rs:180
↓ 5 callersFunctioninvariant
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionis
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionis_mechanism_unsupported_rv
Returns whether a PKCS#11 return code means a mechanism is unsupported.
crate/hsm/base_hsm/src/session/session_impl.rs:287
↓ 5 callersMethodis_multi_part
Whether this request belongs to a multi-part operation.
crate/server/src/core/operations/key_ops/multi_part.rs:110
↓ 5 callersMethodkey_bytes_and_attributes
Extract the Key bytes from the given `KeyBlock` and give an optional reference to `Attributes` Returns an error if there is no valid key material
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:478
↓ 5 callersFunctionkmip_error_response_fields
Maps internal operation failures to the KMIP result reason and message returned to clients.
crate/server/src/core/operations/message.rs:55
↓ 5 callersFunctionkmip_request
(module, operation)
ansible/plugins/module_utils/kms_api.py:114
↓ 5 callersFunctionkms_with_officers
(officers: &[&str])
crate/server/src/routes/ssh/mod.rs:460
↓ 5 callersMethodlist_cluster_nodes
List cluster nodes whose heartbeat is newer than `minimum_heartbeat`.
crate/server_database/src/core/mod.rs:418
↓ 5 callersFunctionlist_jwks_uri
(url_whitelist: Option<Vec<String>>)
crate/server/src/routes/google_cse/jwt.rs:55
↓ 5 callersMethodlist_user_permissions
List all the permissions granted to a user per object uid Also includes permissions granted to the wildcard user `*` (unless `user_id` itself is the
crate/server_database/src/stores/redis/permissions.rs:194
↓ 5 callersFunctionload_ca_chain
Load the CA certificate `ca_uid` followed by its issuers, up to the root.
crate/server/src/routes/enrollment.rs:245
↓ 5 callersFunctionlocate
( cli_conf_path: &str, tags: Option<&[&str]>, algorithm: Option<&str>, cryptographic_length: O
crate/clients/ckms/src/tests/shared/locate.rs:32
↓ 5 callersFunctionlookup_enum_code
(name: &str)
crate/kmip/src/ttlv/enum_lookup.rs:21
↓ 5 callersFunctionmac_with
(kms: &KMS, uid_str: &str)
crate/server/src/tests/hsm/fake_hsm_rotation.rs:988
↓ 5 callersFunctionmakeList
(s,o,i,u,_,w,x)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionmake_cache_with_user
(entity: &str)
crate/server/src/middlewares/spire_token.rs:471
↓ 5 callersFunctionmask_db_url_password
Mask the password component of a database connection URL before logging. Uses [`url::Url::parse`] for standard single-host URLs; falls back to a simp
crate/server/src/config/command_line/db.rs:26
↓ 5 callersMethodmatches
(&self, algo: &str, key_size_or_curve: Option<&str>)
crate/clients/clap/src/actions/bench/types.rs:88
↓ 5 callersFunctionmeta_body
()
crate/server/src/tests/azure_ekm/routes_tests.rs:111
↓ 5 callersFunctionminimal_config
Build a minimal [`ClapConfig`] that uses a `SQLite` database in `tmp_dir`.
crate/server/src/config/params/server_params.rs:1855
↓ 5 callersFunctionnow_and_expiry
()
crate/server/src/tests/google_cse/utils.rs:142
↓ 5 callersMethodobject_get
(&self, uid: &str)
crate/server_database/src/stores/redis/objects_db.rs:317
↓ 5 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:309
↓ 5 callersFunctionoffline_client
Client that never reaches a server (port 1 is closed).
crate/clients/cng/src/key.rs:491
↓ 5 callersMethodopenNode
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 5 callersFunctionopenpgp_key_metadata
`(algorithm, cryptographic_length_bits, pgp_key_version)` read from the primary key packet. `algorithm` is `CryptographicAlgorithm::RSA` or `Cryptogra
crate/crypto/src/crypto/openpgp/mod.rs:644
↓ 5 callersFunctionopenpgp_public_from_secret
Strips secret material; input MUST be a secret key, output is an armored TPK.
crate/crypto/src/crypto/openpgp/mod.rs:632
↓ 5 callersFunctionopenpgp_sign_detached
Binary detached signature over `data`, made with the primary key.
crate/crypto/src/crypto/openpgp/mod.rs:800
↓ 5 callersMethodother
(self)
crate/hsm/base_hsm/src/session/message_context.rs:39
↓ 5 callersFunctionparse_secret_key
Helper to parse a secret key specifically from armored or binary bytes.
crate/crypto/src/crypto/openpgp/mod.rs:623
↓ 5 callersFunctionparse_sigv4_header_timestamp
(timestamp: &str)
crate/server/src/routes/aws_xks/sigv4_middleware.rs:336
↓ 5 callersMethodpersist
Durably persists `drafts` (in order) and returns `true` only if every one was written (file `fsync` / PostgreSQL commit) — the fail-closed write-ahead
crate/server/src/core/audit/store.rs:296
↓ 5 callersFunctionpki
()
crate/crypto/src/openssl/tsa.rs:464
↓ 5 callersFunctionpost_tags
POST tags to a key; returns the parsed response body.
crate/server/src/tests/jose/tags.rs:40
↓ 5 callersFunctionpqc_private_key_pkcs8_to_raw
Convert a PQC private key from PKCS#8 DER to raw bytes. Completely safe implementation using native `openssl::pkey::PKey` methods (Issue #894).
crate/crypto/src/crypto/pqc/mod.rs:356
↓ 5 callersFunctionpqc_public_key_spki_to_raw
Convert a PQC public key from SPKI DER to raw bytes. Completely safe implementation using native `openssl::pkey::PKey` methods (Issue #894).
crate/crypto/src/crypto/pqc/mod.rs:373
↓ 5 callersFunctionprepare_kms_server
Prepare the server for the application. Creates an `HttpServer` instance, configures the routes for the application, and sets the request timeout. Th
crate/server/src/start_kms_server.rs:1010
↓ 5 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:254
↓ 5 callersFunctionpublic_endpoints
`GET /health` and `GET /version`: public (no authentication), and read by the Web UI from the browser. When the UI is served from another origin (deve
crate/server/src/start_kms_server.rs:2367
↓ 5 callersFunctionpublic_jwk
`{"kty":"RSA","kid":…,"n":…,"e":…,"key_ops":…}` for the public half of `rsa`.
crate/server/src/tests/jose/cek_kid.rs:44
↓ 5 callersFunctionpush_op
Push a prepared optional op, or skip it with a notice when it cannot be serialized.
crate/clients/clap/src/actions/bench/load.rs:282
← previousnext →1,301–1,400 of 16,000, ranked by callers