Documentation
¶
Index ¶
- Variables
- func ChoseAsymmetricByPem(b *pem.Block) pc.Asymmetric
- func Pack(b, exchangeTxt []byte) (a []byte)
- func Unpack(a []byte) (b, exchangeTxt []byte)
- type Mlkem
- type X25519
- func (t X25519) CheckType(b *pem.Block) (ok bool, isPriKey bool)
- func (t X25519) Decrypt(priKey *pem.Block) (dec pc.AsymmetricDec, e error)
- func (t X25519) Encrypt(pubKey *pem.Block) (enc pc.AsymmetricEnc, e error)
- func (t X25519) GetType() string
- func (t X25519) NewKey() (pri, pub *pem.Block, e error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PriKeySuf string = ` PRIVATE KEY` PubKeySuf string = ` PUBLIC KEY` ErrType error = errors.New(`ErrType`) )
View Source
var MlkemF pc.Asymmetric = Mlkem{}
View Source
var X25519F pc.Asymmetric = X25519{}
Functions ¶
func ChoseAsymmetricByPem ¶
func ChoseAsymmetricByPem(b *pem.Block) pc.Asymmetric
Types ¶
Click to show internal directories.
Click to hide internal directories.