Documentation ¶
Index ¶
- func AesGCMDecrypt(key, cipherText, nonce []byte) ([]byte, error)
- func AesGCMEncrypt(key, inText []byte) (outText, nonce []byte, err error)
- func GetEntropyCSPRNG(n int) []byte
- func HexToECDSA(hexkey string) (*ecdsa.PrivateKey, error)
- func S256() elliptic.Curve
- func ToECDSA(d []byte) (*ecdsa.PrivateKey, error)
- type SecureString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesGCMDecrypt ¶
func AesGCMEncrypt ¶
func GetEntropyCSPRNG ¶
func HexToECDSA ¶ added in v1.2.0
func HexToECDSA(hexkey string) (*ecdsa.PrivateKey, error)
HexToECDSA parses a secp256k1 private key.
Types ¶
type SecureString ¶
type SecureString struct {
// contains filtered or unexported fields
}
func NewSecureString ¶
func NewSecureString(passphrase string) (*SecureString, error)
NewSecureString from string
Directories ¶
Path | Synopsis |
---|---|
Package ed25519 implements the Ed25519 signature algorithm.
|
Package ed25519 implements the Ed25519 signature algorithm. |
Package random provides some functions to securely generate random bytes and numbers.
|
Package random provides some functions to securely generate random bytes and numbers. |
Click to show internal directories.
Click to hide internal directories.