secretlock

package
v0.1.3-0...-617a0de Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecryptRequest

type DecryptRequest struct {
	Ciphertext                  string
	AdditionalAuthenticatedData string
}

DecryptRequest for decrypting remote kms requests

type DecryptResponse

type DecryptResponse struct {
	Plaintext string
}

DecryptResponse for receiving decryption response from remote kms requests

type EncryptRequest

type EncryptRequest struct {
	Plaintext                   string
	AdditionalAuthenticatedData string
}

EncryptRequest for encrypting remote kms requests

type EncryptResponse

type EncryptResponse struct {
	Ciphertext string
}

EncryptResponse for receiving encryption response from remote kms requests

type Service

type Service interface {
	// Encrypt req for master key in keyURI
	Encrypt(keyURI string, req *EncryptRequest) (*EncryptResponse, error)
	// Decrypt req for master key in keyURI
	Decrypt(keyURI string, req *DecryptRequest) (*DecryptResponse, error)
}

Service provides crypto service used internally by the KMS it is responsible for wrapping/unwrapping keys stored by the KMS using a master key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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