security

package
v0.0.0-...-6e6de49 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilitiesResp

type CapabilitiesResp struct {
	Asymmetric []CapabilityResp
	Symmetric  []CapabilityResp
}

type CapabilityResp

type CapabilityResp struct {
	Name string
	Len  []int
}

type GenerateAESKeyReq

type GenerateAESKeyReq struct {
	Alias string
	Bits  int
}

GenerateAESKeyReq contains all parameters used to generate a symmetric AES key

type GenerateECDSAKeyPairReq

type GenerateECDSAKeyPairReq struct {
	Alias string
	Bits  elliptic.Curve
}

GenerateECDSAKeyPairReq contains all parameters used to generate an ECDSA key pair

type GenerateRSAKeyPairReq

type GenerateRSAKeyPairReq struct {
	Alias string
	Bits  int
}

GenerateRSAKeyPairReq contains all parameters used to generate an RSA key pair

type SecureModule

type SecureModule interface {
	GenerateRSAKeyPair(ctx runtime.Context, req GenerateRSAKeyPairReq) (crypto.PublicKey, error)
	GenerateECDSAKeyPair(ctx runtime.Context, req GenerateECDSAKeyPairReq) (crypto.PublicKey, error)
	Signer(ctx runtime.Context, alias string) (crypto.Signer, error)
	Block(ctx runtime.Context, alias string) (cipher.Block, error)
	GenerateAESKey(ctx runtime.Context, req GenerateAESKeyReq) (cipher.Block, error)
	Capabilities() CapabilitiesResp
}

SecureModule abstract the backend implementation of the Encryption managemend

Directories

Path Synopsis
aws
kms Module
pkcs11 module

Jump to

Keyboard shortcuts

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