rsaoaep

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package rsaoaep provides the RSA-OAEP key encryption algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() keymanage.Algorithm

New returns RSAES OAEP key encryption algorithm.

func New256

func New256() keymanage.Algorithm

New256 returns RSAES OAEP using SHA-256 key encryption algorithm.

Types

type Algorithm

type Algorithm struct {
	// contains filtered or unexported fields
}

func (*Algorithm) NewKeyWrapper

func (alg *Algorithm) NewKeyWrapper(key keymanage.Key) keymanage.KeyWrapper

type KeyWrapper

type KeyWrapper struct {
	// contains filtered or unexported fields
}

func (*KeyWrapper) UnwrapKey

func (w *KeyWrapper) UnwrapKey(data []byte, opts any) ([]byte, error)

func (*KeyWrapper) WrapKey

func (w *KeyWrapper) WrapKey(cek []byte, opts any) ([]byte, error)

Jump to

Keyboard shortcuts

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