kem

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decapsulate

func Decapsulate(privKey *rsa.PrivateKey, ek []byte, kdfParams KDFParams) ([]byte, error)

func Encapsulate

func Encapsulate(pubKey *rsa.PublicKey, k []byte, kdfParams KDFParams) ([]byte, error)

Implement sender's operations as described in RFC5990 A.2

Types

type KDFParams

type KDFParams struct {
	HashFunc func() hash.Hash
	Salt     []byte
	Iter     int
	KeyLen   int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL