services

package
v0.0.0-...-893f904 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Crypto_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.crypto.services.Crypto",
	HandlerType: (*CryptoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "encrypt",
			Handler:    _Crypto_Encrypt_Handler,
		},
		{
			MethodName: "decrypt",
			Handler:    _Crypto_Decrypt_Handler,
		},
		{
			MethodName: "sign",
			Handler:    _Crypto_Sign_Handler,
		},
		{
			MethodName: "verify",
			Handler:    _Crypto_Verify_Handler,
		},
		{
			MethodName: "computeMac",
			Handler:    _Crypto_ComputeMac_Handler,
		},
		{
			MethodName: "verifyMac",
			Handler:    _Crypto_VerifyMac_Handler,
		},
		{
			MethodName: "wrapKey",
			Handler:    _Crypto_WrapKey_Handler,
		},
		{
			MethodName: "unwrapKey",
			Handler:    _Crypto_UnwrapKey_Handler,
		},
		{
			MethodName: "signMulti",
			Handler:    _Crypto_SignMulti_Handler,
		},
		{
			MethodName: "verifyMulti",
			Handler:    _Crypto_VerifyMulti_Handler,
		},
		{
			MethodName: "verifyProof",
			Handler:    _Crypto_VerifyProof_Handler,
		},
		{
			MethodName: "deriveProof",
			Handler:    _Crypto_DeriveProof_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/crypto/services/crypto.proto",
}

Crypto_ServiceDesc is the grpc.ServiceDesc for Crypto service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_crypto_services_crypto_proto protoreflect.FileDescriptor

Functions

func RegisterCryptoServer

func RegisterCryptoServer(s grpc.ServiceRegistrar, srv CryptoServer)

Types

type ComputeMacRequest

