Liking cljdoc? Tell your friends :D

crypto-gost.encrypt


decrypt-3412-cfbclj

(decrypt-3412-cfb k iv encrypted-data)

decrypt encrypted-data as bytes array in CFB mode using given key (32 bytes array) and iv (16 bytes array). Decryption algorithm is GOST 3412-2015. return decrypted plain text as bytes array.

decrypt encrypted-data as bytes array in CFB mode using given key (32 bytes array) and iv (16 bytes array).
Decryption algorithm is GOST 3412-2015.
return decrypted plain text as bytes array.
sourceraw docstring

decrypt-3412-str-cfbclj

(decrypt-3412-str-cfb k iv enc-text-hex)

decrypt ^String enc-text-hex in CFB mode using given key (32 bytes array) and iv (16 bytes array). Decryption algorithm is GOST 3412-2015. return plain text as String.

decrypt ^String enc-text-hex in CFB mode using given key (32 bytes array) and iv (16 bytes array).
Decryption algorithm is GOST 3412-2015.
return plain text as String.
sourceraw docstring

decrypt-3412-stream-cfbclj

(decrypt-3412-stream-cfb k iv input output)

decrypt given streaming input in CFB mode and write plain data to streaming output. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream and auto closed after. output should be File, URI, URL, Socket, byte array, or filename as String which will be coerced to BuffereOutputStream and auto closed after. Decryption algorithm is GOST 3412-2015. iv must be 16 bytes array. return nil.

decrypt given streaming input in CFB mode and write plain data to streaming output.
As input may be:  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BufferedInputStream and auto closed after.
output should be  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BuffereOutputStream and auto closed after.
Decryption algorithm is GOST 3412-2015.
iv must be 16 bytes array.
return nil.
sourceraw docstring

decrypt-cfbclj

(decrypt-cfb k iv encrypted-data)

decrypt encrypted-data as bytes array in CFB mode using given key (32 bytes array) and iv (8 bytes array). Decryption algorithm is GOST 28147-89. return decrypted plain text as bytes array.

decrypt encrypted-data as bytes array in CFB mode using given key (32 bytes array) and iv (8 bytes array).
Decryption algorithm is GOST 28147-89.
return decrypted plain text as bytes array.
sourceraw docstring

decrypt-str-cfbclj

(decrypt-str-cfb k iv enc-text-hex)

decrypt ^String enc-text-hex in CFB mode using given key (32 bytes array) and iv (8 bytes array). Decryption algorithm is GOST 28147-89. return plain text as String.

decrypt ^String enc-text-hex in CFB mode using given key (32 bytes array) and iv (8 bytes array).
Decryption algorithm is GOST 28147-89.
return plain text as String.
sourceraw docstring

decrypt-stream-cfbclj

(decrypt-stream-cfb k iv input output)

decrypt given streaming input in CFB mode and write plain data to streaming output. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream and auto closed after. output should be File, URI, URL, Socket, byte array, or filename as String which will be coerced to BuffereOutputStream and auto closed after. Decryption algorithm is GOST 28147-89. iv must be 8 bytes array. return nil.

decrypt given streaming input in CFB mode and write plain data to streaming output.
As input may be:  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BufferedInputStream and auto closed after.
output should be  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BuffereOutputStream and auto closed after.
Decryption algorithm is GOST 28147-89.
iv must be 8 bytes array.
return nil.
sourceraw docstring

encrypt-3412-cfbclj

(encrypt-3412-cfb k iv plain-data)

encrypt plain-data as bytes array in CFB mode using given key (32 bytes array) and iv (16 bytes array). Encryption algorithm is GOST 3412-2015. return encrypted text as bytes array.

encrypt plain-data as bytes array in CFB mode using given key (32 bytes array) and iv (16 bytes array).
Encryption algorithm is GOST 3412-2015.
return encrypted text as bytes array.
sourceraw docstring

encrypt-3412-str-cfbclj

