Liking cljdoc? Tell your friends :D

org.rssys.gost.sign

Digital signature using GOST3410-2012

Digital signature using GOST3410-2012
raw docstring

-key-lengthclj

(-key-length k)
source

gen-keypair-256clj

(gen-keypair-256)

Generate 256-bit keypair for GOST3410-2012. Elliptic curve parameters is Tc26-Gost-3410-12-256-paramSetA. Returns ^KeyPair object.

Generate 256-bit keypair for GOST3410-2012.
Elliptic curve parameters is Tc26-Gost-3410-12-256-paramSetA.
Returns ^KeyPair object.
sourceraw docstring

gen-keypair-512clj

(gen-keypair-512)
(gen-keypair-512 ec-params)

Generate 512-bit keypair for GOST3410-2012. Elliptic curve parameters by default is Tc26-Gost-3410-12-512-paramSetA. Available params: Tc26-Gost-3410-12-512-paramSetA, Tc26-Gost-3410-12-512-paramSetA, Tc26-Gost-3410-12-512-paramSetB, Tc26-Gost-3410-12-512-paramSetC Returns ^KeyPair object.

Generate 512-bit keypair for GOST3410-2012.
Elliptic curve parameters by default is Tc26-Gost-3410-12-512-paramSetA.
Available params: Tc26-Gost-3410-12-512-paramSetA, Tc26-Gost-3410-12-512-paramSetA,
Tc26-Gost-3410-12-512-paramSetB, Tc26-Gost-3410-12-512-paramSetC
Returns ^KeyPair object.
sourceraw docstring

sign-256clj

(sign-256 private-key
          input
          &
          {:keys [close-streams?] :or {close-streams? true}})

Generate signature GOST3411-2012-256 for input using private key 256 bit length. Digest GOST3411-2012-256 will be calculated automatically for input. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 64 byte array with signature.

Generate signature GOST3411-2012-256 for `input` using private key 256 bit length.
Digest GOST3411-2012-256 will be calculated automatically for `input`.
As `input` may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns 64 byte array with signature.
sourceraw docstring

sign-512clj

(sign-512 private-key
          input
          &
          {:keys [close-streams?] :or {close-streams? true}})

Generate signature GOST3411-2012-512 for input using private key 512 bit length. Digest GOST3411-2012-512 will be calculated automatically for input. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns 128 byte array with signature.

Generate signature GOST3411-2012-512 for `input` using private key 512 bit length.
Digest GOST3411-2012-512 will be calculated automatically for `input`.
As `input` may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns 128 byte array with signature.
sourceraw docstring

sign-digest-256clj

(sign-digest-256 private-key digest-bytes)

Generate signature for a digest 32 bytes length using a private key 256-bit length. Signature algorithm is GOST3410-2012. Returns byte array 64 bytes length.

Generate signature for a digest 32 bytes length using a private key 256-bit length.
Signature algorithm is GOST3410-2012.
Returns byte array 64 bytes length.
sourceraw docstring

sign-digest-512clj

(sign-digest-512 private-key digest-bytes)

Generate signature for a digest 32 bytes length using a private key 512-bit length. Signature algorithm is GOST3410-2012. Returns byte array 128 bytes length.

Generate signature for a digest 32 bytes length using a private key 512-bit length.
Signature algorithm is GOST3410-2012.
Returns byte array 128 bytes length.
sourceraw docstring

verify-256clj

(verify-256 public-key
            input
            signature
            &
            {:keys [close-streams?] :or {close-streams? true}})

Verify signature GOST3411-2012-256 for input using public key 256 bit length. Digest GOST3411-2012-256 will be calculated automatically for input. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns true if signature is correct, false - signature is not correct.

Verify signature GOST3411-2012-256 for `input` using public key 256 bit length.
Digest GOST3411-2012-256 will be calculated automatically for `input`.
As `input` may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns true if signature is correct, false - signature is not correct.
sourceraw docstring

verify-512clj

(verify-512 public-key
            input
            signature
            &
            {:keys [close-streams?] :or {close-streams? true}})

Verify signature GOST3411-2012-512 for input using public key 512 bit length. Digest GOST3411-2012-512 will be calculated automatically for input. As input may be: File, URI, URL, Socket, byte array, or filename as String which will be coerced to BufferedInputStream. Returns true if signature is correct, false - signature is not correct.

Verify signature GOST3411-2012-512 for `input` using public key 512 bit length.
Digest GOST3411-2012-512 will be calculated automatically for `input`.
As `input` may be: File, URI, URL, Socket, byte array, or filename as String which will be
coerced to BufferedInputStream.
Returns true if signature is correct, false - signature is not correct.
sourceraw docstring

verify-digest-256clj

(verify-digest-256 public-key digest-bytes signature)

Verify signature for digest 32 bytes length using public key 256 bit length. Signature algorithm is GOST3410-2012. Returns true if signature is correct, false - signature is not correct.

Verify signature for digest 32 bytes length using public key 256 bit length.
Signature algorithm is GOST3410-2012.
Returns true if signature is correct, false - signature is not correct.
sourceraw docstring

verify-digest-512clj

(verify-digest-512 public-key digest-bytes signature)

Verify signature for digest 64 bytes length using public key 512 bit length. Signature algorithm is GOST3410-2012. Returns true if signature is correct, false - signature is not correct.

Verify signature for digest 64 bytes length using public key 512 bit length.
Signature algorithm is GOST3410-2012.
Returns true if signature is correct, false - signature is not correct.
sourceraw docstring

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

× close