Documentation ¶
Index ¶
- Constants
- func DirectWrap(optsdata []byte, key_path string) ([]byte, error)
- type AnnotationPacket
- type AzureInformation
- type DecryptConfig
- type EncryptConfig
- type KeyProviderProtocolOutput
- type KeyUnwrapParams
- type KeyUnwrapResults
- type KeyWrapParams
- type KeyWrapResults
- type RSAKeyInfo
- type Server
- func (s *Server) GetReport(c context.Context, in *keyprovider.KeyProviderGetReportInput) (*keyprovider.KeyProviderGetReportOutput, error)
- func (s *Server) SayHello(ctx context.Context, in *keyprovider.HelloRequest) (*keyprovider.HelloReply, error)
- func (s *Server) UnWrapKey(c context.Context, grpcInput *keyprovider.KeyProviderKeyWrapProtocolInput) (*keyprovider.KeyProviderKeyWrapProtocolOutput, error)
- func (s *Server) WrapKey(c context.Context, grpcInput *keyprovider.KeyProviderKeyWrapProtocolInput) (*keyprovider.KeyProviderKeyWrapProtocolOutput, error)
Constants ¶
View Source
const (
ATTESTATION_AGENT = "skr"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnnotationPacket ¶
type AzureInformation ¶
type AzureInformation struct { // Endpoint of the certificate cache service from which // the certificate chain endorsing hardware attestations // can be retrieved. This is optional only when the container // will expose attest/maa and key/release APIs. CertFetcher attest.CertFetcher `json:"certcache,omitempty"` // Identifier of the managed identity to be used // for authenticating with AKV. This is optional and // useful only when the container group has been assigned // more than one managed identity. Identity common.Identity `json:"identity,omitempty"` }
type DecryptConfig ¶
type EncryptConfig ¶
type EncryptConfig struct { Parameters map[string][]string Dc DecryptConfig }
type KeyProviderProtocolOutput ¶
type KeyProviderProtocolOutput 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"` }
type KeyUnwrapParams ¶
type KeyUnwrapParams struct { Dc DecryptConfig `json:"dc,omitempty"` Annotation string `json:"annotation"` }
type KeyUnwrapResults ¶
type KeyUnwrapResults struct {
OptsData []byte `json:"optsdata"`
}
type KeyWrapParams ¶
type KeyWrapParams struct { Ec EncryptConfig `json:"ec,omitempty"` Optsdata string `json:"optsdata,omitempty"` }
type KeyWrapResults ¶
type KeyWrapResults struct {
Annotation []byte `json:"annotation"`
}
type RSAKeyInfo ¶
type Server ¶
type Server struct { keyprovider.UnimplementedKeyProviderServiceServer ServerCertState *attest.CertState EncodedUvmInformation *common.UvmInformation Azure_info *AzureInformation }
func (*Server) GetReport ¶
func (s *Server) GetReport(c context.Context, in *keyprovider.KeyProviderGetReportInput) (*keyprovider.KeyProviderGetReportOutput, error)
func (*Server) SayHello ¶
func (s *Server) SayHello(ctx context.Context, in *keyprovider.HelloRequest) (*keyprovider.HelloReply, error)
func (*Server) UnWrapKey ¶
func (s *Server) UnWrapKey(c context.Context, grpcInput *keyprovider.KeyProviderKeyWrapProtocolInput) (*keyprovider.KeyProviderKeyWrapProtocolOutput, error)
func (*Server) WrapKey ¶
func (s *Server) WrapKey(c context.Context, grpcInput *keyprovider.KeyProviderKeyWrapProtocolInput) (*keyprovider.KeyProviderKeyWrapProtocolOutput, error)
Click to show internal directories.
Click to hide internal directories.