Documentation ¶
Index ¶
- Variables
- func ArgonCompareHash(password, encodedPassword string) (bool, error)
- func ArgonDummyCompare()
- func ArgonHash(password string, p ArgonParams) (string, error)
- func Hash(b []byte) string
- func HashBytes(bs ...[]byte) string
- func ParsePrivateKey(source io.Reader) (*rsa.PrivateKey, error)
- func ParsePublicKey(source io.Reader) (*rsa.PublicKey, error)
- func RandomBytes(n uint) ([]byte, error)
- func RandomString(n uint) (string, error)
- func ReadRandomBytes(o []byte) error
- func Sign(message []byte, key *rsa.PrivateKey) ([]byte, error)
- func Verify(message, signature []byte, key *rsa.PublicKey) error
- type AES
- type ArgonParams
- type HMAC
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidKey = errors.New("invalid_key") ErrInvalidCiphertext = errors.New("invalid_ciphertext") )
View Source
var ( ErrInvalidHash = errors.New("invalid_argon_hash") ErrIncompatibleVersion = errors.New("incompatible_argon_version") DefaultArgonParams = ArgonParams{ // contains filtered or unexported fields } )
View Source
var ( ErrPemDecodeFailed = errors.New("pem_data_decode_failed") ErrPemKeyDecodeFailed = errors.New("pem_key_decode_failed") )
Functions ¶
func ArgonCompareHash ¶
func ArgonDummyCompare ¶
func ArgonDummyCompare()
func ParsePrivateKey ¶
func ParsePrivateKey(source io.Reader) (*rsa.PrivateKey, error)
func RandomBytes ¶
func RandomString ¶
func ReadRandomBytes ¶
Types ¶
type ArgonParams ¶
type ArgonParams struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.