Documentation ¶
Index ¶
- Constants
- func CRandBytes(numBytes int) []byte
- func CRandHex(numDigits int) string
- func CReader() io.Reader
- func GetName(ty int) string
- func GetType(name string) int
- func MixEntropy(seedBytes []byte)
- func Register(name string, driver Crypto)
- func RegisterType(name string, ty int)
- func Ripemd160(bytes []byte) []byte
- func Sha256(bytes []byte) []byte
- func Sm3Hash(msg []byte) []byte
- type CertSignature
- type Crypto
- type PrivKey
- type PubKey
- type Signature
Constants ¶
View Source
const (
SignNameED25519 = "ed25519"
)
Variables ¶
This section is empty.
Functions ¶
func MixEntropy ¶
func MixEntropy(seedBytes []byte)
Mix additional bytes of randomness, e.g. from hardware, user-input, etc. It is OK to call it multiple times. It does not diminish security.
func RegisterType ¶
Types ¶
type CertSignature ¶
type Crypto ¶
Directories ¶
Path | Synopsis |
---|---|
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
|
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202. |
Click to show internal directories.
Click to hide internal directories.