Liking cljdoc? Tell your friends :D

org.rssys.gost.digest

GOST digest (hashing) functions

GOST digest (hashing) functions
raw docstring

-gost-3411clj

(-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.
sourceraw docstring

crypto-pro-digest-s-boxclj

source

digest-2012-256clj

(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.
sourceraw docstring

digest-2012-512clj

(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.
sourceraw docstring

digest-3411-94clj

(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.
sourceraw docstring

digest-streamclj

(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.
sourceraw docstring

hmac-2012-256clj

(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.
sourceraw docstring

hmac-2012-512clj

(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.
sourceraw docstring

hmac-3411-94clj

(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.
sourceraw docstring

hmac-streamclj

(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.
sourceraw docstring

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

× close