Liking cljdoc? Tell your friends :D

crypto-gost.sign


gen-keypairclj

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

Generate GOST3410-2001 keypair using CryptoPro-A params by default. Availbable params GostR3410-2001-CryptoPro-XchB GostR3410-2001-CryptoPro-XchA GostR3410-2001-CryptoPro-C GostR3410-2001-CryptoPro-B GostR3410-2001-CryptoPro-A return ^KeyPair object.

Generate GOST3410-2001 keypair using CryptoPro-A params by default.
Availbable params GostR3410-2001-CryptoPro-XchB GostR3410-2001-CryptoPro-XchA
GostR3410-2001-CryptoPro-C GostR3410-2001-CryptoPro-B GostR3410-2001-CryptoPro-A
return ^KeyPair object.
sourceraw docstring

gen-keypair-2012clj

(gen-keypair-2012)
(gen-keypair-2012 ec-params)

Generate GOST3410-2012 keypair using Tc26-Gost-3410-12-512-paramSetA params by default. Availbable params: Tc26-Gost-3410-12-256-paramSetA, Tc26-Gost-3410-12-512-paramSetA, Tc26-Gost-3410-12-512-paramSetA, Tc26-Gost-3410-12-512-paramSetB, Tc26-Gost-3410-12-512-paramSetC
return ^KeyPair object.

Generate GOST3410-2012 keypair using Tc26-Gost-3410-12-512-paramSetA params by default.
Availbable params: Tc26-Gost-3410-12-256-paramSetA, Tc26-Gost-3410-12-512-paramSetA, Tc26-Gost-3410-12-512-paramSetA,
Tc26-Gost-3410-12-512-paramSetB, Tc26-Gost-3410-12-512-paramSetC  
return ^KeyPair object.
sourceraw docstring

load-key-pairclj

(load-key-pair filename password)

load ^KeyPair object from files. Extensions .priv and .pub will be automatically added to filename to load keys from separate files. HMAC for all keys will be verified. Private key will be decrypted. return ^KeyPair object or nil if errors.

load ^KeyPair object from files. Extensions .priv and .pub will be automatically added to filename to load keys from separate files.
HMAC for all keys will be verified. Private key will be decrypted.
return ^KeyPair object or nil if errors.
sourceraw docstring

load-key-pair-2012clj

(load-key-pair-2012 filename password)

load ^KeyPair object from files. Extensions .priv and .pub will be automatically added to filename to load keys from separate files. HMAC for all keys will be verified. Private key will be decrypted. return ^KeyPair object or nil if errors.

load ^KeyPair object from files. Extensions .priv and .pub will be automatically added to filename to load keys from separate files.
HMAC for all keys will be verified. Private key will be decrypted.
return ^KeyPair object or nil if errors.
sourceraw docstring

load-private-keyclj

(load-private-key filename password)

load a private key GOST 3410-2001 from file private key HMAC will be verified. return ^PrivateKey object if success or nil if key is tampered.

load a private key GOST 3410-2001 from file
private key HMAC will be verified.
return ^PrivateKey object if success or nil if key is tampered.
sourceraw docstring

load-private-key-2012clj

(load-private-key-2012 filename password)

load a private key GOST 3410-2012 from file private key HMAC will be verified. return ^PrivateKey object if success or nil if key is tampered.

load a private key GOST 3410-2012 from file
private key HMAC will be verified.
return ^PrivateKey object if success or nil if key is tampered.
sourceraw docstring

load-public-keyclj

(load-public-key filename password)

load a public key GOST 3410-2001 from file public key HMAC will be verified. return ^PublicKey object if success or nil if key is tampered.

load a public key GOST 3410-2001 from file
public key HMAC will be verified.
return ^PublicKey object if success or nil if key is tampered.
sourceraw docstring

load-public-key-2012clj

(load-public-key-2012 filename password)

load a public key GOST 3410-2012 from file public key HMAC will be verified. return ^PublicKey object if success or nil if key is tampered.

load a public key GOST 3410-2012 from file
public key HMAC will be verified.
return ^PublicKey object if success or nil if key is tampered.
sourceraw docstring

public-from-hexclj

(public-from-hex public-hex)

return ^PublicKey object for GOST 3410-2001 derived from its hex string representation.

return ^PublicKey object for GOST 3410-2001 derived from its hex string representation.
sourceraw docstring

save-key-pairclj

(save-key-pair kp filename password)

save ^KeyPair object to a files. extensions .priv and .pub automatically will be added to filename. private key will be encrypted and protected with hmac. public key will be protected with hmac. return nil.

save ^KeyPair object to a files. extensions .priv and .pub automatically will be added to filename.
private key will be encrypted and protected with hmac.
public key will be protected with hmac.
return nil.
sourceraw docstring

save-private-keyclj

(save-private-key private-key filename password)

save a private key GOST 3410-2001 in file private key will be encrypted with HMAC. return nil

save a private key GOST 3410-2001 in file
private key will be encrypted with HMAC.
return nil
sourceraw docstring

save-public-keyclj

(save-public-key public-key filename password)

save a public key GOST 3410-2001 in file. Public key will be protected with HMAC. return nil.

save a public key GOST 3410-2001 in file. Public key will be protected with HMAC.
return nil.
sourceraw docstring

signclj

(sign hash-bytes private-key)

generate signature GOST 3410-2001 from a given hash using given private key. return byte[64] array of signature

generate signature GOST 3410-2001 from a given hash using given private key.
return byte[64] array of signature
sourceraw docstring

sign-2012clj

(sign-2012 hash-bytes private-key)

generate signature GOST 3410-2012 from a given hash using given private key. return byte[64] or byte[128] array of signature depending on private key length.

generate signature GOST 3410-2012 from a given hash using given private key.
return byte[64] or byte[128] array of signature depending on private key length.
sourceraw docstring

verifyclj

(verify hash-bytes public-key sign-bytes)

verify (bytes array) sign-bytes of GOST 3410-2001 signature using given hash value (bytes array) and public key. return: true - signature is correct, false - signature is not correct.

verify (bytes array) sign-bytes of GOST 3410-2001 signature using given hash value (bytes array) and public key.
return: true - signature is correct, false - signature is not correct.
sourceraw docstring

verify-2012clj

(verify-2012 hash-bytes public-key sign-bytes)

verify (bytes array) sign-bytes of GOST 3410-2012 signature using given hash value (bytes array) and public key. return: true - signature is correct, false - signature is not correct.

verify (bytes array) sign-bytes of GOST 3410-2012 signature using given hash value (bytes array) and public key.
return: true - signature is correct, false - signature is not correct.
sourceraw docstring

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

× close