Private functions used by lock-key.core. Do not reference this namespace outside lock-key.core as these fns are subject to change.
Private functions used by lock-key.core. Do not reference this namespace outside lock-key.core as these fns are subject to change.
(byte-array? object)
Tests if a value is a byte[]. Returns true/false
object - the object to test
Tests if a value is a byte[]. Returns true/false object - the object to test
(get-cipher mode seed iv-bytes)
Returns an AES/CBC/PKCS5Padding Cipher which can be used to encrypt or decrypt a byte[], depending on the mode of the Cipher.
mode - (int) see https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html for available modes. Typically this will be either Cipher/ENCRYPT_MODE or Cipher/DECRYPT_MODE. seed - (String) the encryption seed / secret iv-bytes - (byte[]) the initialization vector
Returns an AES/CBC/PKCS5Padding Cipher which can be used to encrypt or decrypt a byte[], depending on the mode of the Cipher. mode - (int) see https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html for available modes. Typically this will be either Cipher/ENCRYPT_MODE or Cipher/DECRYPT_MODE. seed - (String) the encryption seed / secret iv-bytes - (byte[]) the initialization vector
(get-iv-bytes)
Initializes and returns a random initialization vector byte[]
Initializes and returns a random initialization vector byte[]
(get-raw-key seed)
Returns an AES SecretKey encoded as a byte[]
seed - (String)the seed to initialize the key with
Returns an AES SecretKey encoded as a byte[] seed - (String)the seed to initialize the key with
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close