Documentation ¶
Index ¶
- Variables
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetAssociatedDataLength() int32
- func (x *Header) GetMetadata() []byte
- func (x *Header) GetSignatureAlgorithm() SignatureAlgorithm
- func (x *Header) GetTimestamp() *timestamppb.Timestamp
- func (x *Header) GetVerificationKeyId() []byte
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
- type HeaderAndBodyInternal
- func (*HeaderAndBodyInternal) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderAndBodyInternal) GetBody() []byte
- func (x *HeaderAndBodyInternal) GetHeader() []byte
- func (*HeaderAndBodyInternal) ProtoMessage()
- func (x *HeaderAndBodyInternal) ProtoReflect() protoreflect.Message
- func (x *HeaderAndBodyInternal) Reset()
- func (x *HeaderAndBodyInternal) String() string
- type SignatureAlgorithm
- func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x SignatureAlgorithm) Enum() *SignatureAlgorithm
- func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x SignatureAlgorithm) Number() protoreflect.EnumNumber
- func (x SignatureAlgorithm) String() string
- func (SignatureAlgorithm) Type() protoreflect.EnumType
- type SignedMessage
- func (*SignedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SignedMessage) GetHeaderAndBody() []byte
- func (x *SignedMessage) GetSignature() []byte
- func (*SignedMessage) ProtoMessage()
- func (x *SignedMessage) ProtoReflect() protoreflect.Message
- func (x *SignedMessage) Reset()
- func (x *SignedMessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SignatureAlgorithm_name = map[int32]string{ 0: "SIGNATURE_ALGORITHM_UNSPECIFIED", 1: "SIGNATURE_ALGORITHM_ECDSA_WITH_SHA256", 2: "SIGNATURE_ALGORITHM_ECDSA_WITH_SHA384", 3: "SIGNATURE_ALGORITHM_ECDSA_WITH_SHA512", } SignatureAlgorithm_value = map[string]int32{ "SIGNATURE_ALGORITHM_UNSPECIFIED": 0, "SIGNATURE_ALGORITHM_ECDSA_WITH_SHA256": 1, "SIGNATURE_ALGORITHM_ECDSA_WITH_SHA384": 2, "SIGNATURE_ALGORITHM_ECDSA_WITH_SHA512": 3, } )
Enum value maps for SignatureAlgorithm.
View Source
var File_proto_crypto_v1_signed_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { SignatureAlgorithm SignatureAlgorithm `` /* 156-byte string literal not displayed */ VerificationKeyId []byte `protobuf:"bytes,2,opt,name=verification_key_id,json=verificationKeyId,proto3" json:"verification_key_id,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` AssociatedDataLength int32 `protobuf:"varint,5,opt,name=associated_data_length,json=associatedDataLength,proto3" json:"associated_data_length,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) GetAssociatedDataLength ¶
func (*Header) GetMetadata ¶
func (*Header) GetSignatureAlgorithm ¶
func (x *Header) GetSignatureAlgorithm() SignatureAlgorithm
func (*Header) GetTimestamp ¶
func (x *Header) GetTimestamp() *timestamppb.Timestamp
func (*Header) GetVerificationKeyId ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type HeaderAndBodyInternal ¶
type HeaderAndBodyInternal struct { Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*HeaderAndBodyInternal) Descriptor
deprecated
func (*HeaderAndBodyInternal) Descriptor() ([]byte, []int)
Deprecated: Use HeaderAndBodyInternal.ProtoReflect.Descriptor instead.
func (*HeaderAndBodyInternal) GetBody ¶
func (x *HeaderAndBodyInternal) GetBody() []byte
func (*HeaderAndBodyInternal) GetHeader ¶
func (x *HeaderAndBodyInternal) GetHeader() []byte
func (*HeaderAndBodyInternal) ProtoMessage ¶
func (*HeaderAndBodyInternal) ProtoMessage()
func (*HeaderAndBodyInternal) ProtoReflect ¶
func (x *HeaderAndBodyInternal) ProtoReflect() protoreflect.Message
func (*HeaderAndBodyInternal) Reset ¶
func (x *HeaderAndBodyInternal) Reset()
func (*HeaderAndBodyInternal) String ¶
func (x *HeaderAndBodyInternal) String() string
type SignatureAlgorithm ¶
type SignatureAlgorithm int32
const ( SignatureAlgorithm_SIGNATURE_ALGORITHM_UNSPECIFIED SignatureAlgorithm = 0 SignatureAlgorithm_SIGNATURE_ALGORITHM_ECDSA_WITH_SHA256 SignatureAlgorithm = 1 SignatureAlgorithm_SIGNATURE_ALGORITHM_ECDSA_WITH_SHA384 SignatureAlgorithm = 2 SignatureAlgorithm_SIGNATURE_ALGORITHM_ECDSA_WITH_SHA512 SignatureAlgorithm = 3 )
func (SignatureAlgorithm) Descriptor ¶
func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (SignatureAlgorithm) Enum ¶
func (x SignatureAlgorithm) Enum() *SignatureAlgorithm
func (SignatureAlgorithm) EnumDescriptor
deprecated
func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use SignatureAlgorithm.Descriptor instead.
func (SignatureAlgorithm) Number ¶
func (x SignatureAlgorithm) Number() protoreflect.EnumNumber
func (SignatureAlgorithm) String ¶
func (x SignatureAlgorithm) String() string
func (SignatureAlgorithm) Type ¶
func (SignatureAlgorithm) Type() protoreflect.EnumType
type SignedMessage ¶
type SignedMessage struct { HeaderAndBody []byte `protobuf:"bytes,1,opt,name=header_and_body,json=headerAndBody,proto3" json:"header_and_body,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*SignedMessage) Descriptor
deprecated
func (*SignedMessage) Descriptor() ([]byte, []int)
Deprecated: Use SignedMessage.ProtoReflect.Descriptor instead.
func (*SignedMessage) GetHeaderAndBody ¶
func (x *SignedMessage) GetHeaderAndBody() []byte
func (*SignedMessage) GetSignature ¶
func (x *SignedMessage) GetSignature() []byte
func (*SignedMessage) ProtoMessage ¶
func (*SignedMessage) ProtoMessage()
func (*SignedMessage) ProtoReflect ¶
func (x *SignedMessage) ProtoReflect() protoreflect.Message
func (*SignedMessage) Reset ¶
func (x *SignedMessage) Reset()
func (*SignedMessage) String ¶
func (x *SignedMessage) String() string
Click to show internal directories.
Click to hide internal directories.