signatures

package
v2.0.0-...-8e500b6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tag_name = map[int32]string{
		0:   "TAG_SIGNATURE_TYPE",
		1:   "TAG_DOMAIN",
		2:   "TAG_PERSONALIZATION",
		3:   "TAG_EPOCH",
		4:   "TAG_EXPIRES_AT",
		5:   "TAG_COUNTER",
		6:   "TAG_CHALLENGE",
		7:   "TAG_FLAGS",
		255: "TAG_END",
	}
	Tag_value = map[string]int32{
		"TAG_SIGNATURE_TYPE":  0,
		"TAG_DOMAIN":          1,
		"TAG_PERSONALIZATION": 2,
		"TAG_EPOCH":           3,
		"TAG_EXPIRES_AT":      4,
		"TAG_COUNTER":         5,
		"TAG_CHALLENGE":       6,
		"TAG_FLAGS":           7,
		"TAG_END":             255,
	}
)

Enum value maps for Tag.

View Source
var (
	SignatureType_name = map[int32]string{
		0: "SIGNATURE_TYPE_AES_GCM",
		5: "SIGNATURE_TYPE_AES_GCM_PERSONALIZED",
		6: "SIGNATURE_TYPE_HMAC",
		8: "SIGNATURE_TYPE_HMAC_PERSONALIZED",
	}
	SignatureType_value = map[string]int32{
		"SIGNATURE_TYPE_AES_GCM":              0,
		"SIGNATURE_TYPE_AES_GCM_PERSONALIZED": 5,
		"SIGNATURE_TYPE_HMAC":                 6,
		"SIGNATURE_TYPE_HMAC_PERSONALIZED":    8,
	}
)

Enum value maps for SignatureType.

View Source
var (
	Session_Info_Status_name = map[int32]string{
		0: "SESSION_INFO_STATUS_OK",
		1: "SESSION_INFO_STATUS_KEY_NOT_ON_WHITELIST",
	}
	Session_Info_Status_value = map[string]int32{
		"SESSION_INFO_STATUS_OK":                   0,
		"SESSION_INFO_STATUS_KEY_NOT_ON_WHITELIST": 1,
	}
)

Enum value maps for Session_Info_Status.

View Source
var File_signatures_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AES_GCM_Personalized_Signature_Data

