****************************Encryption algorithm****************************//
(data []byte, random io.Reader)
| 103 | |
| 104 | //****************************Encryption algorithm****************************// |
| 105 | func (pub *PublicKey) EncryptAsn1(data []byte, random io.Reader) ([]byte, error) { |
| 106 | return EncryptAsn1(pub, data, random) |
| 107 | } |
| 108 | |
| 109 | func (priv *PrivateKey) DecryptAsn1(data []byte) ([]byte, error) { |
| 110 | return DecryptAsn1(priv, data) |