gost

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum256

func Sum256(data []byte) (digest [32]byte)

Sum256 calculates and returns a hash sum of 256 bits for data, using the algorithm of GOST R 34.11-2012.

func Verify

func Verify(pubKeyBytes, digest, signature []byte) (bool, error)

Verify verifies the signature for the specified message hash using the public key and GOST R 34.10-2012 algorithm on the cryptographic curve id-GostR3410-2001-CryptoPro-XchA-ParamSet. Returns true if the signature is true and false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL