Documentation ¶
Overview ¶
Package rsa provides RSA encryption and decryption, signature and verification functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDataToLarge . ErrDataToLarge = errors.New("message too long for RSA public key size") // ErrDataLen . ErrDataLen = errors.New("data length error") // ErrDataBroken . ErrDataBroken = errors.New("data broken, first byte is not zero") // ErrKeyPairDisMatch . ErrKeyPairDisMatch = errors.New("data is not encrypted by the private key") // ErrDecryption . ErrDecryption = errors.New("decryption error") // ErrPublicKey . ErrPublicKey = errors.New("get public key error") // ErrPrivateKey . ErrPrivateKey = errors.New("get private key error") )
Functions ¶
func NewRSACrypt ¶
func NewRSACrypt(secretInfo SecretInfo) *rsaCrypt
NewRSACrypt init with the RSA secret info
Types ¶
Click to show internal directories.
Click to hide internal directories.