rsa

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 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 {
	Salt     []byte
	Iter     int
	KeyLen   int
	HashFunc func() hash.Hash
}

Jump to

Keyboard shortcuts

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