rsaoaep

package module
v0.0.0-...-fb75766 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecipient

func NewRecipient(key *rsa.PublicKey) (age.Recipient, error)

NewRecipient creates an age.Recipient representing an RSA public key.

The file keys are encrypted using OAEP with SHA256. This implementation differs from agessh's support for RSA public keys by not including an AEAD "label" in the OAEP encryption because Google Cloud KMS' asymmetric decryption API does not allow specifying a label during decryption.

This implementation also uses a different stanza Type and a different form of key identification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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