kms

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	RSA_PSS_S256   = "RSASSA_PSS_SHA_256"
	RSA_PSS_S384   = "RSASSA_PSS_SHA_384"
	RSA_PSS_S512   = "RSASSA_PSS_SHA_512"
	RSA_PKCS1_S256 = "RSASSA_PKCS1_V1_5_SHA_256"
	RSA_PKCS1_S384 = "RSASSA_PKCS1_V1_5_SHA_384"
	RSA_PKCS1_S512 = "RSASSA_PKCS1_V1_5_SHA_512"
	ECDSA_S256     = "ECDSA_SHA_256"
	ECDSA_S384     = "ECDSA_SHA_384"
	ECDSA_S512     = "ECDSA_SHA_512"
)

A list of signing algorithms supported by AWS KMS.

Variables

This section is empty.

Functions

This section is empty.

Types

type KMS

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

KMS is an implementation of gojwt.Algorithm for AWS's Key Management Service.

func New

func New(sess *session.Session, keyId, signingAlg string) (*KMS, error)

New returns a new instance of KMS for the given session and key.

func (*KMS) Name

func (s *KMS) Name() (string, error)

func (*KMS) Sign

func (s *KMS) Sign(data []byte) ([]byte, error)

func (*KMS) Size

func (s *KMS) Size() (int, error)

func (*KMS) Verify

func (s *KMS) Verify(data, signature []byte) (bool, error)

Jump to

Keyboard shortcuts

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