Documentation ¶
Index ¶
- Variables
- type Rsa
- type RsaCert
- func (r RsaCert) Decrypt(ciphertext []byte, key []byte) (data []byte, err error)
- func (r RsaCert) Encrypt(plaintext []byte, key []byte) (data []byte, err error)
- func (r RsaCert) GenRsaCert(bits int, template *x509.Certificate) (cert, key []byte, err error)
- func (r RsaCert) IsSymmetric() bool
- func (r RsaCert) Name() string
- func (r RsaCert) Sign(plaintext []byte, key []byte) (hashText []byte, sign []byte, err error)
- func (r RsaCert) Verify(hashText []byte, sign []byte, key []byte) (ok bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PCryptoRsa = Rsa{/* contains filtered or unexported fields */} PCryptoRsaChunks = Rsa{/* contains filtered or unexported fields */} PCryptoRsaCert = RsaCert{/* contains filtered or unexported fields */} PCryptoRsaCertChunks = RsaCert{/* contains filtered or unexported fields */} )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.