Documentation ¶
Index ¶
- Variables
- func RegisterEncryptionServer(s grpc.ServiceRegistrar, srv EncryptionServer)
- type BackupRequest
- type BackupResult
- type CryptoResult
- type DecryptRequest
- func (*DecryptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptRequest) GetCiphertext() string
- func (x *DecryptRequest) GetKeyName() string
- func (x *DecryptRequest) GetKeyVersion() int64
- func (x *DecryptRequest) GetNonce() string
- func (*DecryptRequest) ProtoMessage()
- func (x *DecryptRequest) ProtoReflect() protoreflect.Message
- func (x *DecryptRequest) Reset()
- func (x *DecryptRequest) String() string
- type Empty
- type EncryptRequest
- func (*EncryptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptRequest) GetKeyName() string
- func (x *EncryptRequest) GetKeyVersion() int64
- func (x *EncryptRequest) GetNonce() string
- func (x *EncryptRequest) GetPlainText() string
- func (*EncryptRequest) ProtoMessage()
- func (x *EncryptRequest) ProtoReflect() protoreflect.Message
- func (x *EncryptRequest) Reset()
- func (x *EncryptRequest) String() string
- type EncryptionClient
- type EncryptionServer
- type EncryptionType
- func (EncryptionType) Descriptor() protoreflect.EnumDescriptor
- func (x EncryptionType) Enum() *EncryptionType
- func (EncryptionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EncryptionType) Number() protoreflect.EnumNumber
- func (x EncryptionType) String() string
- func (EncryptionType) Type() protoreflect.EnumType
- type ExportRequest
- func (*ExportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportRequest) GetExportType() string
- func (x *ExportRequest) GetKeyName() string
- func (x *ExportRequest) GetVersion() string
- func (*ExportRequest) ProtoMessage()
- func (x *ExportRequest) ProtoReflect() protoreflect.Message
- func (x *ExportRequest) Reset()
- func (x *ExportRequest) String() string
- type ExportResult
- type GenerateBytesRequest
- func (*GenerateBytesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateBytesRequest) GetBytesCount() int32
- func (x *GenerateBytesRequest) GetFormat() string
- func (x *GenerateBytesRequest) GetUrlBytes() string
- func (*GenerateBytesRequest) ProtoMessage()
- func (x *GenerateBytesRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateBytesRequest) Reset()
- func (x *GenerateBytesRequest) String() string
- type GenerateBytesResponse
- func (*GenerateBytesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateBytesResponse) GetResult() string
- func (*GenerateBytesResponse) ProtoMessage()
- func (x *GenerateBytesResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateBytesResponse) Reset()
- func (x *GenerateBytesResponse) String() string
- type GenerateKeyRequest
- func (*GenerateKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateKeyRequest) GetBits() int64
- func (x *GenerateKeyRequest) GetContext() string
- func (x *GenerateKeyRequest) GetKeyVersion() int64
- func (x *GenerateKeyRequest) GetName() string
- func (x *GenerateKeyRequest) GetNonce() string
- func (x *GenerateKeyRequest) GetPlaintext() string
- func (*GenerateKeyRequest) ProtoMessage()
- func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateKeyRequest) Reset()
- func (x *GenerateKeyRequest) String() string
- type GenerateKeyResponse
- func (*GenerateKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateKeyResponse) GetCiphertext() string
- func (x *GenerateKeyResponse) GetKeyVersion() int64
- func (x *GenerateKeyResponse) GetPlaintext() string
- func (*GenerateKeyResponse) ProtoMessage()
- func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateKeyResponse) Reset()
- func (x *GenerateKeyResponse) String() string
- type HMACRequest
- func (*HMACRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HMACRequest) GetAlgorithm() string
- func (x *HMACRequest) GetInput() string
- func (x *HMACRequest) GetKeyName() string
- func (x *HMACRequest) GetKeyVersion() int64
- func (*HMACRequest) ProtoMessage()
- func (x *HMACRequest) ProtoReflect() protoreflect.Message
- func (x *HMACRequest) Reset()
- func (x *HMACRequest) String() string
- type HMACResponse
- type HashRequest
- func (*HashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HashRequest) GetAlgorithm() HashType
- func (x *HashRequest) GetFormat() string
- func (x *HashRequest) GetInput() string
- func (*HashRequest) ProtoMessage()
- func (x *HashRequest) ProtoReflect() protoreflect.Message
- func (x *HashRequest) Reset()
- func (x *HashRequest) String() string
- type HashResponse
- type HashType
- type HealthRequest
- type HealthResponse
- func (*HealthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthResponse) GetMessage() string
- func (x *HealthResponse) GetStatus() string
- func (*HealthResponse) ProtoMessage()
- func (x *HealthResponse) ProtoReflect() protoreflect.Message
- func (x *HealthResponse) Reset()
- func (x *HealthResponse) String() string
- type Key
- type KeyConfig
- func (*KeyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *KeyConfig) GetAllowPlaintextBackup() bool
- func (x *KeyConfig) GetDeletionAllowed() bool
- func (x *KeyConfig) GetExportable() bool
- func (x *KeyConfig) GetKeyName() string
- func (x *KeyConfig) GetMinDecryptionVersion() int64
- func (x *KeyConfig) GetMinEncryptionVersion() int64
- func (*KeyConfig) ProtoMessage()
- func (x *KeyConfig) ProtoReflect() protoreflect.Message
- func (x *KeyConfig) Reset()
- func (x *KeyConfig) String() string
- type KeyListResponse
- func (*KeyListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyListResponse) GetKeys() []*Key
- func (x *KeyListResponse) GetMessage() string
- func (x *KeyListResponse) GetStatus() Status
- func (*KeyListResponse) ProtoMessage()
- func (x *KeyListResponse) ProtoReflect() protoreflect.Message
- func (x *KeyListResponse) Reset()
- func (x *KeyListResponse) String() string
- type KeyName
- type KeyResponse
- func (*KeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KeyResponse) GetKey() *Key
- func (x *KeyResponse) GetMessage() string
- func (x *KeyResponse) GetStatus() Status
- func (*KeyResponse) ProtoMessage()
- func (x *KeyResponse) ProtoReflect() protoreflect.Message
- func (x *KeyResponse) Reset()
- func (x *KeyResponse) String() string
- type RestoreRequest
- func (*RestoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreRequest) GetBackup64() string
- func (x *RestoreRequest) GetForce() bool
- func (x *RestoreRequest) GetKeyName() string
- func (*RestoreRequest) ProtoMessage()
- func (x *RestoreRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreRequest) Reset()
- func (x *RestoreRequest) String() string
- type RewrapRequest
- func (*RewrapRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RewrapRequest) GetContext() string
- func (x *RewrapRequest) GetKeyName() string
- func (x *RewrapRequest) GetKeyVersion() int64
- func (x *RewrapRequest) GetNonce() string
- func (x *RewrapRequest) GetPlainText() string
- func (*RewrapRequest) ProtoMessage()
- func (x *RewrapRequest) ProtoReflect() protoreflect.Message
- func (x *RewrapRequest) Reset()
- func (x *RewrapRequest) String() string
- type RotateRequest
- type SignParameters
- func (*SignParameters) Descriptor() ([]byte, []int)deprecated
- func (x *SignParameters) GetContext() string
- func (x *SignParameters) GetHashAlgorithm() HashType
- func (x *SignParameters) GetInput() string
- func (x *SignParameters) GetKeyName() string
- func (x *SignParameters) GetKeyVersion() int64
- func (x *SignParameters) GetPrehashed() bool
- func (x *SignParameters) GetSignatureAlgorithm() string
- func (*SignParameters) ProtoMessage()
- func (x *SignParameters) ProtoReflect() protoreflect.Message
- func (x *SignParameters) Reset()
- func (x *SignParameters) String() string
- type SignResponse
- func (*SignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignResponse) GetPubKey() string
- func (x *SignResponse) GetResult() string
- func (*SignResponse) ProtoMessage()
- func (x *SignResponse) ProtoReflect() protoreflect.Message
- func (x *SignResponse) Reset()
- func (x *SignResponse) String() string
- type Status
- type UnimplementedEncryptionServer
- func (UnimplementedEncryptionServer) BackupKey(context.Context, *BackupRequest) (*BackupResult, error)
- func (UnimplementedEncryptionServer) CreateKey(context.Context, *Key) (*KeyResponse, error)
- func (UnimplementedEncryptionServer) Decrypt(context.Context, *DecryptRequest) (*CryptoResult, error)
- func (UnimplementedEncryptionServer) DeleteKey(context.Context, *KeyName) (*KeyResponse, error)
- func (UnimplementedEncryptionServer) Encrypt(context.Context, *EncryptRequest) (*CryptoResult, error)
- func (UnimplementedEncryptionServer) ExportKey(context.Context, *ExportRequest) (*ExportResult, error)
- func (UnimplementedEncryptionServer) GenerateHMAC(context.Context, *HMACRequest) (*HMACResponse, error)
- func (UnimplementedEncryptionServer) GenerateKey(context.Context, *GenerateKeyRequest) (*GenerateKeyResponse, error)
- func (UnimplementedEncryptionServer) GenerateRandomBytes(context.Context, *GenerateBytesRequest) (*GenerateBytesResponse, error)
- func (UnimplementedEncryptionServer) Hash(context.Context, *HashRequest) (*HashResponse, error)
- func (UnimplementedEncryptionServer) Health(context.Context, *HealthRequest) (*HealthResponse, error)
- func (UnimplementedEncryptionServer) ListKeys(context.Context, *Empty) (*KeyListResponse, error)
- func (UnimplementedEncryptionServer) ReadKey(context.Context, *KeyName) (*KeyResponse, error)
- func (UnimplementedEncryptionServer) RestoreKey(context.Context, *RestoreRequest) (*Empty, error)
- func (UnimplementedEncryptionServer) Rewrap(context.Context, *RewrapRequest) (*CryptoResult, error)
- func (UnimplementedEncryptionServer) RotateKey(context.Context, *RotateRequest) (*Empty, error)
- func (UnimplementedEncryptionServer) Sign(context.Context, *SignParameters) (*SignResponse, error)
- func (UnimplementedEncryptionServer) UpdateKeyConfiguration(context.Context, *KeyConfig) (*Empty, error)
- func (UnimplementedEncryptionServer) VerifySigned(context.Context, *VerificationRequest) (*VerificationResponse, error)
- type UnsafeEncryptionServer
- type VerificationRequest
- func (*VerificationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationRequest) GetContext() string
- func (x *VerificationRequest) GetHashAlgorithm() HashType
- func (x *VerificationRequest) GetHmac() string
- func (x *VerificationRequest) GetInput() string
- func (x *VerificationRequest) GetKeyName() string
- func (x *VerificationRequest) GetPrehashed() bool
- func (x *VerificationRequest) GetSignature() string
- func (x *VerificationRequest) GetSignatureAlgorithm() string
- func (*VerificationRequest) ProtoMessage()
- func (x *VerificationRequest) ProtoReflect() protoreflect.Message
- func (x *VerificationRequest) Reset()
- func (x *VerificationRequest) String() string
- type VerificationResponse
- func (*VerificationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationResponse) GetVerificationResult() bool
- func (*VerificationResponse) ProtoMessage()
- func (x *VerificationResponse) ProtoReflect() protoreflect.Message
- func (x *VerificationResponse) Reset()
- func (x *VerificationResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( EncryptionType_name = map[int32]string{ 0: "AES256_GCM96", 1: "CHACHA20_POLY1305", 3: "ECDSA_P256", 4: "ED25519", 5: "RSA2048", 6: "RSA4096", 7: "ECDSA_P384", 8: "ECDSA_P521", 9: "AES128_GCM96", 10: "RSA3072", } EncryptionType_value = map[string]int32{ "AES256_GCM96": 0, "CHACHA20_POLY1305": 1, "ECDSA_P256": 3, "ED25519": 4, "RSA2048": 5, "RSA4096": 6, "ECDSA_P384": 7, "ECDSA_P521": 8, "AES128_GCM96": 9, "RSA3072": 10, } )
Enum value maps for EncryptionType.
var ( HashType_name = map[int32]string{ 0: "EmptyHashType", 1: "HashTypeSHA1", 2: "HashTypeSHA2224", 3: "HashTypeSHA2256", 4: "HashTypeSHA2384", 5: "HashTypeSHA2512", } HashType_value = map[string]int32{ "EmptyHashType": 0, "HashTypeSHA1": 1, "HashTypeSHA2224": 2, "HashTypeSHA2256": 3, "HashTypeSHA2384": 4, "HashTypeSHA2512": 5, } )
Enum value maps for HashType.
var ( Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCESS", 2: "ERROR", } Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCESS": 1, "ERROR": 2, } )
Enum value maps for Status.
var Encryption_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Encryption", HandlerType: (*EncryptionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateKey", Handler: _Encryption_CreateKey_Handler, }, { MethodName: "ReadKey", Handler: _Encryption_ReadKey_Handler, }, { MethodName: "DeleteKey", Handler: _Encryption_DeleteKey_Handler, }, { MethodName: "ListKeys", Handler: _Encryption_ListKeys_Handler, }, { MethodName: "Encrypt", Handler: _Encryption_Encrypt_Handler, }, { MethodName: "Decrypt", Handler: _Encryption_Decrypt_Handler, }, { MethodName: "Hash", Handler: _Encryption_Hash_Handler, }, { MethodName: "GenerateHMAC", Handler: _Encryption_GenerateHMAC_Handler, }, { MethodName: "Sign", Handler: _Encryption_Sign_Handler, }, { MethodName: "VerifySigned", Handler: _Encryption_VerifySigned_Handler, }, { MethodName: "Rewrap", Handler: _Encryption_Rewrap_Handler, }, { MethodName: "UpdateKeyConfiguration", Handler: _Encryption_UpdateKeyConfiguration_Handler, }, { MethodName: "RotateKey", Handler: _Encryption_RotateKey_Handler, }, { MethodName: "ExportKey", Handler: _Encryption_ExportKey_Handler, }, { MethodName: "BackupKey", Handler: _Encryption_BackupKey_Handler, }, { MethodName: "RestoreKey", Handler: _Encryption_RestoreKey_Handler, }, { MethodName: "GenerateKey", Handler: _Encryption_GenerateKey_Handler, }, { MethodName: "GenerateRandomBytes", Handler: _Encryption_GenerateRandomBytes_Handler, }, { MethodName: "Health", Handler: _Encryption_Health_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/structs/structs.proto", }
Encryption_ServiceDesc is the grpc.ServiceDesc for Encryption service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_structs_structs_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEncryptionServer ¶
func RegisterEncryptionServer(s grpc.ServiceRegistrar, srv EncryptionServer)
Types ¶
type BackupRequest ¶ added in v0.2.0
type BackupRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` // contains filtered or unexported fields }
func (*BackupRequest) Descriptor
deprecated
added in
v0.2.0
func (*BackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.
func (*BackupRequest) GetKeyName ¶ added in v0.2.0
func (x *BackupRequest) GetKeyName() string
func (*BackupRequest) ProtoMessage ¶ added in v0.2.0
func (*BackupRequest) ProtoMessage()
func (*BackupRequest) ProtoReflect ¶ added in v0.2.0
func (x *BackupRequest) ProtoReflect() protoreflect.Message
func (*BackupRequest) Reset ¶ added in v0.2.0
func (x *BackupRequest) Reset()
func (*BackupRequest) String ¶ added in v0.2.0
func (x *BackupRequest) String() string
type BackupResult ¶ added in v0.2.0
type BackupResult struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*BackupResult) Descriptor
deprecated
added in
v0.2.0
func (*BackupResult) Descriptor() ([]byte, []int)
Deprecated: Use BackupResult.ProtoReflect.Descriptor instead.
func (*BackupResult) GetResult ¶ added in v0.2.0
func (x *BackupResult) GetResult() string
func (*BackupResult) ProtoMessage ¶ added in v0.2.0
func (*BackupResult) ProtoMessage()
func (*BackupResult) ProtoReflect ¶ added in v0.2.0
func (x *BackupResult) ProtoReflect() protoreflect.Message
func (*BackupResult) Reset ¶ added in v0.2.0
func (x *BackupResult) Reset()
func (*BackupResult) String ¶ added in v0.2.0
func (x *BackupResult) String() string
type CryptoResult ¶
type CryptoResult struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*CryptoResult) Descriptor
deprecated
func (*CryptoResult) Descriptor() ([]byte, []int)
Deprecated: Use CryptoResult.ProtoReflect.Descriptor instead.
func (*CryptoResult) GetResult ¶
func (x *CryptoResult) GetResult() string
func (*CryptoResult) ProtoMessage ¶
func (*CryptoResult) ProtoMessage()
func (*CryptoResult) ProtoReflect ¶
func (x *CryptoResult) ProtoReflect() protoreflect.Message
func (*CryptoResult) Reset ¶
func (x *CryptoResult) Reset()
func (*CryptoResult) String ¶
func (x *CryptoResult) String() string
type DecryptRequest ¶
type DecryptRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` Ciphertext string `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` KeyVersion int64 `protobuf:"varint,4,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` // contains filtered or unexported fields }
func (*DecryptRequest) Descriptor
deprecated
func (*DecryptRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecryptRequest.ProtoReflect.Descriptor instead.
func (*DecryptRequest) GetCiphertext ¶
func (x *DecryptRequest) GetCiphertext() string
func (*DecryptRequest) GetKeyName ¶
func (x *DecryptRequest) GetKeyName() string
func (*DecryptRequest) GetKeyVersion ¶
func (x *DecryptRequest) GetKeyVersion() int64
func (*DecryptRequest) GetNonce ¶
func (x *DecryptRequest) GetNonce() string
func (*DecryptRequest) ProtoMessage ¶
func (*DecryptRequest) ProtoMessage()
func (*DecryptRequest) ProtoReflect ¶
func (x *DecryptRequest) ProtoReflect() protoreflect.Message
func (*DecryptRequest) Reset ¶
func (x *DecryptRequest) Reset()
func (*DecryptRequest) String ¶
func (x *DecryptRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EncryptRequest ¶
type EncryptRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` PlainText string `protobuf:"bytes,2,opt,name=plainText,proto3" json:"plainText,omitempty"` Nonce string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` KeyVersion int64 `protobuf:"varint,4,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` // contains filtered or unexported fields }
func (*EncryptRequest) Descriptor
deprecated
func (*EncryptRequest) Descriptor() ([]byte, []int)
Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead.
func (*EncryptRequest) GetKeyName ¶
func (x *EncryptRequest) GetKeyName() string
func (*EncryptRequest) GetKeyVersion ¶
func (x *EncryptRequest) GetKeyVersion() int64
func (*EncryptRequest) GetNonce ¶
func (x *EncryptRequest) GetNonce() string
func (*EncryptRequest) GetPlainText ¶
func (x *EncryptRequest) GetPlainText() string
func (*EncryptRequest) ProtoMessage ¶
func (*EncryptRequest) ProtoMessage()
func (*EncryptRequest) ProtoReflect ¶
func (x *EncryptRequest) ProtoReflect() protoreflect.Message
func (*EncryptRequest) Reset ¶
func (x *EncryptRequest) Reset()
func (*EncryptRequest) String ¶
func (x *EncryptRequest) String() string
type EncryptionClient ¶
type EncryptionClient interface { CreateKey(ctx context.Context, in *Key, opts ...grpc.CallOption) (*KeyResponse, error) ReadKey(ctx context.Context, in *KeyName, opts ...grpc.CallOption) (*KeyResponse, error) DeleteKey(ctx context.Context, in *KeyName, opts ...grpc.CallOption) (*KeyResponse, error) ListKeys(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*KeyListResponse, error) Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*CryptoResult, error) Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*CryptoResult, error) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) GenerateHMAC(ctx context.Context, in *HMACRequest, opts ...grpc.CallOption) (*HMACResponse, error) Sign(ctx context.Context, in *SignParameters, opts ...grpc.CallOption) (*SignResponse, error) VerifySigned(ctx context.Context, in *VerificationRequest, opts ...grpc.CallOption) (*VerificationResponse, error) Rewrap(ctx context.Context, in *RewrapRequest, opts ...grpc.CallOption) (*CryptoResult, error) UpdateKeyConfiguration(ctx context.Context, in *KeyConfig, opts ...grpc.CallOption) (*Empty, error) RotateKey(ctx context.Context, in *RotateRequest, opts ...grpc.CallOption) (*Empty, error) ExportKey(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportResult, error) BackupKey(ctx context.Context, in *BackupRequest, opts ...grpc.CallOption) (*BackupResult, error) RestoreKey(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (*Empty, error) GenerateKey(ctx context.Context, in *GenerateKeyRequest, opts ...grpc.CallOption) (*GenerateKeyResponse, error) GenerateRandomBytes(ctx context.Context, in *GenerateBytesRequest, opts ...grpc.CallOption) (*GenerateBytesResponse, error) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) }
EncryptionClient is the client API for Encryption service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEncryptionClient ¶
func NewEncryptionClient(cc grpc.ClientConnInterface) EncryptionClient
type EncryptionServer ¶
type EncryptionServer interface { CreateKey(context.Context, *Key) (*KeyResponse, error) ReadKey(context.Context, *KeyName) (*KeyResponse, error) DeleteKey(context.Context, *KeyName) (*KeyResponse, error) ListKeys(context.Context, *Empty) (*KeyListResponse, error) Encrypt(context.Context, *EncryptRequest) (*CryptoResult, error) Decrypt(context.Context, *DecryptRequest) (*CryptoResult, error) Hash(context.Context, *HashRequest) (*HashResponse, error) GenerateHMAC(context.Context, *HMACRequest) (*HMACResponse, error) Sign(context.Context, *SignParameters) (*SignResponse, error) VerifySigned(context.Context, *VerificationRequest) (*VerificationResponse, error) Rewrap(context.Context, *RewrapRequest) (*CryptoResult, error) UpdateKeyConfiguration(context.Context, *KeyConfig) (*Empty, error) RotateKey(context.Context, *RotateRequest) (*Empty, error) ExportKey(context.Context, *ExportRequest) (*ExportResult, error) BackupKey(context.Context, *BackupRequest) (*BackupResult, error) RestoreKey(context.Context, *RestoreRequest) (*Empty, error) GenerateKey(context.Context, *GenerateKeyRequest) (*GenerateKeyResponse, error) GenerateRandomBytes(context.Context, *GenerateBytesRequest) (*GenerateBytesResponse, error) Health(context.Context, *HealthRequest) (*HealthResponse, error) // contains filtered or unexported methods }
EncryptionServer is the server API for Encryption service. All implementations must embed UnimplementedEncryptionServer for forward compatibility
type EncryptionType ¶
type EncryptionType int32
const ( EncryptionType_AES256_GCM96 EncryptionType = 0 EncryptionType_CHACHA20_POLY1305 EncryptionType = 1 EncryptionType_ECDSA_P256 EncryptionType = 3 EncryptionType_ED25519 EncryptionType = 4 EncryptionType_RSA2048 EncryptionType = 5 EncryptionType_RSA4096 EncryptionType = 6 EncryptionType_ECDSA_P384 EncryptionType = 7 EncryptionType_ECDSA_P521 EncryptionType = 8 EncryptionType_AES128_GCM96 EncryptionType = 9 EncryptionType_RSA3072 EncryptionType = 10 )
func (EncryptionType) Descriptor ¶
func (EncryptionType) Descriptor() protoreflect.EnumDescriptor
func (EncryptionType) Enum ¶
func (x EncryptionType) Enum() *EncryptionType
func (EncryptionType) EnumDescriptor
deprecated
func (EncryptionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EncryptionType.Descriptor instead.
func (EncryptionType) Number ¶
func (x EncryptionType) Number() protoreflect.EnumNumber
func (EncryptionType) String ¶
func (x EncryptionType) String() string
func (EncryptionType) Type ¶
func (EncryptionType) Type() protoreflect.EnumType
type ExportRequest ¶ added in v0.2.0
type ExportRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` ExportType string `protobuf:"bytes,2,opt,name=exportType,proto3" json:"exportType,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*ExportRequest) Descriptor
deprecated
added in
v0.2.0
func (*ExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead.
func (*ExportRequest) GetExportType ¶ added in v0.2.0
func (x *ExportRequest) GetExportType() string
func (*ExportRequest) GetKeyName ¶ added in v0.2.0
func (x *ExportRequest) GetKeyName() string
func (*ExportRequest) GetVersion ¶ added in v0.2.0
func (x *ExportRequest) GetVersion() string
func (*ExportRequest) ProtoMessage ¶ added in v0.2.0
func (*ExportRequest) ProtoMessage()
func (*ExportRequest) ProtoReflect ¶ added in v0.2.0
func (x *ExportRequest) ProtoReflect() protoreflect.Message
func (*ExportRequest) Reset ¶ added in v0.2.0
func (x *ExportRequest) Reset()
func (*ExportRequest) String ¶ added in v0.2.0
func (x *ExportRequest) String() string
type ExportResult ¶ added in v0.2.0
type ExportResult struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*ExportResult) Descriptor
deprecated
added in
v0.2.0
func (*ExportResult) Descriptor() ([]byte, []int)
Deprecated: Use ExportResult.ProtoReflect.Descriptor instead.
func (*ExportResult) GetResult ¶ added in v0.2.0
func (x *ExportResult) GetResult() string
func (*ExportResult) ProtoMessage ¶ added in v0.2.0
func (*ExportResult) ProtoMessage()
func (*ExportResult) ProtoReflect ¶ added in v0.2.0
func (x *ExportResult) ProtoReflect() protoreflect.Message
func (*ExportResult) Reset ¶ added in v0.2.0
func (x *ExportResult) Reset()
func (*ExportResult) String ¶ added in v0.2.0
func (x *ExportResult) String() string
type GenerateBytesRequest ¶ added in v0.2.0
type GenerateBytesRequest struct { UrlBytes string `protobuf:"bytes,1,opt,name=urlBytes,proto3" json:"urlBytes,omitempty"` Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` BytesCount int32 `protobuf:"varint,3,opt,name=bytesCount,proto3" json:"bytesCount,omitempty"` // contains filtered or unexported fields }
func (*GenerateBytesRequest) Descriptor
deprecated
added in
v0.2.0
func (*GenerateBytesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateBytesRequest.ProtoReflect.Descriptor instead.
func (*GenerateBytesRequest) GetBytesCount ¶ added in v0.2.0
func (x *GenerateBytesRequest) GetBytesCount() int32
func (*GenerateBytesRequest) GetFormat ¶ added in v0.2.0
func (x *GenerateBytesRequest) GetFormat() string
func (*GenerateBytesRequest) GetUrlBytes ¶ added in v0.2.0
func (x *GenerateBytesRequest) GetUrlBytes() string
func (*GenerateBytesRequest) ProtoMessage ¶ added in v0.2.0
func (*GenerateBytesRequest) ProtoMessage()
func (*GenerateBytesRequest) ProtoReflect ¶ added in v0.2.0
func (x *GenerateBytesRequest) ProtoReflect() protoreflect.Message
func (*GenerateBytesRequest) Reset ¶ added in v0.2.0
func (x *GenerateBytesRequest) Reset()
func (*GenerateBytesRequest) String ¶ added in v0.2.0
func (x *GenerateBytesRequest) String() string
type GenerateBytesResponse ¶ added in v0.2.0
type GenerateBytesResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*GenerateBytesResponse) Descriptor
deprecated
added in
v0.2.0
func (*GenerateBytesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateBytesResponse.ProtoReflect.Descriptor instead.
func (*GenerateBytesResponse) GetResult ¶ added in v0.2.0
func (x *GenerateBytesResponse) GetResult() string
func (*GenerateBytesResponse) ProtoMessage ¶ added in v0.2.0
func (*GenerateBytesResponse) ProtoMessage()
func (*GenerateBytesResponse) ProtoReflect ¶ added in v0.2.0
func (x *GenerateBytesResponse) ProtoReflect() protoreflect.Message
func (*GenerateBytesResponse) Reset ¶ added in v0.2.0
func (x *GenerateBytesResponse) Reset()
func (*GenerateBytesResponse) String ¶ added in v0.2.0
func (x *GenerateBytesResponse) String() string
type GenerateKeyRequest ¶ added in v0.2.0
type GenerateKeyRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Plaintext string `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` Nonce string `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` Bits int64 `protobuf:"varint,5,opt,name=bits,proto3" json:"bits,omitempty"` KeyVersion int64 `protobuf:"varint,6,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` // contains filtered or unexported fields }
func (*GenerateKeyRequest) Descriptor
deprecated
added in
v0.2.0
func (*GenerateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateKeyRequest.ProtoReflect.Descriptor instead.
func (*GenerateKeyRequest) GetBits ¶ added in v0.2.0
func (x *GenerateKeyRequest) GetBits() int64
func (*GenerateKeyRequest) GetContext ¶ added in v0.2.0
func (x *GenerateKeyRequest) GetContext() string
func (*GenerateKeyRequest) GetKeyVersion ¶ added in v0.2.0
func (x *GenerateKeyRequest) GetKeyVersion() int64
func (*GenerateKeyRequest) GetName ¶ added in v0.2.0
func (x *GenerateKeyRequest) GetName() string
func (*GenerateKeyRequest) GetNonce ¶ added in v0.2.0
func (x *GenerateKeyRequest) GetNonce() string
func (*GenerateKeyRequest) GetPlaintext ¶ added in v0.2.0
func (x *GenerateKeyRequest) GetPlaintext() string
func (*GenerateKeyRequest) ProtoMessage ¶ added in v0.2.0
func (*GenerateKeyRequest) ProtoMessage()
func (*GenerateKeyRequest) ProtoReflect ¶ added in v0.2.0
func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message
func (*GenerateKeyRequest) Reset ¶ added in v0.2.0
func (x *GenerateKeyRequest) Reset()
func (*GenerateKeyRequest) String ¶ added in v0.2.0
func (x *GenerateKeyRequest) String() string
type GenerateKeyResponse ¶ added in v0.2.0
type GenerateKeyResponse struct { Ciphertext string `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` KeyVersion int64 `protobuf:"varint,2,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` Plaintext string `protobuf:"bytes,3,opt,name=plaintext,proto3" json:"plaintext,omitempty"` // contains filtered or unexported fields }
func (*GenerateKeyResponse) Descriptor
deprecated
added in
v0.2.0
func (*GenerateKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateKeyResponse.ProtoReflect.Descriptor instead.
func (*GenerateKeyResponse) GetCiphertext ¶ added in v0.2.0
func (x *GenerateKeyResponse) GetCiphertext() string
func (*GenerateKeyResponse) GetKeyVersion ¶ added in v0.2.0
func (x *GenerateKeyResponse) GetKeyVersion() int64
func (*GenerateKeyResponse) GetPlaintext ¶ added in v0.2.0
func (x *GenerateKeyResponse) GetPlaintext() string
func (*GenerateKeyResponse) ProtoMessage ¶ added in v0.2.0
func (*GenerateKeyResponse) ProtoMessage()
func (*GenerateKeyResponse) ProtoReflect ¶ added in v0.2.0
func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message
func (*GenerateKeyResponse) Reset ¶ added in v0.2.0
func (x *GenerateKeyResponse) Reset()
func (*GenerateKeyResponse) String ¶ added in v0.2.0
func (x *GenerateKeyResponse) String() string
type HMACRequest ¶
type HMACRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` KeyVersion int64 `protobuf:"varint,2,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` Algorithm string `protobuf:"bytes,3,opt,name=algorithm,proto3" json:"algorithm,omitempty"` Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
func (*HMACRequest) Descriptor
deprecated
func (*HMACRequest) Descriptor() ([]byte, []int)
Deprecated: Use HMACRequest.ProtoReflect.Descriptor instead.
func (*HMACRequest) GetAlgorithm ¶
func (x *HMACRequest) GetAlgorithm() string
func (*HMACRequest) GetInput ¶
func (x *HMACRequest) GetInput() string
func (*HMACRequest) GetKeyName ¶
func (x *HMACRequest) GetKeyName() string
func (*HMACRequest) GetKeyVersion ¶
func (x *HMACRequest) GetKeyVersion() int64
func (*HMACRequest) ProtoMessage ¶
func (*HMACRequest) ProtoMessage()
func (*HMACRequest) ProtoReflect ¶
func (x *HMACRequest) ProtoReflect() protoreflect.Message
func (*HMACRequest) Reset ¶
func (x *HMACRequest) Reset()
func (*HMACRequest) String ¶
func (x *HMACRequest) String() string
type HMACResponse ¶
type HMACResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*HMACResponse) Descriptor
deprecated
func (*HMACResponse) Descriptor() ([]byte, []int)
Deprecated: Use HMACResponse.ProtoReflect.Descriptor instead.
func (*HMACResponse) GetResult ¶
func (x *HMACResponse) GetResult() string
func (*HMACResponse) ProtoMessage ¶
func (*HMACResponse) ProtoMessage()
func (*HMACResponse) ProtoReflect ¶
func (x *HMACResponse) ProtoReflect() protoreflect.Message
func (*HMACResponse) Reset ¶
func (x *HMACResponse) Reset()
func (*HMACResponse) String ¶
func (x *HMACResponse) String() string
type HashRequest ¶
type HashRequest struct { Algorithm HashType `protobuf:"varint,1,opt,name=algorithm,proto3,enum=HashType" json:"algorithm,omitempty"` Input string `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
func (*HashRequest) Descriptor
deprecated
func (*HashRequest) Descriptor() ([]byte, []int)
Deprecated: Use HashRequest.ProtoReflect.Descriptor instead.
func (*HashRequest) GetAlgorithm ¶
func (x *HashRequest) GetAlgorithm() HashType
func (*HashRequest) GetFormat ¶
func (x *HashRequest) GetFormat() string
func (*HashRequest) GetInput ¶
func (x *HashRequest) GetInput() string
func (*HashRequest) ProtoMessage ¶
func (*HashRequest) ProtoMessage()
func (*HashRequest) ProtoReflect ¶
func (x *HashRequest) ProtoReflect() protoreflect.Message
func (*HashRequest) Reset ¶
func (x *HashRequest) Reset()
func (*HashRequest) String ¶
func (x *HashRequest) String() string
type HashResponse ¶
type HashResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*HashResponse) Descriptor
deprecated
func (*HashResponse) Descriptor() ([]byte, []int)
Deprecated: Use HashResponse.ProtoReflect.Descriptor instead.
func (*HashResponse) GetResult ¶
func (x *HashResponse) GetResult() string
func (*HashResponse) ProtoMessage ¶
func (*HashResponse) ProtoMessage()
func (*HashResponse) ProtoReflect ¶
func (x *HashResponse) ProtoReflect() protoreflect.Message
func (*HashResponse) Reset ¶
func (x *HashResponse) Reset()
func (*HashResponse) String ¶
func (x *HashResponse) String() string
type HashType ¶
type HashType int32
func (HashType) Descriptor ¶
func (HashType) Descriptor() protoreflect.EnumDescriptor
func (HashType) EnumDescriptor
deprecated
func (HashType) Number ¶
func (x HashType) Number() protoreflect.EnumNumber
func (HashType) Type ¶
func (HashType) Type() protoreflect.EnumType
type HealthRequest ¶
type HealthRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*HealthRequest) Descriptor
deprecated
func (*HealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
func (*HealthRequest) GetAddress ¶
func (x *HealthRequest) GetAddress() string
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) ProtoReflect ¶
func (x *HealthRequest) ProtoReflect() protoreflect.Message
func (*HealthRequest) Reset ¶
func (x *HealthRequest) Reset()
func (*HealthRequest) String ¶
func (x *HealthRequest) String() string
type HealthResponse ¶
type HealthResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HealthResponse) Descriptor
deprecated
func (*HealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
func (*HealthResponse) GetMessage ¶
func (x *HealthResponse) GetMessage() string
func (*HealthResponse) GetStatus ¶
func (x *HealthResponse) GetStatus() string
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) ProtoReflect ¶
func (x *HealthResponse) ProtoReflect() protoreflect.Message
func (*HealthResponse) Reset ¶
func (x *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (x *HealthResponse) String() string
type Key ¶
type Key struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type EncryptionType `protobuf:"varint,2,opt,name=type,proto3,enum=EncryptionType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Key) Descriptor
deprecated
func (*Key) GetType ¶
func (x *Key) GetType() EncryptionType
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type KeyConfig ¶ added in v0.2.0
type KeyConfig struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` MinDecryptionVersion *int64 `protobuf:"varint,2,opt,name=minDecryptionVersion,proto3,oneof" json:"minDecryptionVersion,omitempty"` MinEncryptionVersion *int64 `protobuf:"varint,3,opt,name=minEncryptionVersion,proto3,oneof" json:"minEncryptionVersion,omitempty"` DeletionAllowed *bool `protobuf:"varint,4,opt,name=deletionAllowed,proto3,oneof" json:"deletionAllowed,omitempty"` Exportable *bool `protobuf:"varint,5,opt,name=exportable,proto3,oneof" json:"exportable,omitempty"` AllowPlaintextBackup *bool `protobuf:"varint,6,opt,name=allowPlaintextBackup,proto3,oneof" json:"allowPlaintextBackup,omitempty"` // contains filtered or unexported fields }
func (*KeyConfig) Descriptor
deprecated
added in
v0.2.0
func (*KeyConfig) GetAllowPlaintextBackup ¶ added in v0.2.0
func (*KeyConfig) GetDeletionAllowed ¶ added in v0.2.0
func (*KeyConfig) GetExportable ¶ added in v0.2.0
func (*KeyConfig) GetKeyName ¶ added in v0.2.0
func (*KeyConfig) GetMinDecryptionVersion ¶ added in v0.2.0
func (*KeyConfig) GetMinEncryptionVersion ¶ added in v0.2.0
func (*KeyConfig) ProtoMessage ¶ added in v0.2.0
func (*KeyConfig) ProtoMessage()
func (*KeyConfig) ProtoReflect ¶ added in v0.2.0
func (x *KeyConfig) ProtoReflect() protoreflect.Message
type KeyListResponse ¶
type KeyListResponse struct { Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Keys []*Key `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*KeyListResponse) Descriptor
deprecated
func (*KeyListResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyListResponse.ProtoReflect.Descriptor instead.
func (*KeyListResponse) GetKeys ¶
func (x *KeyListResponse) GetKeys() []*Key
func (*KeyListResponse) GetMessage ¶
func (x *KeyListResponse) GetMessage() string
func (*KeyListResponse) GetStatus ¶
func (x *KeyListResponse) GetStatus() Status
func (*KeyListResponse) ProtoMessage ¶
func (*KeyListResponse) ProtoMessage()
func (*KeyListResponse) ProtoReflect ¶
func (x *KeyListResponse) ProtoReflect() protoreflect.Message
func (*KeyListResponse) Reset ¶
func (x *KeyListResponse) Reset()
func (*KeyListResponse) String ¶
func (x *KeyListResponse) String() string
type KeyName ¶
type KeyName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*KeyName) Descriptor
deprecated
func (*KeyName) ProtoMessage ¶
func (*KeyName) ProtoMessage()
func (*KeyName) ProtoReflect ¶
func (x *KeyName) ProtoReflect() protoreflect.Message
type KeyResponse ¶
type KeyResponse struct { Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=Status" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Key *Key `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*KeyResponse) Descriptor
deprecated
func (*KeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyResponse.ProtoReflect.Descriptor instead.
func (*KeyResponse) GetKey ¶
func (x *KeyResponse) GetKey() *Key
func (*KeyResponse) GetMessage ¶
func (x *KeyResponse) GetMessage() string
func (*KeyResponse) GetStatus ¶
func (x *KeyResponse) GetStatus() Status
func (*KeyResponse) ProtoMessage ¶
func (*KeyResponse) ProtoMessage()
func (*KeyResponse) ProtoReflect ¶
func (x *KeyResponse) ProtoReflect() protoreflect.Message
func (*KeyResponse) Reset ¶
func (x *KeyResponse) Reset()
func (*KeyResponse) String ¶
func (x *KeyResponse) String() string
type RestoreRequest ¶ added in v0.2.0
type RestoreRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` Backup64 string `protobuf:"bytes,2,opt,name=backup64,proto3" json:"backup64,omitempty"` Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
func (*RestoreRequest) Descriptor
deprecated
added in
v0.2.0
func (*RestoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead.
func (*RestoreRequest) GetBackup64 ¶ added in v0.2.0
func (x *RestoreRequest) GetBackup64() string
func (*RestoreRequest) GetForce ¶ added in v0.2.0
func (x *RestoreRequest) GetForce() bool
func (*RestoreRequest) GetKeyName ¶ added in v0.2.0
func (x *RestoreRequest) GetKeyName() string
func (*RestoreRequest) ProtoMessage ¶ added in v0.2.0
func (*RestoreRequest) ProtoMessage()
func (*RestoreRequest) ProtoReflect ¶ added in v0.2.0
func (x *RestoreRequest) ProtoReflect() protoreflect.Message
func (*RestoreRequest) Reset ¶ added in v0.2.0
func (x *RestoreRequest) Reset()
func (*RestoreRequest) String ¶ added in v0.2.0
func (x *RestoreRequest) String() string
type RewrapRequest ¶ added in v0.2.0
type RewrapRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` PlainText string `protobuf:"bytes,2,opt,name=plainText,proto3" json:"plainText,omitempty"` Context string `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"` Nonce string `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"` KeyVersion int64 `protobuf:"varint,5,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` // contains filtered or unexported fields }
func (*RewrapRequest) Descriptor
deprecated
added in
v0.2.0
func (*RewrapRequest) Descriptor() ([]byte, []int)
Deprecated: Use RewrapRequest.ProtoReflect.Descriptor instead.
func (*RewrapRequest) GetContext ¶ added in v0.2.0
func (x *RewrapRequest) GetContext() string
func (*RewrapRequest) GetKeyName ¶ added in v0.2.0
func (x *RewrapRequest) GetKeyName() string
func (*RewrapRequest) GetKeyVersion ¶ added in v0.2.0
func (x *RewrapRequest) GetKeyVersion() int64
func (*RewrapRequest) GetNonce ¶ added in v0.2.0
func (x *RewrapRequest) GetNonce() string
func (*RewrapRequest) GetPlainText ¶ added in v0.2.0
func (x *RewrapRequest) GetPlainText() string
func (*RewrapRequest) ProtoMessage ¶ added in v0.2.0
func (*RewrapRequest) ProtoMessage()
func (*RewrapRequest) ProtoReflect ¶ added in v0.2.0
func (x *RewrapRequest) ProtoReflect() protoreflect.Message
func (*RewrapRequest) Reset ¶ added in v0.2.0
func (x *RewrapRequest) Reset()
func (*RewrapRequest) String ¶ added in v0.2.0
func (x *RewrapRequest) String() string
type RotateRequest ¶ added in v0.2.0
type RotateRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` // contains filtered or unexported fields }
func (*RotateRequest) Descriptor
deprecated
added in
v0.2.0
func (*RotateRequest) Descriptor() ([]byte, []int)
Deprecated: Use RotateRequest.ProtoReflect.Descriptor instead.
func (*RotateRequest) GetKeyName ¶ added in v0.2.0
func (x *RotateRequest) GetKeyName() string
func (*RotateRequest) ProtoMessage ¶ added in v0.2.0
func (*RotateRequest) ProtoMessage()
func (*RotateRequest) ProtoReflect ¶ added in v0.2.0
func (x *RotateRequest) ProtoReflect() protoreflect.Message
func (*RotateRequest) Reset ¶ added in v0.2.0
func (x *RotateRequest) Reset()
func (*RotateRequest) String ¶ added in v0.2.0
func (x *RotateRequest) String() string
type SignParameters ¶
type SignParameters struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` KeyVersion int64 `protobuf:"varint,2,opt,name=keyVersion,proto3" json:"keyVersion,omitempty"` HashAlgorithm HashType `protobuf:"varint,3,opt,name=hashAlgorithm,proto3,enum=HashType" json:"hashAlgorithm,omitempty"` Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` Context string `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"` Prehashed bool `protobuf:"varint,6,opt,name=prehashed,proto3" json:"prehashed,omitempty"` SignatureAlgorithm string `protobuf:"bytes,7,opt,name=signatureAlgorithm,proto3" json:"signatureAlgorithm,omitempty"` // contains filtered or unexported fields }
func (*SignParameters) Descriptor
deprecated
func (*SignParameters) Descriptor() ([]byte, []int)
Deprecated: Use SignParameters.ProtoReflect.Descriptor instead.
func (*SignParameters) GetContext ¶
func (x *SignParameters) GetContext() string
func (*SignParameters) GetHashAlgorithm ¶
func (x *SignParameters) GetHashAlgorithm() HashType
func (*SignParameters) GetInput ¶
func (x *SignParameters) GetInput() string
func (*SignParameters) GetKeyName ¶
func (x *SignParameters) GetKeyName() string
func (*SignParameters) GetKeyVersion ¶
func (x *SignParameters) GetKeyVersion() int64
func (*SignParameters) GetPrehashed ¶
func (x *SignParameters) GetPrehashed() bool
func (*SignParameters) GetSignatureAlgorithm ¶
func (x *SignParameters) GetSignatureAlgorithm() string
func (*SignParameters) ProtoMessage ¶
func (*SignParameters) ProtoMessage()
func (*SignParameters) ProtoReflect ¶
func (x *SignParameters) ProtoReflect() protoreflect.Message
func (*SignParameters) Reset ¶
func (x *SignParameters) Reset()
func (*SignParameters) String ¶
func (x *SignParameters) String() string
type SignResponse ¶
type SignResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` PubKey string `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"` // contains filtered or unexported fields }
func (*SignResponse) Descriptor
deprecated
func (*SignResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) GetPubKey ¶
func (x *SignResponse) GetPubKey() string
func (*SignResponse) GetResult ¶
func (x *SignResponse) GetResult() string
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) ProtoReflect ¶
func (x *SignResponse) ProtoReflect() protoreflect.Message
func (*SignResponse) Reset ¶
func (x *SignResponse) Reset()
func (*SignResponse) String ¶
func (x *SignResponse) String() string
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedEncryptionServer ¶
type UnimplementedEncryptionServer struct { }
UnimplementedEncryptionServer must be embedded to have forward compatible implementations.
func (UnimplementedEncryptionServer) BackupKey ¶ added in v0.2.0
func (UnimplementedEncryptionServer) BackupKey(context.Context, *BackupRequest) (*BackupResult, error)
func (UnimplementedEncryptionServer) CreateKey ¶
func (UnimplementedEncryptionServer) CreateKey(context.Context, *Key) (*KeyResponse, error)
func (UnimplementedEncryptionServer) Decrypt ¶
func (UnimplementedEncryptionServer) Decrypt(context.Context, *DecryptRequest) (*CryptoResult, error)
func (UnimplementedEncryptionServer) DeleteKey ¶
func (UnimplementedEncryptionServer) DeleteKey(context.Context, *KeyName) (*KeyResponse, error)
func (UnimplementedEncryptionServer) Encrypt ¶
func (UnimplementedEncryptionServer) Encrypt(context.Context, *EncryptRequest) (*CryptoResult, error)
func (UnimplementedEncryptionServer) ExportKey ¶ added in v0.2.0
func (UnimplementedEncryptionServer) ExportKey(context.Context, *ExportRequest) (*ExportResult, error)
func (UnimplementedEncryptionServer) GenerateHMAC ¶
func (UnimplementedEncryptionServer) GenerateHMAC(context.Context, *HMACRequest) (*HMACResponse, error)
func (UnimplementedEncryptionServer) GenerateKey ¶ added in v0.2.0
func (UnimplementedEncryptionServer) GenerateKey(context.Context, *GenerateKeyRequest) (*GenerateKeyResponse, error)
func (UnimplementedEncryptionServer) GenerateRandomBytes ¶ added in v0.2.0
func (UnimplementedEncryptionServer) GenerateRandomBytes(context.Context, *GenerateBytesRequest) (*GenerateBytesResponse, error)
func (UnimplementedEncryptionServer) Hash ¶
func (UnimplementedEncryptionServer) Hash(context.Context, *HashRequest) (*HashResponse, error)
func (UnimplementedEncryptionServer) Health ¶
func (UnimplementedEncryptionServer) Health(context.Context, *HealthRequest) (*HealthResponse, error)
func (UnimplementedEncryptionServer) ListKeys ¶
func (UnimplementedEncryptionServer) ListKeys(context.Context, *Empty) (*KeyListResponse, error)
func (UnimplementedEncryptionServer) ReadKey ¶
func (UnimplementedEncryptionServer) ReadKey(context.Context, *KeyName) (*KeyResponse, error)
func (UnimplementedEncryptionServer) RestoreKey ¶ added in v0.2.0
func (UnimplementedEncryptionServer) RestoreKey(context.Context, *RestoreRequest) (*Empty, error)
func (UnimplementedEncryptionServer) Rewrap ¶ added in v0.2.0
func (UnimplementedEncryptionServer) Rewrap(context.Context, *RewrapRequest) (*CryptoResult, error)
func (UnimplementedEncryptionServer) RotateKey ¶ added in v0.2.0
func (UnimplementedEncryptionServer) RotateKey(context.Context, *RotateRequest) (*Empty, error)
func (UnimplementedEncryptionServer) Sign ¶
func (UnimplementedEncryptionServer) Sign(context.Context, *SignParameters) (*SignResponse, error)
func (UnimplementedEncryptionServer) UpdateKeyConfiguration ¶ added in v0.2.0
func (UnimplementedEncryptionServer) VerifySigned ¶
func (UnimplementedEncryptionServer) VerifySigned(context.Context, *VerificationRequest) (*VerificationResponse, error)
type UnsafeEncryptionServer ¶
type UnsafeEncryptionServer interface {
// contains filtered or unexported methods
}
UnsafeEncryptionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EncryptionServer will result in compilation errors.
type VerificationRequest ¶
type VerificationRequest struct { KeyName string `protobuf:"bytes,1,opt,name=keyName,proto3" json:"keyName,omitempty"` HashAlgorithm HashType `protobuf:"varint,2,opt,name=hashAlgorithm,proto3,enum=HashType" json:"hashAlgorithm,omitempty"` Input string `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` Hmac string `protobuf:"bytes,5,opt,name=hmac,proto3" json:"hmac,omitempty"` Context string `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"` Prehashed bool `protobuf:"varint,7,opt,name=prehashed,proto3" json:"prehashed,omitempty"` SignatureAlgorithm string `protobuf:"bytes,8,opt,name=signatureAlgorithm,proto3" json:"signatureAlgorithm,omitempty"` // contains filtered or unexported fields }
func (*VerificationRequest) Descriptor
deprecated
func (*VerificationRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerificationRequest.ProtoReflect.Descriptor instead.
func (*VerificationRequest) GetContext ¶
func (x *VerificationRequest) GetContext() string
func (*VerificationRequest) GetHashAlgorithm ¶
func (x *VerificationRequest) GetHashAlgorithm() HashType
func (*VerificationRequest) GetHmac ¶
func (x *VerificationRequest) GetHmac() string
func (*VerificationRequest) GetInput ¶
func (x *VerificationRequest) GetInput() string
func (*VerificationRequest) GetKeyName ¶
func (x *VerificationRequest) GetKeyName() string
func (*VerificationRequest) GetPrehashed ¶
func (x *VerificationRequest) GetPrehashed() bool
func (*VerificationRequest) GetSignature ¶
func (x *VerificationRequest) GetSignature() string
func (*VerificationRequest) GetSignatureAlgorithm ¶
func (x *VerificationRequest) GetSignatureAlgorithm() string
func (*VerificationRequest) ProtoMessage ¶
func (*VerificationRequest) ProtoMessage()
func (*VerificationRequest) ProtoReflect ¶
func (x *VerificationRequest) ProtoReflect() protoreflect.Message
func (*VerificationRequest) Reset ¶
func (x *VerificationRequest) Reset()
func (*VerificationRequest) String ¶
func (x *VerificationRequest) String() string
type VerificationResponse ¶
type VerificationResponse struct { VerificationResult bool `protobuf:"varint,1,opt,name=verificationResult,proto3" json:"verificationResult,omitempty"` // contains filtered or unexported fields }
func (*VerificationResponse) Descriptor
deprecated
func (*VerificationResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerificationResponse.ProtoReflect.Descriptor instead.
func (*VerificationResponse) GetVerificationResult ¶
func (x *VerificationResponse) GetVerificationResult() bool
func (*VerificationResponse) ProtoMessage ¶
func (*VerificationResponse) ProtoMessage()
func (*VerificationResponse) ProtoReflect ¶
func (x *VerificationResponse) ProtoReflect() protoreflect.Message
func (*VerificationResponse) Reset ¶
func (x *VerificationResponse) Reset()
func (*VerificationResponse) String ¶
func (x *VerificationResponse) String() string