GOST digest (hashing) functions
GOST digest (hashing) functions
(-gost-3411)
(-gost-3411 s-box)
Returns GOST3411Digest class initialized with given S-box. By default, CryptoPro S-box params is used.
Returns GOST3411Digest class initialized with given S-box. By default, CryptoPro S-box params is used.
(digest-2012-256 input & {:keys [close-streams?] :or {close-streams? true}})
Calculate digest GOST3411-2012-256 for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 256 bit byte array.
Calculate digest GOST3411-2012-256 for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 256 bit byte array.
(digest-2012-512 input & {:keys [close-streams?] :or {close-streams? true}})
Calculate digest GOST3411-2012-512 for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 512 bit byte array.
Calculate digest GOST3411-2012-512 for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 512 bit byte array.
(digest-3411-94 input & {:keys [close-streams?] :or {close-streams? true}})
Calculate digest GOST3411-94 for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 256 bit byte array.
Calculate digest GOST3411-94 for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 256 bit byte array.
(digest-stream input
&
{:keys [close-streams? digest-class]
:or {close-streams? true
digest-class (GOST3411_2012_256Digest.)}})
Calculate digest for input stream.
By default, GOST3411_2012_256Digest engine is used. See digest-classes-map
for available digest engines.
As input may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream and auto closed after.
Returns byte array with calculated digest.
Calculate digest for input stream. By default, GOST3411_2012_256Digest engine is used. See `digest-classes-map` for available digest engines. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream and auto closed after. Returns byte array with calculated digest.
(hmac-2012-256 input
secret-key
&
{:keys [close-streams?] :or {close-streams? true}})
Calculate HMAC GOST3411-2012-256 using secret-key
for input stream.
As input may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns 256 bit byte array.
Calculate HMAC GOST3411-2012-256 using `secret-key` for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 256 bit byte array.
(hmac-2012-512 input
secret-key
&
{:keys [close-streams?] :or {close-streams? true}})
Calculate HMAC GOST3411-2012-512 using secret-key
for input stream.
As input may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns 512 bit byte array.
Calculate HMAC GOST3411-2012-512 using `secret-key` for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 512 bit byte array.
(hmac-3411-94 input
secret-key
&
{:keys [close-streams?] :or {close-streams? true}})
Calculate HMAC GOST3411-94 using secret-key
for input stream.
As input may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns 256 bit byte array.
Calculate HMAC GOST3411-94 using `secret-key` for input stream. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 256 bit byte array.
(hmac-stream input
secret-key
&
{:keys [close-streams? digest-class]
:or {close-streams? true
digest-class (GOST3411_2012_256Digest.)}})
Calculate HMAC for input stream using secret-key
.
As input may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Calculate HMAC for input stream using `secret-key`. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close