rsa

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KemDecapsulate

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

func KemEncapsulate

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

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

func PrivateKeyFromPem

func PrivateKeyFromPem(p []byte) (*rsa.PrivateKey, error)

func PublicKeyFromPem

func PublicKeyFromPem(p []byte) (*rsa.PublicKey, error)

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