Documentation ¶
Index ¶
- Constants
- type GoCrypto
- func (g GoCrypto) DecryptMessage(key []byte, encryptedMessage []byte) ([]byte, error)
- func (g GoCrypto) EncryptMessage(key []byte, message []byte) (encryptedMessage []byte, err error)
- func (g GoCrypto) NewECDSAKeys() (publicKey []byte, privateKey []byte, err error)
- func (g GoCrypto) NewRSAKeys() (publicKey []byte, privateKey []byte, err error)
- func (g GoCrypto) NewSymmetricKey() ([]byte, error)
- func (g GoCrypto) PkDecryptMessage(privateKey []byte, encryptedMessage []byte) (message []byte, err error)
- func (g GoCrypto) PkEncryptMessage(publicKey []byte, message []byte) ([]byte, error)
- func (g GoCrypto) SignMessage(privateKey []byte, message []byte) (signature []byte, e error)
- func (g GoCrypto) VerifyMessage(publicKey []byte, message []byte, signature []byte) error
Constants ¶
View Source
const ( NonceLength = 12 SymKeyLength = 16 TagLength = 16 RSAKeyLength = 3072 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoCrypto ¶
type GoCrypto struct { }
GoCrypto implements CSP using pure go
func NewGoCrypto ¶
func NewGoCrypto() *GoCrypto
func (GoCrypto) DecryptMessage ¶
func (GoCrypto) EncryptMessage ¶
func (GoCrypto) NewECDSAKeys ¶
func (GoCrypto) NewRSAKeys ¶
func (GoCrypto) NewSymmetricKey ¶
func (GoCrypto) PkDecryptMessage ¶
func (GoCrypto) PkEncryptMessage ¶
func (GoCrypto) SignMessage ¶
Click to show internal directories.
Click to hide internal directories.