package keyprovider
import "github.com/containers/ocicrypt/keywrap/keyprovider"
Index ¶
- func NewKeyWrapper(p string, a keyproviderconfig.KeyProviderAttrs) keywrap.KeyWrapper
- type KeyProviderKeyWrapProtocolInput
- type KeyProviderKeyWrapProtocolOperation
- type KeyProviderKeyWrapProtocolOutput
- type KeyUnwrapParams
- type KeyUnwrapResults
- type KeyWrapParams
- type KeyWrapResults
Functions ¶
func NewKeyWrapper ¶
func NewKeyWrapper(p string, a keyproviderconfig.KeyProviderAttrs) keywrap.KeyWrapper
NewKeyWrapper returns a new key wrapping interface using keyprovider
Types ¶
type KeyProviderKeyWrapProtocolInput ¶
type KeyProviderKeyWrapProtocolInput struct { // Operation is either "keywrap" or "keyunwrap" Operation KeyProviderKeyWrapProtocolOperation `json:"op"` // KeyWrapParams encodes the arguments to key wrap if operation is set to wrap KeyWrapParams KeyWrapParams `json:"keywrapparams,omitempty"` // KeyUnwrapParams encodes the arguments to key unwrap if operation is set to unwrap KeyUnwrapParams KeyUnwrapParams `json:"keyunwrapparams,omitempty"` }
KeyProviderKeyWrapProtocolInput defines the input to the key provider binary or grpc method.
type KeyProviderKeyWrapProtocolOperation ¶
type KeyProviderKeyWrapProtocolOperation string
var ( OpKeyWrap KeyProviderKeyWrapProtocolOperation = "keywrap" OpKeyUnwrap KeyProviderKeyWrapProtocolOperation = "keyunwrap" )
type KeyProviderKeyWrapProtocolOutput ¶
type KeyProviderKeyWrapProtocolOutput struct { // KeyWrapResult encodes the results to key wrap if operation is to wrap KeyWrapResults KeyWrapResults `json:"keywrapresults,omitempty"` // KeyUnwrapResult encodes the result to key unwrap if operation is to unwrap KeyUnwrapResults KeyUnwrapResults `json:"keyunwrapresults,omitempty"` }
KeyProviderKeyWrapProtocolOutput defines the output of the key provider binary or grpc method.
type KeyUnwrapParams ¶
type KeyUnwrapParams struct { Dc *config.DecryptConfig `json:"dc"` Annotation []byte `json:"annotation"` }
type KeyUnwrapResults ¶
type KeyUnwrapResults struct { OptsData []byte `json:"optsdata"` }
type KeyWrapParams ¶
type KeyWrapParams struct { Ec *config.EncryptConfig `json:"ec"` OptsData []byte `json:"optsdata"` }
type KeyWrapResults ¶
type KeyWrapResults struct { Annotation []byte `json:"annotation"` }
Source Files ¶
- Version
- v1.2.1 (latest)
- Published
- Dec 16, 2024
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 2 months ago –
Tools for package owners.