Scaleway implementation of crypto functionality
Scaleway implementation of crypto functionality
(decrypt-dek client dek)
Given an encrypted DEK, decrypts it using the configured Scaleway encryption key
and returns the unencrypted value (base64 encoded). This value can then be passed
to common/encrypt
and common/decrypt
, in combination with an initialization
vector.
Given an encrypted DEK, decrypts it using the configured Scaleway encryption key and returns the unencrypted value (base64 encoded). This value can then be passed to `common/encrypt` and `common/decrypt`, in combination with an initialization vector.
(generate-dek client)
Generates a new AES256 data encryption key (DEK). Returns a deferred that
contains the generated key and it's encrypted value (for storage). The DEK
should be used to encrypt data, or other encryption keys. The key should
be decoded from base64 before passing it to common/encrypt
.
Generates a new AES256 data encryption key (DEK). Returns a deferred that contains the generated key and it's encrypted value (for storage). The DEK should be used to encrypt data, or other encryption keys. The key should be decoded from base64 before passing it to `common/encrypt`.
(make-client config)
Creates a Scaleway api client using given config
Creates a Scaleway api client using given config
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close