Documentation ¶
Index ¶
- func DesDecrypte()
- func DesEncrypte()
- func GenRsaKey()
- func PKCS7Padding(cipherText []byte, blockSize int) []byte
- func PKCS7UnPadding(paddingText []byte) []byte
- func RsaDecryptWithOAEP(ciphertext []byte) ([]byte, error)
- func RsaDecryptWithPKCS1v15(ciphertext []byte) ([]byte, error)
- func RsaEncryptWithOAEP(msg []byte) ([]byte, error)
- func RsaEncryptWithPKCS1v15(msg []byte) ([]byte, error)
- func RsaSignWithPKCS1v15(msg []byte) ([]byte, error)
- func RsaVerifyPKCS1v15(msg []byte, signature []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS7Padding ¶
PKCS7Padding test 填充到blockSize长度的整数倍, PKCS5Padding固定块大小为8位
func RsaDecryptWithOAEP ¶
RsaDecryptWithOAEP example
func RsaDecryptWithPKCS1v15 ¶
RsaDecryptWithPKCS1v15 example
func RsaEncryptWithOAEP ¶
RsaEncryptWithOAEP example
func RsaEncryptWithPKCS1v15 ¶
RsaEncryptWithPKCS1v15 example
func RsaSignWithPKCS1v15 ¶
RsaSignWithPKCS1v15 example
func RsaVerifyPKCS1v15 ¶
RsaVerifyPKCS1v15 example
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.