crypto

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetAssociatedDataLength

func (x *Header) GetAssociatedDataLength() int32

func (*Header) GetMetadata

func (x *Header) GetMetadata() []byte

func (*Header) GetSignatureAlgorithm

func (x *Header) GetSignatureAlgorithm() SignatureAlgorithm

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() *timestamppb.Timestamp

func (*Header) GetVerificationKeyId

func (x *Header) GetVerificationKeyId() []byte

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

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) Enum

func (SignatureAlgorithm) EnumDescriptor deprecated

func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignatureAlgorithm.Descriptor instead.

func (SignatureAlgorithm) Number

func (SignatureAlgorithm) String

func (x SignatureAlgorithm) String() string

func (SignatureAlgorithm) Type

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

Jump to

Keyboard shortcuts

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