MCPcopy
hub / github.com/tjfoc/gmsm / EncryptAsn1

Method EncryptAsn1

sm2/sm2.go:105–107  ·  view source on GitHub ↗

****************************Encryption algorithm****************************//

(data []byte, random io.Reader)

Source from the content-addressed store, hash-verified

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

Callers 1

TestSm2Function · 0.80

Calls 1

EncryptAsn1Function · 0.85

Tested by 1

TestSm2Function · 0.64