Documentation ¶
Index ¶
- Variables
- type AES_GCM_Personalized_Signature_Data
- func (*AES_GCM_Personalized_Signature_Data) Descriptor() ([]byte, []int)deprecated
- func (x *AES_GCM_Personalized_Signature_Data) GetCounter() uint32
- func (x *AES_GCM_Personalized_Signature_Data) GetEpoch() []byte
- func (x *AES_GCM_Personalized_Signature_Data) GetExpiresAt() uint32
- func (x *AES_GCM_Personalized_Signature_Data) GetNonce() []byte
- func (x *AES_GCM_Personalized_Signature_Data) GetTag() []byte
- func (*AES_GCM_Personalized_Signature_Data) ProtoMessage()
- func (x *AES_GCM_Personalized_Signature_Data) ProtoReflect() protoreflect.Message
- func (x *AES_GCM_Personalized_Signature_Data) Reset()
- func (x *AES_GCM_Personalized_Signature_Data) String() string
- type GetSessionInfoRequest
- func (*GetSessionInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSessionInfoRequest) GetKeyIdentity() *KeyIdentity
- func (*GetSessionInfoRequest) ProtoMessage()
- func (x *GetSessionInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetSessionInfoRequest) Reset()
- func (x *GetSessionInfoRequest) String() string
- type HMAC_Personalized_Signature_Data
- func (*HMAC_Personalized_Signature_Data) Descriptor() ([]byte, []int)deprecated
- func (x *HMAC_Personalized_Signature_Data) GetCounter() uint32
- func (x *HMAC_Personalized_Signature_Data) GetEpoch() []byte
- func (x *HMAC_Personalized_Signature_Data) GetExpiresAt() uint32
- func (x *HMAC_Personalized_Signature_Data) GetTag() []byte
- func (*HMAC_Personalized_Signature_Data) ProtoMessage()
- func (x *HMAC_Personalized_Signature_Data) ProtoReflect() protoreflect.Message
- func (x *HMAC_Personalized_Signature_Data) Reset()
- func (x *HMAC_Personalized_Signature_Data) String() string
- type HMAC_Signature_Data
- func (*HMAC_Signature_Data) Descriptor() ([]byte, []int)deprecated
- func (x *HMAC_Signature_Data) GetTag() []byte
- func (*HMAC_Signature_Data) ProtoMessage()
- func (x *HMAC_Signature_Data) ProtoReflect() protoreflect.Message
- func (x *HMAC_Signature_Data) Reset()
- func (x *HMAC_Signature_Data) String() string
- type KeyIdentity
- func (*KeyIdentity) Descriptor() ([]byte, []int)deprecated
- func (x *KeyIdentity) GetHandle() uint32
- func (m *KeyIdentity) GetIdentityType() isKeyIdentity_IdentityType
- func (x *KeyIdentity) GetPublicKey() []byte
- func (*KeyIdentity) ProtoMessage()
- func (x *KeyIdentity) ProtoReflect() protoreflect.Message
- func (x *KeyIdentity) Reset()
- func (x *KeyIdentity) String() string
- type KeyIdentity_Handle
- type KeyIdentity_PublicKey
- type SessionInfo
- func (*SessionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SessionInfo) GetClockTime() uint32
- func (x *SessionInfo) GetCounter() uint32
- func (x *SessionInfo) GetEpoch() []byte
- func (x *SessionInfo) GetHandle() uint32
- func (x *SessionInfo) GetPublicKey() []byte
- func (x *SessionInfo) GetStatus() Session_Info_Status
- func (*SessionInfo) ProtoMessage()
- func (x *SessionInfo) ProtoReflect() protoreflect.Message
- func (x *SessionInfo) Reset()
- func (x *SessionInfo) String() string
- type Session_Info_Status
- func (Session_Info_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Session_Info_Status) Enum() *Session_Info_Status
- func (Session_Info_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Session_Info_Status) Number() protoreflect.EnumNumber
- func (x Session_Info_Status) String() string
- func (Session_Info_Status) Type() protoreflect.EnumType
- type SignatureData
- func (*SignatureData) Descriptor() ([]byte, []int)deprecated
- func (x *SignatureData) GetAES_GCM_PersonalizedData() *AES_GCM_Personalized_Signature_Data
- func (x *SignatureData) GetHMAC_PersonalizedData() *HMAC_Personalized_Signature_Data
- func (x *SignatureData) GetSessionInfoTag() *HMAC_Signature_Data
- func (m *SignatureData) GetSigType() isSignatureData_SigType
- func (x *SignatureData) GetSignerIdentity() *KeyIdentity
- func (*SignatureData) ProtoMessage()
- func (x *SignatureData) ProtoReflect() protoreflect.Message
- func (x *SignatureData) Reset()
- func (x *SignatureData) String() string
- type SignatureData_AES_GCM_PersonalizedData
- type SignatureData_HMAC_PersonalizedData
- type SignatureData_SessionInfoTag
- type SignatureType
- func (SignatureType) Descriptor() protoreflect.EnumDescriptor
- func (x SignatureType) Enum() *SignatureType
- func (SignatureType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SignatureType) Number() protoreflect.EnumNumber
- func (x SignatureType) String() string
- func (SignatureType) Type() protoreflect.EnumType
- type Tag
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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 (x *AES_GCM_Personalized_Signature_Data) GetCounter() uint32
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 (x *AES_GCM_Personalized_Signature_Data) GetTag() []byte
func (*AES_GCM_Personalized_Signature_Data) ProtoMessage ¶
func (*AES_GCM_Personalized_Signature_Data) ProtoMessage()
func (*AES_GCM_Personalized_Signature_Data) ProtoReflect ¶
func (x *AES_GCM_Personalized_Signature_Data) ProtoReflect() protoreflect.Message
func (*AES_GCM_Personalized_Signature_Data) Reset ¶
func (x *AES_GCM_Personalized_Signature_Data) Reset()
func (*AES_GCM_Personalized_Signature_Data) String ¶
func (x *AES_GCM_Personalized_Signature_Data) String() 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 (x *HMAC_Personalized_Signature_Data) ProtoReflect() protoreflect.Message
func (*HMAC_Personalized_Signature_Data) Reset ¶
func (x *HMAC_Personalized_Signature_Data) Reset()
func (*HMAC_Personalized_Signature_Data) String ¶
func (x *HMAC_Personalized_Signature_Data) String() 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 // *KeyIdentity_Handle 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) GetHandle ¶ added in v0.1.0
func (x *KeyIdentity) GetHandle() uint32
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_Handle ¶ added in v0.1.0
type KeyIdentity_Handle struct {
Handle uint32 `protobuf:"varint,3,opt,name=handle,proto3,oneof"`
}
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"` Handle uint32 `protobuf:"varint,6,opt,name=handle,proto3" json:"handle,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) GetHandle ¶ added in v0.1.0
func (x *SessionInfo) GetHandle() uint32
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) Descriptor() protoreflect.EnumDescriptor
func (Session_Info_Status) Enum ¶
func (x Session_Info_Status) Enum() *Session_Info_Status
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 (x Session_Info_Status) Number() protoreflect.EnumNumber
func (Session_Info_Status) String ¶
func (x Session_Info_Status) String() string
func (Session_Info_Status) Type ¶
func (Session_Info_Status) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x SignatureType) Number() protoreflect.EnumNumber
func (SignatureType) String ¶
func (x SignatureType) String() string
func (SignatureType) Type ¶
func (SignatureType) Type() protoreflect.EnumType
type Tag ¶
type Tag int32
func (Tag) Descriptor ¶
func (Tag) Descriptor() protoreflect.EnumDescriptor
func (Tag) EnumDescriptor
deprecated
func (Tag) Number ¶
func (x Tag) Number() protoreflect.EnumNumber
func (Tag) Type ¶
func (Tag) Type() protoreflect.EnumType