type AES_GCM_Personalized_Signature_Data struct {
	Epoch     []byte `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Nonce     []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Counter   uint32 `protobuf:"varint,3,opt,name=counter,proto3" json:"counter,omitempty"`
	ExpiresAt uint32 `protobuf:"fixed32,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Tag       []byte `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*AES_GCM_Personalized_Signature_Data) Descriptor deprecated

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

Deprecated: Use AES_GCM_Personalized_Signature_Data.ProtoReflect.Descriptor instead.

func (*AES_GCM_Personalized_Signature_Data) GetCounter

func (*AES_GCM_Personalized_Signature_Data) GetEpoch

func (x *AES_GCM_Personalized_Signature_Data) GetEpoch() []byte

func (*AES_GCM_Personalized_Signature_Data) GetExpiresAt

func (x *AES_GCM_Personalized_Signature_Data) GetExpiresAt() uint32

func (*AES_GCM_Personalized_Signature_Data) GetNonce

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

func (*AES_GCM_Personalized_Signature_Data) GetTag

func (*AES_GCM_Personalized_Signature_Data) ProtoMessage

func (*AES_GCM_Personalized_Signature_Data) ProtoMessage()

func (*AES_GCM_Personalized_Signature_Data) ProtoReflect

func (*AES_GCM_Personalized_Signature_Data) Reset

func (*AES_GCM_Personalized_Signature_Data) String

type GetSessionInfoRequest

type GetSessionInfoRequest struct {
	KeyIdentity *KeyIdentity `protobuf:"bytes,1,opt,name=key_identity,json=keyIdentity,proto3" json:"key_identity,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSessionInfoRequest) Descriptor deprecated

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

Deprecated: Use GetSessionInfoRequest.ProtoReflect.Descriptor instead.

func (*GetSessionInfoRequest) GetKeyIdentity

func (x *GetSessionInfoRequest) GetKeyIdentity() *KeyIdentity

func (*GetSessionInfoRequest) ProtoMessage

func (*GetSessionInfoRequest) ProtoMessage()

func (*GetSessionInfoRequest) ProtoReflect

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

func (*GetSessionInfoRequest) Reset

func (x *GetSessionInfoRequest) Reset()

func (*GetSessionInfoRequest) String

func (x *GetSessionInfoRequest) String() string

type HMAC_Personalized_Signature_Data

type HMAC_Personalized_Signature_Data struct {
	Epoch     []byte `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Counter   uint32 `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"`
	ExpiresAt uint32 `protobuf:"fixed32,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	Tag       []byte `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*HMAC_Personalized_Signature_Data) Descriptor deprecated

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

Deprecated: Use HMAC_Personalized_Signature_Data.ProtoReflect.Descriptor instead.

func (*HMAC_Personalized_Signature_Data) GetCounter

func (x *HMAC_Personalized_Signature_Data) GetCounter() uint32

func (*HMAC_Personalized_Signature_Data) GetEpoch

func (x *HMAC_Personalized_Signature_Data) GetEpoch() []byte

func (*HMAC_Personalized_Signature_Data) GetExpiresAt

func (x *HMAC_Personalized_Signature_Data) GetExpiresAt() uint32

func (*HMAC_Personalized_Signature_Data) GetTag

func (x *HMAC_Personalized_Signature_Data) GetTag() []byte

func (*HMAC_Personalized_Signature_Data) ProtoMessage

func (*HMAC_Personalized_Signature_Data) ProtoMessage()

func (*HMAC_Personalized_Signature_Data) ProtoReflect

func (*HMAC_Personalized_Signature_Data) Reset

func (*HMAC_Personalized_Signature_Data) String

type HMAC_Signature_Data

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

func (*HMAC_Signature_Data) Descriptor deprecated

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

Deprecated: Use HMAC_Signature_Data.ProtoReflect.Descriptor instead.

func (*HMAC_Signature_Data) GetTag

func (x *HMAC_Signature_Data) GetTag() []byte

func (*HMAC_Signature_Data) ProtoMessage

func (*HMAC_Signature_Data) ProtoMessage()

func (*HMAC_Signature_Data) ProtoReflect

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

func (*HMAC_Signature_Data) Reset

func (x *HMAC_Signature_Data) Reset()

func (*HMAC_Signature_Data) String

func (x *HMAC_Signature_Data) String() string

type KeyIdentity

type KeyIdentity struct {

	// Types that are assignable to IdentityType:
	//	*KeyIdentity_PublicKey
	IdentityType isKeyIdentity_IdentityType `protobuf_oneof:"identity_type"`
	// contains filtered or unexported fields
}

func (*KeyIdentity) Descriptor deprecated

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

Deprecated: Use KeyIdentity.ProtoReflect.Descriptor instead.

func (*KeyIdentity) GetIdentityType

func (m *KeyIdentity) GetIdentityType() isKeyIdentity_IdentityType

func (*KeyIdentity) GetPublicKey

func (x *KeyIdentity) GetPublicKey() []byte

func (*KeyIdentity) ProtoMessage

func (*KeyIdentity) ProtoMessage()

func (*KeyIdentity) ProtoReflect

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

func (*KeyIdentity) Reset

func (x *KeyIdentity) Reset()

func (*KeyIdentity) String

func (x *KeyIdentity) String() string

type KeyIdentity_PublicKey

type KeyIdentity_PublicKey struct {
	PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3,oneof"`
}

type SessionInfo

type SessionInfo struct {
	Counter   uint32              `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
	PublicKey []byte              `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	Epoch     []byte              `protobuf:"bytes,3,opt,name=epoch,proto3" json:"epoch,omitempty"`
	ClockTime uint32              `protobuf:"fixed32,4,opt,name=clock_time,json=clockTime,proto3" json:"clock_time,omitempty"`
	Status    Session_Info_Status `protobuf:"varint,5,opt,name=status,proto3,enum=Signatures.Session_Info_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionInfo) Descriptor deprecated

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

Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.

func (*SessionInfo) GetClockTime

func (x *SessionInfo) GetClockTime() uint32

func (*SessionInfo) GetCounter

func (x *SessionInfo) GetCounter() uint32

func (*SessionInfo) GetEpoch

func (x *SessionInfo) GetEpoch() []byte

func (*SessionInfo) GetPublicKey

func (x *SessionInfo) GetPublicKey() []byte

func (*SessionInfo) GetStatus

func (x *SessionInfo) GetStatus() Session_Info_Status

func (*SessionInfo) ProtoMessage

func (*SessionInfo) ProtoMessage()

func (*SessionInfo) ProtoReflect

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

func (*SessionInfo) Reset

func (x *SessionInfo) Reset()

func (*SessionInfo) String

func (x *SessionInfo) String() string

type Session_Info_Status

type Session_Info_Status int32
const (
	Session_Info_Status_SESSION_INFO_STATUS_OK                   Session_Info_Status = 0
	Session_Info_Status_SESSION_INFO_STATUS_KEY_NOT_ON_WHITELIST Session_Info_Status = 1
)

func (Session_Info_Status) Descriptor

func (Session_Info_Status) Enum

func (Session_Info_Status) EnumDescriptor deprecated

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

Deprecated: Use Session_Info_Status.Descriptor instead.

func (Session_Info_Status) Number

func (Session_Info_Status) String

func (x Session_Info_Status) String() string

func (Session_Info_Status) Type

type SignatureData

type SignatureData struct {
	SignerIdentity *KeyIdentity `protobuf:"bytes,1,opt,name=signer_identity,json=signerIdentity,proto3" json:"signer_identity,omitempty"`
	// Types that are assignable to SigType:
	//	*SignatureData_AES_GCM_PersonalizedData
	//	*SignatureData_SessionInfoTag
	//	*SignatureData_HMAC_PersonalizedData
	SigType isSignatureData_SigType `protobuf_oneof:"sig_type"`
	// contains filtered or unexported fields
}

func (*SignatureData) Descriptor deprecated

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

Deprecated: Use SignatureData.ProtoReflect.Descriptor instead.

func (*SignatureData) GetAES_GCM_PersonalizedData

func (x *SignatureData) GetAES_GCM_PersonalizedData() *AES_GCM_Personalized_Signature_Data

func (*SignatureData) GetHMAC_PersonalizedData

func (x *SignatureData) GetHMAC_PersonalizedData() *HMAC_Personalized_Signature_Data

func (*SignatureData) GetSessionInfoTag

func (x *SignatureData) GetSessionInfoTag() *HMAC_Signature_Data

func (*SignatureData) GetSigType

func (m *SignatureData) GetSigType() isSignatureData_SigType

func (*SignatureData) GetSignerIdentity

func (x *SignatureData) GetSignerIdentity() *KeyIdentity

func (*SignatureData) ProtoMessage

func (*SignatureData) ProtoMessage()

func (*SignatureData) ProtoReflect

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

func (*SignatureData) Reset

func (x *SignatureData) Reset()

func (*SignatureData) String

func (x *SignatureData) String() string

type SignatureData_AES_GCM_PersonalizedData

type SignatureData_AES_GCM_PersonalizedData struct {
	AES_GCM_PersonalizedData *AES_GCM_Personalized_Signature_Data `protobuf:"bytes,5,opt,name=AES_GCM_Personalized_data,json=AESGCMPersonalizedData,proto3,oneof"`
}

type SignatureData_HMAC_PersonalizedData

type SignatureData_HMAC_PersonalizedData struct {
	HMAC_PersonalizedData *HMAC_Personalized_Signature_Data `protobuf:"bytes,8,opt,name=HMAC_Personalized_data,json=HMACPersonalizedData,proto3,oneof"`
}

type SignatureData_SessionInfoTag

type SignatureData_SessionInfoTag struct {
	SessionInfoTag *HMAC_Signature_Data `protobuf:"bytes,6,opt,name=session_info_tag,json=sessionInfoTag,proto3,oneof"`
}

type SignatureType

type SignatureType int32
const (
	SignatureType_SIGNATURE_TYPE_AES_GCM              SignatureType = 0
	SignatureType_SIGNATURE_TYPE_AES_GCM_PERSONALIZED SignatureType = 5
	SignatureType_SIGNATURE_TYPE_HMAC                 SignatureType = 6
	SignatureType_SIGNATURE_TYPE_HMAC_PERSONALIZED    SignatureType = 8
)

func (SignatureType) Descriptor

func (SignatureType) Enum

func (x SignatureType) Enum() *SignatureType

func (SignatureType) EnumDescriptor deprecated

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

Deprecated: Use SignatureType.Descriptor instead.

func (SignatureType) Number

func (SignatureType) String

func (x SignatureType) String() string

func (SignatureType) Type

type Tag

type Tag int32
const (
	Tag_TAG_SIGNATURE_TYPE  Tag = 0
	Tag_TAG_DOMAIN          Tag = 1
	Tag_TAG_PERSONALIZATION Tag = 2
	Tag_TAG_EPOCH           Tag = 3
	Tag_TAG_EXPIRES_AT      Tag = 4
	Tag_TAG_COUNTER         Tag = 5
	Tag_TAG_CHALLENGE       Tag = 6
	Tag_TAG_FLAGS           Tag = 7
	Tag_TAG_END             Tag = 255
)

func (Tag) Descriptor

func (Tag) Descriptor() protoreflect.EnumDescriptor

func (Tag) Enum

func (x Tag) Enum() *Tag

func (Tag) EnumDescriptor deprecated

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

Deprecated: Use Tag.Descriptor instead.

func (Tag) Number

func (x Tag) Number() protoreflect.EnumNumber

func (Tag) String

func (x Tag) String() string

func (Tag) Type

func (Tag) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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