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 ¶
New returns a new algorithm Elliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF.
func NewA128KW ¶
NewA128KW returns a new algorithm ECDH-ES using Concat KDF and CEK wrapped with "A128KW".
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)
Click to show internal directories.
Click to hide internal directories.