Documentation
¶
Index ¶
- Variables
- type AuthBody
- type AuthContainer
- func (*AuthContainer) Descriptor() ([]byte, []int)deprecated
- func (x *AuthContainer) GetAlgo() evecommon.HashAlgorithm
- func (x *AuthContainer) GetCipherContext() *evecommon.CipherContext
- func (x *AuthContainer) GetCipherData() *evecommon.CipherBlock
- func (x *AuthContainer) GetProtectedPayload() *AuthBody
- func (x *AuthContainer) GetSenderCert() []byte
- func (x *AuthContainer) GetSenderCertHash() []byte
- func (x *AuthContainer) GetSignatureHash() []byte
- func (*AuthContainer) ProtoMessage()
- func (x *AuthContainer) ProtoReflect() protoreflect.Message
- func (x *AuthContainer) Reset()
- func (x *AuthContainer) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthBody ¶
type AuthBody struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*AuthBody) Descriptor
deprecated
func (*AuthBody) GetPayload ¶
func (*AuthBody) ProtoMessage ¶
func (*AuthBody) ProtoMessage()
func (*AuthBody) ProtoReflect ¶
func (x *AuthBody) ProtoReflect() protoreflect.Message
type AuthContainer ¶
type AuthContainer struct { ProtectedPayload *AuthBody `protobuf:"bytes,1,opt,name=protectedPayload,proto3" json:"protectedPayload,omitempty"` // envelope body, a marshalled protobuf data or it can be null // if the length of senderCertHash received is not N bytes, as described in hashAlgorithm, then the protobuf // message either is not AuthContainer type, or is corrupted. Otherwise, the // receiver may not have the sender's signing certificate. Algo evecommon.HashAlgorithm `protobuf:"varint,2,opt,name=algo,proto3,enum=org.lfedge.eve.common.HashAlgorithm" json:"algo,omitempty"` // hash algorithm used by sender Cert SenderCertHash []byte `protobuf:"bytes,3,opt,name=senderCertHash,proto3" json:"senderCertHash,omitempty"` // N bytes in length, 1st N bytes of sender siging cert sha256 hash SignatureHash []byte `protobuf:"bytes,4,opt,name=signatureHash,proto3" json:"signatureHash,omitempty"` // signature of the sha256 hash of the payload SenderCert []byte `protobuf:"bytes,5,opt,name=senderCert,proto3" json:"senderCert,omitempty"` // full senderCert needed for some payloads CipherContext *evecommon.CipherContext `protobuf:"bytes,6,opt,name=cipherContext,proto3" json:"cipherContext,omitempty"` // context for decrypting payload if defined CipherData *evecommon.CipherBlock `protobuf:"bytes,7,opt,name=cipherData,proto3" json:"cipherData,omitempty"` // encrypted payload if defined // contains filtered or unexported fields }
Envolope which can be signed OR signed and encrypted. If `cipherContext` and `cipherData` are defined and valid, then auth body has to be decrypted first by using the encrypted payload defined in the `cipherData.cipherData` member. Once the `cipherBlock` is decrypted, the actual result of the decryption is fed into the authentication as if it had been in `protectedPayload` (AuthBody type).
func (*AuthContainer) Descriptor
deprecated
func (*AuthContainer) Descriptor() ([]byte, []int)
Deprecated: Use AuthContainer.ProtoReflect.Descriptor instead.
func (*AuthContainer) GetAlgo ¶
func (x *AuthContainer) GetAlgo() evecommon.HashAlgorithm
func (*AuthContainer) GetCipherContext ¶
func (x *AuthContainer) GetCipherContext() *evecommon.CipherContext
func (*AuthContainer) GetCipherData ¶
func (x *AuthContainer) GetCipherData() *evecommon.CipherBlock
func (*AuthContainer) GetProtectedPayload ¶
func (x *AuthContainer) GetProtectedPayload() *AuthBody
func (*AuthContainer) GetSenderCert ¶
func (x *AuthContainer) GetSenderCert() []byte
func (*AuthContainer) GetSenderCertHash ¶
func (x *AuthContainer) GetSenderCertHash() []byte
func (*AuthContainer) GetSignatureHash ¶
func (x *AuthContainer) GetSignatureHash() []byte
func (*AuthContainer) ProtoMessage ¶
func (*AuthContainer) ProtoMessage()
func (*AuthContainer) ProtoReflect ¶
func (x *AuthContainer) ProtoReflect() protoreflect.Message
func (*AuthContainer) Reset ¶
func (x *AuthContainer) Reset()
func (*AuthContainer) String ¶
func (x *AuthContainer) String() string
Click to show internal directories.
Click to hide internal directories.