ecdhes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package ecdhes provides the Elliptic Curve Diffie-Hellman Ephemeral Static (ECDH-ES) key agreement algorithm defined in RFC 6278.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() keymanage.Algorithm

New returns a new algorithm Elliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF.

func NewA128KW

func NewA128KW() keymanage.Algorithm

NewA128KW returns a new algorithm ECDH-ES using Concat KDF and CEK wrapped with "A128KW".

func NewA192KW

func NewA192KW() keymanage.Algorithm

NewA192KW returns a new algorithm ECDH-ES using Concat KDF and CEK wrapped with "A192KW".

func NewA256KW

func NewA256KW() keymanage.Algorithm

NewA256KW returns a new algorithm ECDH-ES using Concat KDF and CEK wrapped with "A256KW".

Types

type Algorithm

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

func (*Algorithm) NewKeyWrapper

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

NewKeyWrapper implements github.com/shogo82148/goat/keymanage.Algorithm.

type KeyWrapper

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

func (*KeyWrapper) DeriveKey

func (w *KeyWrapper) DeriveKey(opts any) (cek, encryptedCEK []byte, err error)

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