Documentation ¶
Index ¶
- func Decrypt(data []byte, key *rsa.PrivateKey) ([]byte, error)
- func Encrypt(data []byte, pubKey *rsa.PublicKey) ([]byte, error)
- func GenKey(bits int) (*rsa.PrivateKey, error)
- func GetMaxTextSizeByBits(bits int) (uint, error)
- func GetMaxTextSizeByKey(keyIn interface{}) (uint, error)
- func RandBytes(quantity uint) ([]byte, error)
- func Sign(data []byte, key *rsa.PrivateKey) ([]byte, error)
- func Verify(data []byte, pubKey *rsa.PublicKey, sign []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMaxTextSizeByBits ¶
func GetMaxTextSizeByKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.