hsm

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsymmetricDecryptionKey

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

AsymmetricDecryptionKey implements RSA OAEP using SHA1 decryption.

func (*AsymmetricDecryptionKey) Algorithm

func (a *AsymmetricDecryptionKey) Algorithm() jose.Alg

Algorithm return jose.AlgRSAOAEP the fixed algorithm that AsymmetricDecryptionKey implements.

func (*AsymmetricDecryptionKey) Certificates

func (a *AsymmetricDecryptionKey) Certificates() []*x509.Certificate

Certificates associated x509 certificates.

func (*AsymmetricDecryptionKey) Decrypt

func (a *AsymmetricDecryptionKey) Decrypt(_ jose.KeyOps, bytes []byte) ([]byte, error)

Decrypt decrypt the given ciphertext data returning the derived plaintext.

func (*AsymmetricDecryptionKey) Encryptor

Encryptor get the matching AsymmetricEncryptionKey for this decryptor.

func (*AsymmetricDecryptionKey) Kid

Kid the unique identifier of this key.

type AsymmetricDecryptionKeyStore

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

AsymmetricDecryptionKeyStore implements the AsymmetricDecryptionKeyStore interface providing key lookup

func NewAsymmetricDecryptionKeyStore

func NewAsymmetricDecryptionKeyStore(ctx *crypto11.Context) *AsymmetricDecryptionKeyStore

NewAsymmetricDecryptionKeyStore creates an instance of AsymmetricDecryptionKeyStore.

func (*AsymmetricDecryptionKeyStore) Get

Get returns gose.AsymmetricDecryptionKey which match the given key ID.

Jump to

Keyboard shortcuts

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