MCPcopy Create free account

hub / github.com/Cosmian/kms / functions

Functions9,687 in github.com/Cosmian/kms

↓ 9 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:1289
↓ 9 callersMethodgenerate_aes_key
Generate an AES key If exportable is set to `false`, the `sensitive` flag is set to true, and the key will not be exportable.
crate/hsm/base_hsm/src/session/aes.rs:21
↓ 9 callersMethodget
Look up a cached object by UID. Returns `Some(owm)` on cache hit, `None` on miss. Uses moka's lock-free concurrent hash table — never blocks concurr
crate/server_database/src/core/object_cache.rs:81
↓ 9 callersFunctionhsm_config_path
(name: &str)
crate/test_kms_server/src/test_server.rs:154
↓ 9 callersMethodid
(&self)
crate/interfaces/src/hsm/interface.rs:146
↓ 9 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:282
↓ 9 callersMethodinvalidate
Invalidate a single entry (called on mutations).
crate/server_database/src/core/object_cache.rs:130
↓ 9 callersFunctionisJSONReferenceLikeElement
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callersFunctionkmip12
()
crate/server/src/tests/ttlv_tests/integrations/synology_dsm.rs:104
↓ 9 callersMethodmessage
( &self, request: cosmian_kms_server_database::reexport::cosmian_kmip::kmip_0::kmip_messages::
crate/server/src/core/kms/kmip.rs:558
↓ 9 callersFunctionml_kem_decapsulate
( private_key_der: &[u8], ciphertext: &[u8], )
crate/crypto/src/crypto/pqc/ml_kem.rs:151
↓ 9 callersMethodobject_get
(&self, uid: &str)
crate/server_database/src/stores/redis/objects_db.rs:242
↓ 9 callersMethodobject_type
(&self)
crate/clients/pkcs11/module/src/core/object.rs:65
↓ 9 callersMethodowner
(&self)
crate/interfaces/src/stores/object_with_metadata.rs:70
↓ 9 callersFunctionprepare_post_params
( info_msg: &str, request: Json<T>, cse_config: Data<Option<GoogleCseConfig>>, )
crate/server/src/routes/google_cse/mod.rs:114
↓ 9 callersFunctionprovision_key
Provision a key using `POST /v1/crypto/keys` and return `(kid, kid_public)`. Both key generation (no material) and key import (material present via `
crate/server/src/tests/jose/jose_vectors.rs:113
↓ 9 callersMethodread
(de: &mut Deserializer)
crate/server_database/src/stores/redis/permissions.rs:112
↓ 9 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:583
↓ 9 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
↓ 9 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/server/src/core/kms/kmip.rs:746
↓ 9 callersFunctionrsa_key_wrap
(slot: &Arc<SlotManager>, digest: RsaOaepDigest)
crate/hsm/base_hsm/src/tests_shared.rs:282
↓ 9 callersMethodserialize_struct
(self, name: &'static str, len: usize)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:514
↓ 9 callersFunctiontest_object
()
crate/server/src/core/operations/key_ops/crypto_op.rs:882
↓ 9 callersMethodtoBaseURI
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callersMethodtokenize
(&self, method: &str, request: &O)
crate/clients/client/src/kms_rest_client.rs:682
↓ 9 callersMethodvalidate
This operation requests the server to validate a certificate chain and return information on its validity. Only a single certificate chain SHALL be in
crate/server/src/core/kms/kmip.rs:722
↓ 9 callersFunctionvalidate_cse_authentication_token
Validate the authentication token and return the calling user See [doc](https://developers.google.com/workspace/cse/guides/encrypt-and-decrypt-data?hl
crate/server/src/routes/google_cse/jwt.rs:253
↓ 9 callersFunctionvisitor_visit
(s,o,{keyMap:i=Qu,...u}={})
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 9 callersFunctionwide_ptr_to_string
Decode a null-terminated UTF-16 wide string from a raw pointer. Enforces a maximum length of 32KB to prevent unbounded reads of malformed pointers.
crate/clients/cng/src/provider.rs:153
↓ 9 callersMethodwith_context
(self, op: O)
crate/clients/client/src/error/result.rs:24
↓ 9 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:98
↓ 9 callersFunctionwrite_bytes_to_file
Write all bytes to a file # Errors If the file cannot be opened or written, an error is returned.
crate/clients/client/src/file_utils.rs:68
↓ 8 callersFunctionZf
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionaes_cryptographic_parameters
()
crate/test_kms_server/benches/symmetric_benches.rs:69
↓ 8 callersFunctionaes_gcm_encrypt
(slot: &Arc<SlotManager>)
crate/hsm/base_hsm/src/tests_shared.rs:372
↓ 8 callersFunctionassert_constraint_violation
(err: KmsError)
crate/server/src/tests/kmip_policy/helpers.rs:107
↓ 8 callersFunctionassert_key_usage_contains
(x509: &X509, usage: &str)
crate/test_kms_server/src/certify_tests.rs:167
↓ 8 callersFunctionbuild_google_cse_url
Builds the full Google CSE KACLS URL using the base KMS public URL. This function constructs a URL like `https://<kms_public_url>/google_cse` by retr
crate/server/src/routes/google_cse/mod.rs:77
↓ 8 callersMethodbytes
(&self)
crate/clients/client/src/http_client/client.rs:269
↓ 8 callersMethodcall_get_attributes
( &self, key_handle: CK_OBJECT_HANDLE, template: &mut [CK_ATTRIBUTE], )
crate/hsm/base_hsm/src/session/session_impl.rs:1593
↓ 8 callersFunctioncloneShallow
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctioncreateRsaKeyPair
(page: Page)
ui/tests/e2e/helpers.ts:333
↓ 8 callersFunctioncreate_aes_256_key
Create an AES-256 symmetric key and return its `UniqueIdentifier`.
crate/server/src/tests/ttlv_tests/integrations/vast.rs:76
↓ 8 callersFunctioncreate_approved_ecc_key_pair
( vendor_id: &str, private_key_uid: &str, public_key_uid: &str, curve: RecommendedCurve, c
crate/crypto/src/crypto/elliptic_curves/operation.rs:458
↓ 8 callersFunctioncreate_pqc_key_pair_request
Build a `CreateKeyPair` request for a post-quantum algorithm (ML-KEM or ML-DSA).
crate/kmip/src/kmip_2_1/requests/create_key_pair.rs:249
↓ 8 callersFunctiondecrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/rsa/encrypt_decrypt.rs:78
↓ 8 callersMethoddeserialize_any
(self, visitor: V)
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:135
↓ 8 callersMethoddeserialize_struct
( self, name: &'static str, fields: &'static [&'static str], visitor: V, )
crate/kmip/src/ttlv/kmip_ttlv_deserializer/deserializer.rs:915
↓ 8 callersFunctionencrypt
( cli_conf_path: &str, input_files: &[&str], public_key_id: &str, encryption_algorithm: RsaEnc
crate/clients/ckms/src/tests/rsa/encrypt_decrypt.rs:26
↓ 8 callersMethodencrypt
( &self, tweak: &[u8], x: &NS, )
crate/crypto/src/crypto/fpe/ff1.rs:358
↓ 8 callersFunctiones_evaluate
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionexport_certificate
( cli_conf_path: &str, certificate_id: &str, certificate_file: &str, certificate_format: Optio
crate/clients/ckms/src/tests/certificates/export.rs:383
↓ 8 callersFunctionexport_request
( object_id_or_tags: &str, unwrap: bool, wrapping_key_id: Option<&str>, key_format_type: Optio
crate/clients/client_utils/src/export_utils.rs:220
↓ 8 callersFunctionextractUuidAfterLabel
(text: string, label: string)
ui/tests/e2e/helpers.ts:27
↓ 8 callersMethodfind_due_for_rotation
Find all Active objects that have a `rotate_interval > 0` and whose next rotation instant is ≤ `now`. Returns `(uid, owner)` pairs.
crate/server_database/src/core/database_objects.rs:480
↓ 8 callersMethodget
(&self, attribute_type: AttributeType)
crate/clients/pkcs11/module/src/core/attribute.rs:407
↓ 8 callersFunctionget_jwks_response
Helper function: call `GET /.well-known/jwks.json` and return the raw `ServiceResponse`.
crate/server/src/tests/jwks_endpoint.rs:23
↓ 8 callersFunctionimport_root_and_intermediate
( owner_client_conf_path: &str, )
crate/clients/ckms/src/tests/certificates/certify.rs:140
↓ 8 callersMethodinfo
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionisIndexed
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersMethodis_wrapped
(&self)
crate/kmip/src/kmip_2_1/kmip_objects.rs:449
↓ 8 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/server/src/core/kms/kmip.rs:495
↓ 8 callersFunctionmake_state
(with_token_secret: bool)
crate/clients/k8s/operator/src/webhook.rs:323
↓ 8 callersFunctionml_kem_encapsulate
(public_key_der: &[u8])
crate/crypto/src/crypto/pqc/ml_kem.rs:51
↓ 8 callersFunctionobjMap
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionpipe
(s,o)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersMethodpkcs_der_bytes
Return the PKCS#1 or PKCS#8 or PKCS#12 DER bytes of a key
crate/kmip/src/kmip_2_1/kmip_data_structures.rs:371
↓ 8 callersMethodprint
intentional: CLI output to stdout
crate/clients/clap/src/actions/tokenize/mod.rs:34
↓ 8 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:101
↓ 8 callersMethodregister
(s,o=!0)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionresolve_plaintext
Resolve the plaintext for a request: either literal `data_plaintext` or generated via `data_plaintext_generator`.
crate/server/src/tests/jose/jose_vectors.rs:84
↓ 8 callersFunctionrfc5649_unwrap
(ciphertext: &[u8], kek: &[u8])
crate/crypto/src/crypto/symmetric/rfc5649.rs:85
↓ 8 callersMethodserialize_field
(&mut self, value: &T)
crate/kmip/src/ttlv/kmip_ttlv_serializer.rs:643
↓ 8 callersFunctionsetup_observing_metrics
()
crate/server/src/core/otel_metrics.rs:645
↓ 8 callersFunctionsetup_openssl_fips_provider
Helper to load FIPS provider before each test (if needed)
crate/crypto/src/crypto/symmetric/rfc5649.rs:128
↓ 8 callersFunctionstart_test_server_with_patch
Start a test server from a TOML config file, applying a runtime patch to the config. Use this when you need to inject runtime-determined values (e.g.
crate/test_kms_server/src/test_server.rs:1250
↓ 8 callersMethodto_cryptographic_parameters
(self, hash_fn: HashFn)
crate/clients/client_utils/src/rsa_utils.rs:22
↓ 8 callersMethodto_security_status
(&self)
crate/clients/cng/src/error.rs:75
↓ 8 callersMethodtrack
(&mut self, id: impl Into<String>)
crate/test_kms_server/src/certify_tests.rs:34
↓ 8 callersFunctionuploadFile
(page: Page, filePath: string)
ui/tests/e2e/helpers.ts:407
↓ 8 callersFunctionuriToPointer
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionuseIsExpanded
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersFunctionuseIsExpandedDeeply
()
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 8 callersMethodverify
( &self, _algorithm: &SignatureAlgorithm, _data: &[u8], _signature: &[u8],
crate/clients/pkcs11/module/src/tests.rs:841
↓ 8 callersFunctionwrap_and_cache
Wrap the object using a wrapping key from the database or HSM, then cache the unwrapped copy.
crate/server/src/core/wrapping/wrap.rs:27
↓ 8 callersFunctionwrap_object
Wrap an Object with a wrapping key The wrapping key is fetched from the database The key is wrapped using the wrapping key # Arguments `object` - the
crate/server/src/core/wrapping/wrap.rs:140
↓ 7 callersFunctionVb
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctionXi
(s,o,i,u)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersMethodadd
Add a permission to the user on an object
crate/server_database/src/stores/redis/permissions.rs:224
↓ 7 callersMethodalphabet_len
(&self)
crate/crypto/src/crypto/fpe/alphabet.rs:211
↓ 7 callersFunctionassertNotInfinite
(s)
crate/server/documentation/swagger-ui/swagger-ui-bundle.js:2
↓ 7 callersFunctioncache
(max_age: Duration)
crate/server_database/src/core/object_cache.rs:172
↓ 7 callersFunctionckm_rsa_pkcs_oaep_key_unwrap
Key Unwrap using `CKM_RSA_PKCS_OAEP` a.k.a PKCS #1 RSA OAEP as specified in PKCS#11 v2.40 available at <http://docs.oasis-open.org/pkcs11/pkcs11-curr
crate/crypto/src/crypto/rsa/ckm_rsa_pkcs_oaep.rs:136
↓ 7 callersFunctioncleanup_temp
(path: &PathBuf)
crate/server/src/config/command_line/clap_config.rs:788
↓ 7 callersFunctioncreate_rsa_key_pair_rest
Generate an RSA key pair via `POST /v1/crypto/keys` and return `(kid_private, kid_public)`. Uses the REST endpoint (dogfoods `/v1/crypto/keys`) rathe
crate/server/src/tests/jose/common.rs:195
↓ 7 callersFunctioncreate_secret_data
( cli_conf_path: &str, action: &CreateSecretDataAction, )
crate/clients/ckms/src/tests/secret_data/create_secret.rs:16
↓ 7 callersFunctioncriterion_home
()
crate/clients/clap/src/actions/bench/output.rs:90
↓ 7 callersFunctiondecrypt
Decrypt a file using the given private key
crate/clients/ckms/src/tests/cover_crypt/encrypt_decrypt.rs:54
↓ 7 callersMethoddelete
Delete an object from the database.
crate/server_database/src/core/database_objects.rs:397
↓ 7 callersFunctionderive_key
Run `ckms derive-key` via the CLI and return the derived key unique identifier
crate/clients/ckms/src/tests/derive_key/derive_key_tests.rs:36
← previousnext →401–500 of 9,687, ranked by callers