(encrypt-3412-str-cfb k iv s)

encrypt String in CFB mode using given key (32 bytes array) and iv (16 bytes array). Encryption algorithm is GOST 3412-2015. return encrypted text as String in hex.

encrypt String  in CFB mode using given key (32 bytes array) and iv (16 bytes array).
Encryption algorithm is GOST 3412-2015.
return encrypted text as String in hex.
sourceraw docstring

encrypt-3412-stream-cfbclj

(encrypt-3412-stream-cfb k iv input output)

encrypt given streaming input in CFB mode and write encrypted data to streaming output. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream and auto closed after. output should be File, URI, URL, Socket, byte array, or filename as String which will be coerced to BuffereOutputStream and auto closed after. Encryption algorithm is GOST 3412-2015. iv must be 16 bytes array. return nil.

encrypt given streaming input in CFB mode and write encrypted data to streaming output.
As input may be:  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BufferedInputStream and auto closed after.
output should be  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BuffereOutputStream and auto closed after.
Encryption algorithm is GOST 3412-2015.
iv must be 16 bytes array.
return nil.
sourceraw docstring

encrypt-cfbclj

(encrypt-cfb k iv plain-data)

encrypt plain-data as bytes array in CFB mode using given key (32 bytes array) and iv (8 bytes array). Encryption algorithm is GOST 28147-89. return encrypted text as bytes array.

encrypt plain-data as bytes array in CFB mode using given key (32 bytes array) and iv (8 bytes array).
Encryption algorithm is GOST 28147-89.
return encrypted text as bytes array.
sourceraw docstring

encrypt-str-cfbclj

(encrypt-str-cfb k iv s)

encrypt String in CFB mode using given key (32 bytes array) and iv (8 bytes array). Encryption algorithm is GOST 28147-89. return encrypted text as String in hex.

encrypt String  in CFB mode using given key (32 bytes array) and iv (8 bytes array).
Encryption algorithm is GOST 28147-89.
return encrypted text as String in hex.
sourceraw docstring

encrypt-stream-cfbclj

(encrypt-stream-cfb k iv input output)

encrypt given streaming input in CFB mode and write encrypted data to streaming output. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream and auto closed after. output should be File, URI, URL, Socket, byte array, or filename as String which will be coerced to BuffereOutputStream and auto closed after. Encryption algorithm is GOST 28147-89. iv must be 8 bytes array. return nil.

encrypt given streaming input in CFB mode and write encrypted data to streaming output.
As input may be:  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BufferedInputStream and auto closed after.
output should be  File, URI, URL, Socket, byte array, or filename as String  which  will be
coerced to BuffereOutputStream and auto closed after.
Encryption algorithm is GOST 28147-89.
iv must be 8 bytes array.
return nil.
sourceraw docstring

gen-secret-keyclj

(gen-secret-key)

generate secret key for GOST 28147-89 using SecureRandom class return 32 bytes array of secret key

generate secret key for GOST 28147-89 using SecureRandom class
return 32 bytes array of secret key
sourceraw docstring

gen-secret-key-from-pwdclj

(gen-secret-key-from-pwd password)

generate secret key from password using PKCS12 return bytes array 32 bytes with secret key.

generate secret key from password using PKCS12
return bytes array 32 bytes with secret key.
sourceraw docstring

mac-3412-genclj

(mac-3412-gen k plain-data)

generate MAC GOST 3412-2015 for plain-data (bytes array) using given key (32 bytes array) return 16 bytes array with MAC.

generate MAC GOST 3412-2015 for plain-data (bytes array) using given key (32 bytes array)
return 16 bytes array with MAC.
sourceraw docstring

mac-genclj

(mac-gen k plain-data)

generate MAC GOST 28147-89 for plain-data (bytes array) using given key (32 bytes array) return 4 bytes array with MAC.

generate MAC GOST 28147-89 for plain-data (bytes array) using given key (32 bytes array)
return 4 bytes array with MAC.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close