type ComputeMacRequest struct {
	Data []byte     `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Kh   *anypb.Any `protobuf:"bytes,2,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

ComputeMacRequest mac

func (*ComputeMacRequest) Descriptor deprecated

func (*ComputeMacRequest) Descriptor() ([]byte, []int)

Deprecated: Use ComputeMacRequest.ProtoReflect.Descriptor instead.

func (*ComputeMacRequest) GetData

func (x *ComputeMacRequest) GetData() []byte

func (*ComputeMacRequest) GetKh

func (x *ComputeMacRequest) GetKh() *anypb.Any

func (*ComputeMacRequest) ProtoMessage

func (*ComputeMacRequest) ProtoMessage()

func (*ComputeMacRequest) ProtoReflect

func (x *ComputeMacRequest) ProtoReflect() protoreflect.Message

func (*ComputeMacRequest) Reset

func (x *ComputeMacRequest) Reset()

func (*ComputeMacRequest) String

func (x *ComputeMacRequest) String() string

type ComputeMacResponse

type ComputeMacResponse struct {
	Mac []byte `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	// contains filtered or unexported fields
}

ComputeMacResponse mac

func (*ComputeMacResponse) Descriptor deprecated

func (*ComputeMacResponse) Descriptor() ([]byte, []int)

Deprecated: Use ComputeMacResponse.ProtoReflect.Descriptor instead.

func (*ComputeMacResponse) GetMac

func (x *ComputeMacResponse) GetMac() []byte

func (*ComputeMacResponse) ProtoMessage

func (*ComputeMacResponse) ProtoMessage()

func (*ComputeMacResponse) ProtoReflect

func (x *ComputeMacResponse) ProtoReflect() protoreflect.Message

func (*ComputeMacResponse) Reset

func (x *ComputeMacResponse) Reset()

func (*ComputeMacResponse) String

func (x *ComputeMacResponse) String() string

type CryptoClient

type CryptoClient interface {
	// Encrypt will encrypt msg and aad using a matching AEAD primitive in kh key handle of a public key
	// returns:
	//              cipherText in []byte
	//              nonce in []byte
	//              error in case of errors during encryption
	// POST /crypto/encrypt
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error)
	// Decrypt will decrypt cipher with aad and given nonce using a matching AEAD primitive in kh key handle of a
	// private key
	// returns:
	//              plainText in []byte
	//              error in case of errors
	// POST /crypto/decrypt
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error)
	// Sign will sign msg using a matching signature primitive in kh key handle of a private key
	// returns:
	//              signature in []byte
	//              error in case of errors
	// POST /crypto/sign
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
	// Verify will verify a signature for the given msg using a matching signature primitive in kh key handle of
	// a public key
	// returns:
	//              error in case of errors or nil if signature verification was successful
	// POST /crypto/verify
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error)
	// ComputeMAC computes message authentication code (MAC) for code data
	// using a matching MAC primitive in kh key handle
	// POST /crypto/computeMac
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	ComputeMac(ctx context.Context, in *ComputeMacRequest, opts ...grpc.CallOption) (*ComputeMacResponse, error)
	// VerifyMAC determines if mac is a correct authentication code (MAC) for data
	// using a matching MAC primitive in kh key handle and returns nil if so, otherwise it returns an error.
	// POST /crypto/verifyMac
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	VerifyMac(ctx context.Context, in *VerifyMacRequest, opts ...grpc.CallOption) (*VerifyMacResponse, error)
	// WrapKey will execute key wrapping of cek using apu, apv and recipient public key 'recPubKey'.
	// 'opts' allows setting the optional sender key handle using WithSender() option and the an authentication tag
	// using WithTag() option. These allow ECDH-1PU key unwrapping (aka Authcrypt).
	// The absence of these options uses ECDH-ES key wrapping (aka Anoncrypt). Another option that can
	// be used is WithXC20PKW() to instruct the WrapKey to use XC20P key wrapping instead of the default A256GCM.
	// returns:
	//              RecipientWrappedKey containing the wrapped cek value
	//              error in case of errors
	// POST /crypto/wrapKey
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	WrapKey(ctx context.Context, in *WrapKeyRequest, opts ...grpc.CallOption) (*WrapKeyResponse, error)
	// UnwrapKey unwraps a key in recWK using recipient private key kh.
	// 'opts' allows setting the optional sender key handle using WithSender() option and the an authentication tag
	// using WithTag() option. These allow ECDH-1PU key unwrapping (aka Authcrypt).
	// The absence of these options uses ECDH-ES key unwrapping (aka Anoncrypt). There is no need to
	// use WithXC20PKW() for UnwrapKey since the function will use the wrapping algorithm based on recWK.Alg.
	// returns:
	//              unwrapped key in raw bytes
	//              error in case of errors
	// POST /crypto/unwrapKey
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	UnwrapKey(ctx context.Context, in *UnwrapKeyRequest, opts ...grpc.CallOption) (*UnwrapKeyResponse, error)
	// SignMulti will create a signature of messages using a matching signing primitive found in kh key handle of a
	// private key.
	// returns:
	//              signature in []byte
	//              error in case of errors
	// POST /crypto/signMulti
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	SignMulti(ctx context.Context, in *SignMultiRequest, opts ...grpc.CallOption) (*SignMultiResponse, error)
	// VerifyMulti will verify a signature of messages using a matching signing primitive found in kh key handle of a
	// public key.
	// returns:
	//              error in case of errors or nil if signature verification was successful
	// POST /crypto/verifyMulti
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	VerifyMulti(ctx context.Context, in *VerifyMultiRequest, opts ...grpc.CallOption) (*VerifyMultiResponse, error)
	// VerifyProof will verify a signature proof (generated e.g. by Verifier's DeriveProof() call) for revealedMessages
	// using a matching signing primitive found in kh key handle of a public key.
	// returns:
	//              error in case of errors or nil if signature proof verification was successful
	// POST /crypto/verifyProof
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	VerifyProof(ctx context.Context, in *VerifyProofRequest, opts ...grpc.CallOption) (*VerifyProofResponse, error)
	// DeriveProof will create a signature proof for a list of revealed messages using BBS signature (can be built using
	// a Signer's SignMulti() call) and a matching signing primitive found in kh key handle of a public key.
	// returns:
	//              signature proof in []byte
	//              error in case of errors
	// POST /crypto/deriveProof
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	DeriveProof(ctx context.Context, in *DeriveProofRequest, opts ...grpc.CallOption) (*DeriveProofResponse, error)
}

CryptoClient is the client API for Crypto 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 NewCryptoClient

func NewCryptoClient(cc grpc.ClientConnInterface) CryptoClient

type CryptoServer

type CryptoServer interface {
	// Encrypt will encrypt msg and aad using a matching AEAD primitive in kh key handle of a public key
	// returns:
	//              cipherText in []byte
	//              nonce in []byte
	//              error in case of errors during encryption
	// POST /crypto/encrypt
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
	// Decrypt will decrypt cipher with aad and given nonce using a matching AEAD primitive in kh key handle of a
	// private key
	// returns:
	//              plainText in []byte
	//              error in case of errors
	// POST /crypto/decrypt
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
	// Sign will sign msg using a matching signature primitive in kh key handle of a private key
	// returns:
	//              signature in []byte
	//              error in case of errors
	// POST /crypto/sign
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Sign(context.Context, *SignRequest) (*SignResponse, error)
	// Verify will verify a signature for the given msg using a matching signature primitive in kh key handle of
	// a public key
	// returns:
	//              error in case of errors or nil if signature verification was successful
	// POST /crypto/verify
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
	// ComputeMAC computes message authentication code (MAC) for code data
	// using a matching MAC primitive in kh key handle
	// POST /crypto/computeMac
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	ComputeMac(context.Context, *ComputeMacRequest) (*ComputeMacResponse, error)
	// VerifyMAC determines if mac is a correct authentication code (MAC) for data
	// using a matching MAC primitive in kh key handle and returns nil if so, otherwise it returns an error.
	// POST /crypto/verifyMac
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	VerifyMac(context.Context, *VerifyMacRequest) (*VerifyMacResponse, error)
	// WrapKey will execute key wrapping of cek using apu, apv and recipient public key 'recPubKey'.
	// 'opts' allows setting the optional sender key handle using WithSender() option and the an authentication tag
	// using WithTag() option. These allow ECDH-1PU key unwrapping (aka Authcrypt).
	// The absence of these options uses ECDH-ES key wrapping (aka Anoncrypt). Another option that can
	// be used is WithXC20PKW() to instruct the WrapKey to use XC20P key wrapping instead of the default A256GCM.
	// returns:
	//              RecipientWrappedKey containing the wrapped cek value
	//              error in case of errors
	// POST /crypto/wrapKey
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	WrapKey(context.Context, *WrapKeyRequest) (*WrapKeyResponse, error)
	// UnwrapKey unwraps a key in recWK using recipient private key kh.
	// 'opts' allows setting the optional sender key handle using WithSender() option and the an authentication tag
	// using WithTag() option. These allow ECDH-1PU key unwrapping (aka Authcrypt).
	// The absence of these options uses ECDH-ES key unwrapping (aka Anoncrypt). There is no need to
	// use WithXC20PKW() for UnwrapKey since the function will use the wrapping algorithm based on recWK.Alg.
	// returns:
	//              unwrapped key in raw bytes
	//              error in case of errors
	// POST /crypto/unwrapKey
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	UnwrapKey(context.Context, *UnwrapKeyRequest) (*UnwrapKeyResponse, error)
	// SignMulti will create a signature of messages using a matching signing primitive found in kh key handle of a
	// private key.
	// returns:
	//              signature in []byte
	//              error in case of errors
	// POST /crypto/signMulti
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	SignMulti(context.Context, *SignMultiRequest) (*SignMultiResponse, error)
	// VerifyMulti will verify a signature of messages using a matching signing primitive found in kh key handle of a
	// public key.
	// returns:
	//              error in case of errors or nil if signature verification was successful
	// POST /crypto/verifyMulti
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	VerifyMulti(context.Context, *VerifyMultiRequest) (*VerifyMultiResponse, error)
	// VerifyProof will verify a signature proof (generated e.g. by Verifier's DeriveProof() call) for revealedMessages
	// using a matching signing primitive found in kh key handle of a public key.
	// returns:
	//              error in case of errors or nil if signature proof verification was successful
	// POST /crypto/verifyProof
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	VerifyProof(context.Context, *VerifyProofRequest) (*VerifyProofResponse, error)
	// DeriveProof will create a signature proof for a list of revealed messages using BBS signature (can be built using
	// a Signer's SignMulti() call) and a matching signing primitive found in kh key handle of a public key.
	// returns:
	//              signature proof in []byte
	//              error in case of errors
	// POST /crypto/deriveProof
	// 200	successfully !
	// 400	Invalid or malformed input
	// 413	Payload too large
	// 429	Request rate limit exceeded.
	// 500	error!
	DeriveProof(context.Context, *DeriveProofRequest) (*DeriveProofResponse, error)
	// contains filtered or unexported methods
}

CryptoServer is the server API for Crypto service. All implementations must embed UnimplementedCryptoServer for forward compatibility

type DecryptRequest

type DecryptRequest struct {
	Cipher []byte     `protobuf:"bytes,1,opt,name=cipher,proto3" json:"cipher,omitempty"`
	Aad    []byte     `protobuf:"bytes,2,opt,name=aad,proto3" json:"aad,omitempty"`
	Nonce  []byte     `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Kh     *anypb.Any `protobuf:"bytes,4,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

DecryptRequest decrypt

func (*DecryptRequest) Descriptor deprecated

func (*DecryptRequest) Descriptor() ([]byte, []int)

Deprecated: Use DecryptRequest.ProtoReflect.Descriptor instead.

func (*DecryptRequest) GetAad

func (x *DecryptRequest) GetAad() []byte

func (*DecryptRequest) GetCipher

func (x *DecryptRequest) GetCipher() []byte

func (*DecryptRequest) GetKh

func (x *DecryptRequest) GetKh() *anypb.Any

func (*DecryptRequest) GetNonce

func (x *DecryptRequest) GetNonce() []byte

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 DecryptResponse

type DecryptResponse struct {
	PlainText []byte `protobuf:"bytes,1,opt,name=plainText,proto3" json:"plainText,omitempty"`
	// contains filtered or unexported fields
}

EncryptResponse decrypt

func (*DecryptResponse) Descriptor deprecated

func (*DecryptResponse) Descriptor() ([]byte, []int)

Deprecated: Use DecryptResponse.ProtoReflect.Descriptor instead.

func (*DecryptResponse) GetPlainText

func (x *DecryptResponse) GetPlainText() []byte

func (*DecryptResponse) ProtoMessage

func (*DecryptResponse) ProtoMessage()

func (*DecryptResponse) ProtoReflect

func (x *DecryptResponse) ProtoReflect() protoreflect.Message

func (*DecryptResponse) Reset

func (x *DecryptResponse) Reset()

func (*DecryptResponse) String

func (x *DecryptResponse) String() string

type DeriveProofRequest

type DeriveProofRequest struct {
	RevealedMessages [][]byte   `protobuf:"bytes,1,rep,name=revealedMessages,proto3" json:"revealedMessages,omitempty"`
	BbsSignature     []byte     `protobuf:"bytes,2,opt,name=bbsSignature,proto3" json:"bbsSignature,omitempty"`
	Nonce            []byte     `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	RevealedIndexes  []int32    `protobuf:"varint,4,rep,packed,name=revealedIndexes,proto3" json:"revealedIndexes,omitempty"`
	Kh               *anypb.Any `protobuf:"bytes,5,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

DeriveProofRequest proof

func (*DeriveProofRequest) Descriptor deprecated

func (*DeriveProofRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeriveProofRequest.ProtoReflect.Descriptor instead.

func (*DeriveProofRequest) GetBbsSignature

func (x *DeriveProofRequest) GetBbsSignature() []byte

func (*DeriveProofRequest) GetKh

func (x *DeriveProofRequest) GetKh() *anypb.Any

func (*DeriveProofRequest) GetNonce

func (x *DeriveProofRequest) GetNonce() []byte

func (*DeriveProofRequest) GetRevealedIndexes

func (x *DeriveProofRequest) GetRevealedIndexes() []int32

func (*DeriveProofRequest) GetRevealedMessages

func (x *DeriveProofRequest) GetRevealedMessages() [][]byte

func (*DeriveProofRequest) ProtoMessage

func (*DeriveProofRequest) ProtoMessage()

func (*DeriveProofRequest) ProtoReflect

func (x *DeriveProofRequest) ProtoReflect() protoreflect.Message

func (*DeriveProofRequest) Reset

func (x *DeriveProofRequest) Reset()

func (*DeriveProofRequest) String

func (x *DeriveProofRequest) String() string

type DeriveProofResponse

type DeriveProofResponse struct {
	SignatureProof []byte `protobuf:"bytes,1,opt,name=signatureProof,proto3" json:"signatureProof,omitempty"`
	// contains filtered or unexported fields
}

DeriveProofResponse proof

func (*DeriveProofResponse) Descriptor deprecated

func (*DeriveProofResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeriveProofResponse.ProtoReflect.Descriptor instead.

func (*DeriveProofResponse) GetSignatureProof

func (x *DeriveProofResponse) GetSignatureProof() []byte

func (*DeriveProofResponse) ProtoMessage

func (*DeriveProofResponse) ProtoMessage()

func (*DeriveProofResponse) ProtoReflect

func (x *DeriveProofResponse) ProtoReflect() protoreflect.Message

func (*DeriveProofResponse) Reset

func (x *DeriveProofResponse) Reset()

func (*DeriveProofResponse) String

func (x *DeriveProofResponse) String() string

type EncryptRequest

type EncryptRequest struct {
	Message []byte     `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Aad     []byte     `protobuf:"bytes,2,opt,name=aad,proto3" json:"aad,omitempty"`
	Kh      *anypb.Any `protobuf:"bytes,3,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

EncryptRequest encrypt

func (*EncryptRequest) Descriptor deprecated

func (*EncryptRequest) Descriptor() ([]byte, []int)

Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead.

func (*EncryptRequest) GetAad

func (x *EncryptRequest) GetAad() []byte

func (*EncryptRequest) GetKh

func (x *EncryptRequest) GetKh() *anypb.Any

func (*EncryptRequest) GetMessage

func (x *EncryptRequest) GetMessage() []byte

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 EncryptResponse

type EncryptResponse struct {
	CipherText []byte `protobuf:"bytes,1,opt,name=cipherText,proto3" json:"cipherText,omitempty"`
	Nonce      []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

EncryptResponse encrypt

func (*EncryptResponse) Descriptor deprecated

func (*EncryptResponse) Descriptor() ([]byte, []int)

Deprecated: Use EncryptResponse.ProtoReflect.Descriptor instead.

func (*EncryptResponse) GetCipherText

func (x *EncryptResponse) GetCipherText() []byte

func (*EncryptResponse) GetNonce

func (x *EncryptResponse) GetNonce() []byte

func (*EncryptResponse) ProtoMessage

func (*EncryptResponse) ProtoMessage()

func (*EncryptResponse) ProtoReflect

func (x *EncryptResponse) ProtoReflect() protoreflect.Message

func (*EncryptResponse) Reset

func (x *EncryptResponse) Reset()

func (*EncryptResponse) String

func (x *EncryptResponse) String() string

type SignMultiRequest

type SignMultiRequest struct {
	Message [][]byte   `protobuf:"bytes,1,rep,name=message,proto3" json:"message,omitempty"`
	Kh      *anypb.Any `protobuf:"bytes,2,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

SignMultiRequest sign

func (*SignMultiRequest) Descriptor deprecated

func (*SignMultiRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignMultiRequest.ProtoReflect.Descriptor instead.

func (*SignMultiRequest) GetKh

func (x *SignMultiRequest) GetKh() *anypb.Any

func (*SignMultiRequest) GetMessage

func (x *SignMultiRequest) GetMessage() [][]byte

func (*SignMultiRequest) ProtoMessage

func (*SignMultiRequest) ProtoMessage()

func (*SignMultiRequest) ProtoReflect

func (x *SignMultiRequest) ProtoReflect() protoreflect.Message

func (*SignMultiRequest) Reset

func (x *SignMultiRequest) Reset()

func (*SignMultiRequest) String

func (x *SignMultiRequest) String() string

type SignMultiResponse

type SignMultiResponse struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

SignMultiResponse sign

func (*SignMultiResponse) Descriptor deprecated

func (*SignMultiResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignMultiResponse.ProtoReflect.Descriptor instead.

func (*SignMultiResponse) GetSignature

func (x *SignMultiResponse) GetSignature() []byte

func (*SignMultiResponse) ProtoMessage

func (*SignMultiResponse) ProtoMessage()

func (*SignMultiResponse) ProtoReflect

func (x *SignMultiResponse) ProtoReflect() protoreflect.Message

func (*SignMultiResponse) Reset

func (x *SignMultiResponse) Reset()

func (*SignMultiResponse) String

func (x *SignMultiResponse) String() string

type SignRequest

type SignRequest struct {
	Message []byte     `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Kh      *anypb.Any `protobuf:"bytes,2,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

SignRequest sign

func (*SignRequest) Descriptor deprecated

func (*SignRequest) Descriptor() ([]byte, []int)

Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.

func (*SignRequest) GetKh

func (x *SignRequest) GetKh() *anypb.Any

func (*SignRequest) GetMessage

func (x *SignRequest) GetMessage() []byte

func (*SignRequest) ProtoMessage

func (*SignRequest) ProtoMessage()

func (*SignRequest) ProtoReflect

func (x *SignRequest) ProtoReflect() protoreflect.Message

func (*SignRequest) Reset

func (x *SignRequest) Reset()

func (*SignRequest) String

func (x *SignRequest) String() string

type SignResponse

type SignResponse struct {
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

SignResponse sign

func (*SignResponse) Descriptor deprecated

func (*SignResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.

func (*SignResponse) GetSignature

func (x *SignResponse) GetSignature() []byte

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 UnimplementedCryptoServer

type UnimplementedCryptoServer struct {
}

UnimplementedCryptoServer must be embedded to have forward compatible implementations.

func (UnimplementedCryptoServer) ComputeMac

func (UnimplementedCryptoServer) Decrypt

func (UnimplementedCryptoServer) DeriveProof

func (UnimplementedCryptoServer) Encrypt

func (UnimplementedCryptoServer) Sign

func (UnimplementedCryptoServer) SignMulti

func (UnimplementedCryptoServer) UnwrapKey

func (UnimplementedCryptoServer) Verify

func (UnimplementedCryptoServer) VerifyMac

func (UnimplementedCryptoServer) VerifyMulti

func (UnimplementedCryptoServer) VerifyProof

func (UnimplementedCryptoServer) WrapKey

type UnsafeCryptoServer

type UnsafeCryptoServer interface {
	// contains filtered or unexported methods
}

UnsafeCryptoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CryptoServer will result in compilation errors.

type UnwrapKeyRequest

type UnwrapKeyRequest struct {
	RecipientWrappedKey *types.RecipientWrappedKey `protobuf:"bytes,1,opt,name=recipientWrappedKey,proto3" json:"recipientWrappedKey,omitempty"`
	Kh                  *anypb.Any                 `protobuf:"bytes,2,opt,name=kh,proto3" json:"kh,omitempty"`
	UnwrapKeyOpts       map[string]string          `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

UnwrapKeyRequest unwrap

func (*UnwrapKeyRequest) Descriptor deprecated

func (*UnwrapKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnwrapKeyRequest.ProtoReflect.Descriptor instead.

func (*UnwrapKeyRequest) GetKh

func (x *UnwrapKeyRequest) GetKh() *anypb.Any

func (*UnwrapKeyRequest) GetRecipientWrappedKey

func (x *UnwrapKeyRequest) GetRecipientWrappedKey() *types.RecipientWrappedKey

func (*UnwrapKeyRequest) GetUnwrapKeyOpts

func (x *UnwrapKeyRequest) GetUnwrapKeyOpts() map[string]string

func (*UnwrapKeyRequest) ProtoMessage

func (*UnwrapKeyRequest) ProtoMessage()

func (*UnwrapKeyRequest) ProtoReflect

func (x *UnwrapKeyRequest) ProtoReflect() protoreflect.Message

func (*UnwrapKeyRequest) Reset

func (x *UnwrapKeyRequest) Reset()

func (*UnwrapKeyRequest) String

func (x *UnwrapKeyRequest) String() string

type UnwrapKeyResponse

type UnwrapKeyResponse struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

UnwrapKeyResponse wrap

func (*UnwrapKeyResponse) Descriptor deprecated

func (*UnwrapKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use UnwrapKeyResponse.ProtoReflect.Descriptor instead.

func (*UnwrapKeyResponse) GetKey

func (x *UnwrapKeyResponse) GetKey() []byte

func (*UnwrapKeyResponse) ProtoMessage

func (*UnwrapKeyResponse) ProtoMessage()

func (*UnwrapKeyResponse) ProtoReflect

func (x *UnwrapKeyResponse) ProtoReflect() protoreflect.Message

func (*UnwrapKeyResponse) Reset

func (x *UnwrapKeyResponse) Reset()

func (*UnwrapKeyResponse) String

func (x *UnwrapKeyResponse) String() string

type VerifyMacRequest

type VerifyMacRequest struct {
	Mac  []byte     `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Data []byte     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Kh   *anypb.Any `protobuf:"bytes,3,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

VerifyMacRequest mac

func (*VerifyMacRequest) Descriptor deprecated

func (*VerifyMacRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyMacRequest.ProtoReflect.Descriptor instead.

func (*VerifyMacRequest) GetData

func (x *VerifyMacRequest) GetData() []byte

func (*VerifyMacRequest) GetKh

func (x *VerifyMacRequest) GetKh() *anypb.Any

func (*VerifyMacRequest) GetMac

func (x *VerifyMacRequest) GetMac() []byte

func (*VerifyMacRequest) ProtoMessage

func (*VerifyMacRequest) ProtoMessage()

func (*VerifyMacRequest) ProtoReflect

func (x *VerifyMacRequest) ProtoReflect() protoreflect.Message

func (*VerifyMacRequest) Reset

func (x *VerifyMacRequest) Reset()

func (*VerifyMacRequest) String

func (x *VerifyMacRequest) String() string

type VerifyMacResponse

type VerifyMacResponse struct {
	// contains filtered or unexported fields
}

VerifyMacResponse mac

func (*VerifyMacResponse) Descriptor deprecated

func (*VerifyMacResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyMacResponse.ProtoReflect.Descriptor instead.

func (*VerifyMacResponse) ProtoMessage

func (*VerifyMacResponse) ProtoMessage()

func (*VerifyMacResponse) ProtoReflect

func (x *VerifyMacResponse) ProtoReflect() protoreflect.Message

func (*VerifyMacResponse) Reset

func (x *VerifyMacResponse) Reset()

func (*VerifyMacResponse) String

func (x *VerifyMacResponse) String() string

type VerifyMultiRequest

type VerifyMultiRequest struct {
	Message   [][]byte   `protobuf:"bytes,1,rep,name=message,proto3" json:"message,omitempty"`
	Signature []byte     `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Kh        *anypb.Any `protobuf:"bytes,3,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

VerifyMultiRequest verify

func (*VerifyMultiRequest) Descriptor deprecated

func (*VerifyMultiRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyMultiRequest.ProtoReflect.Descriptor instead.

func (*VerifyMultiRequest) GetKh

func (x *VerifyMultiRequest) GetKh() *anypb.Any

func (*VerifyMultiRequest) GetMessage

func (x *VerifyMultiRequest) GetMessage() [][]byte

func (*VerifyMultiRequest) GetSignature

func (x *VerifyMultiRequest) GetSignature() []byte

func (*VerifyMultiRequest) ProtoMessage

func (*VerifyMultiRequest) ProtoMessage()

func (*VerifyMultiRequest) ProtoReflect

func (x *VerifyMultiRequest) ProtoReflect() protoreflect.Message

func (*VerifyMultiRequest) Reset

func (x *VerifyMultiRequest) Reset()

func (*VerifyMultiRequest) String

func (x *VerifyMultiRequest) String() string

type VerifyMultiResponse

type VerifyMultiResponse struct {
	// contains filtered or unexported fields
}

VerifyMultiResponse verify

func (*VerifyMultiResponse) Descriptor deprecated

func (*VerifyMultiResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyMultiResponse.ProtoReflect.Descriptor instead.

func (*VerifyMultiResponse) ProtoMessage

func (*VerifyMultiResponse) ProtoMessage()

func (*VerifyMultiResponse) ProtoReflect

func (x *VerifyMultiResponse) ProtoReflect() protoreflect.Message

func (*VerifyMultiResponse) Reset

func (x *VerifyMultiResponse) Reset()

func (*VerifyMultiResponse) String

func (x *VerifyMultiResponse) String() string

type VerifyProofRequest

type VerifyProofRequest struct {
	RevealedMessages [][]byte   `protobuf:"bytes,1,rep,name=revealedMessages,proto3" json:"revealedMessages,omitempty"`
	Proof            []byte     `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	Nonce            []byte     `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Kh               *anypb.Any `protobuf:"bytes,4,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

VerifyProofRequest proof

func (*VerifyProofRequest) Descriptor deprecated

func (*VerifyProofRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyProofRequest.ProtoReflect.Descriptor instead.

func (*VerifyProofRequest) GetKh

func (x *VerifyProofRequest) GetKh() *anypb.Any

func (*VerifyProofRequest) GetNonce

func (x *VerifyProofRequest) GetNonce() []byte

func (*VerifyProofRequest) GetProof

func (x *VerifyProofRequest) GetProof() []byte

func (*VerifyProofRequest) GetRevealedMessages

func (x *VerifyProofRequest) GetRevealedMessages() [][]byte

func (*VerifyProofRequest) ProtoMessage

func (*VerifyProofRequest) ProtoMessage()

func (*VerifyProofRequest) ProtoReflect

func (x *VerifyProofRequest) ProtoReflect() protoreflect.Message

func (*VerifyProofRequest) Reset

func (x *VerifyProofRequest) Reset()

func (*VerifyProofRequest) String

func (x *VerifyProofRequest) String() string

type VerifyProofResponse

type VerifyProofResponse struct {
	// contains filtered or unexported fields
}

VerifyProofResponse proof

func (*VerifyProofResponse) Descriptor deprecated

func (*VerifyProofResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyProofResponse.ProtoReflect.Descriptor instead.

func (*VerifyProofResponse) ProtoMessage

func (*VerifyProofResponse) ProtoMessage()

func (*VerifyProofResponse) ProtoReflect

func (x *VerifyProofResponse) ProtoReflect() protoreflect.Message

func (*VerifyProofResponse) Reset

func (x *VerifyProofResponse) Reset()

func (*VerifyProofResponse) String

func (x *VerifyProofResponse) String() string

type VerifyRequest

type VerifyRequest struct {
	Message   []byte     `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Signature []byte     `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Kh        *anypb.Any `protobuf:"bytes,3,opt,name=kh,proto3" json:"kh,omitempty"`
	// contains filtered or unexported fields
}

VerifyRequest verify

func (*VerifyRequest) Descriptor deprecated

func (*VerifyRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.

func (*VerifyRequest) GetKh

func (x *VerifyRequest) GetKh() *anypb.Any

func (*VerifyRequest) GetMessage

func (x *VerifyRequest) GetMessage() []byte

func (*VerifyRequest) GetSignature

func (x *VerifyRequest) GetSignature() []byte

func (*VerifyRequest) ProtoMessage

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) ProtoReflect

func (x *VerifyRequest) ProtoReflect() protoreflect.Message

func (*VerifyRequest) Reset

func (x *VerifyRequest) Reset()

func (*VerifyRequest) String

func (x *VerifyRequest) String() string

type VerifyResponse

type VerifyResponse struct {
	// contains filtered or unexported fields
}

VerifyResponse verify

func (*VerifyResponse) Descriptor deprecated

func (*VerifyResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.

func (*VerifyResponse) ProtoMessage

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) ProtoReflect

func (x *VerifyResponse) ProtoReflect() protoreflect.Message

func (*VerifyResponse) Reset

func (x *VerifyResponse) Reset()

func (*VerifyResponse) String

func (x *VerifyResponse) String() string

type WrapKeyRequest

type WrapKeyRequest struct {
	Cek         []byte            `protobuf:"bytes,1,opt,name=cek,proto3" json:"cek,omitempty"`
	Apu         []byte            `protobuf:"bytes,2,opt,name=apu,proto3" json:"apu,omitempty"`
	Apv         []byte            `protobuf:"bytes,3,opt,name=apv,proto3" json:"apv,omitempty"`
	RecPubKey   *types.PublicKey  `protobuf:"bytes,4,opt,name=recPubKey,proto3" json:"recPubKey,omitempty"`
	WrapKeyOpts map[string]string `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

WrapKeyRequest wrap

func (*WrapKeyRequest) Descriptor deprecated

func (*WrapKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use WrapKeyRequest.ProtoReflect.Descriptor instead.

func (*WrapKeyRequest) GetApu

func (x *WrapKeyRequest) GetApu() []byte

func (*WrapKeyRequest) GetApv

func (x *WrapKeyRequest) GetApv() []byte

func (*WrapKeyRequest) GetCek

func (x *WrapKeyRequest) GetCek() []byte

func (*WrapKeyRequest) GetRecPubKey

func (x *WrapKeyRequest) GetRecPubKey() *types.PublicKey

func (*WrapKeyRequest) GetWrapKeyOpts

func (x *WrapKeyRequest) GetWrapKeyOpts() map[string]string

func (*WrapKeyRequest) ProtoMessage

func (*WrapKeyRequest) ProtoMessage()

func (*WrapKeyRequest) ProtoReflect

func (x *WrapKeyRequest) ProtoReflect() protoreflect.Message

func (*WrapKeyRequest) Reset

func (x *WrapKeyRequest) Reset()

func (*WrapKeyRequest) String

func (x *WrapKeyRequest) String() string

type WrapKeyResponse

type WrapKeyResponse struct {
	RecipientWrappedKey *types.RecipientWrappedKey `protobuf:"bytes,1,opt,name=recipientWrappedKey,proto3" json:"recipientWrappedKey,omitempty"`
	// contains filtered or unexported fields
}

WrapKeyResponse unwrap

func (*WrapKeyResponse) Descriptor deprecated

func (*WrapKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use WrapKeyResponse.ProtoReflect.Descriptor instead.

func (*WrapKeyResponse) GetRecipientWrappedKey

func (x *WrapKeyResponse) GetRecipientWrappedKey() *types.RecipientWrappedKey

func (*WrapKeyResponse) ProtoMessage

func (*WrapKeyResponse) ProtoMessage()

func (*WrapKeyResponse) ProtoReflect

func (x *WrapKeyResponse) ProtoReflect() protoreflect.Message

func (*WrapKeyResponse) Reset

func (x *WrapKeyResponse) Reset()

func (*WrapKeyResponse) String

func (x *WrapKeyResponse) String() string

Jump to

Keyboard shortcuts

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