rsa

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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