Documentation ¶
Index ¶
- Variables
- type BasisAnnouncement
- func (*BasisAnnouncement) Descriptor() ([]byte, []int)deprecated
- func (x *BasisAnnouncement) GetBases() *DenseBitArray
- func (x *BasisAnnouncement) GetDropped() *DenseBitArray
- func (x *BasisAnnouncement) GetHi() *DenseBitArray
- func (x *BasisAnnouncement) GetLo() *DenseBitArray
- func (x *BasisAnnouncement) GetMed() *DenseBitArray
- func (x *BasisAnnouncement) GetTestBits() *DenseBitArray
- func (*BasisAnnouncement) ProtoMessage()
- func (x *BasisAnnouncement) ProtoReflect() protoreflect.Message
- func (x *BasisAnnouncement) Reset()
- func (x *BasisAnnouncement) String() string
- type DenseBitArray
- func (*DenseBitArray) Descriptor() ([]byte, []int)deprecated
- func (x *DenseBitArray) GetBits() []byte
- func (x *DenseBitArray) GetLen() int32
- func (*DenseBitArray) ProtoMessage()
- func (x *DenseBitArray) ProtoReflect() protoreflect.Message
- func (x *DenseBitArray) Reset()
- func (x *DenseBitArray) String() string
- type ErrorCorrectionFinished
- func (*ErrorCorrectionFinished) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorCorrectionFinished) GetExtractSeed() []byte
- func (x *ErrorCorrectionFinished) GetVerifyHash() *DenseBitArray
- func (x *ErrorCorrectionFinished) GetVerifySeed() []byte
- func (*ErrorCorrectionFinished) ProtoMessage()
- func (x *ErrorCorrectionFinished) ProtoReflect() protoreflect.Message
- func (x *ErrorCorrectionFinished) Reset()
- func (x *ErrorCorrectionFinished) String() string
- type HashAnnouncement
- func (*HashAnnouncement) Descriptor() ([]byte, []int)deprecated
- func (x *HashAnnouncement) GetHash() []byte
- func (x *HashAnnouncement) GetSeed() []byte
- func (*HashAnnouncement) ProtoMessage()
- func (x *HashAnnouncement) ProtoReflect() protoreflect.Message
- func (x *HashAnnouncement) Reset()
- func (x *HashAnnouncement) String() string
- type ParityAnnouncement
- func (*ParityAnnouncement) Descriptor() ([]byte, []int)deprecated
- func (x *ParityAnnouncement) GetParities() *DenseBitArray
- func (*ParityAnnouncement) ProtoMessage()
- func (x *ParityAnnouncement) ProtoReflect() protoreflect.Message
- func (x *ParityAnnouncement) Reset()
- func (x *ParityAnnouncement) String() string
- type SparseBitArray
- func (*SparseBitArray) Descriptor() ([]byte, []int)deprecated
- func (x *SparseBitArray) GetIndices() []int32
- func (x *SparseBitArray) GetLen() int32
- func (*SparseBitArray) ProtoMessage()
- func (x *SparseBitArray) ProtoReflect() protoreflect.Message
- func (x *SparseBitArray) Reset()
- func (x *SparseBitArray) String() string
- type SyndromeAnnouncement
- func (*SyndromeAnnouncement) Descriptor() ([]byte, []int)deprecated
- func (x *SyndromeAnnouncement) GetSyndromes() []*DenseBitArray
- func (*SyndromeAnnouncement) ProtoMessage()
- func (x *SyndromeAnnouncement) ProtoReflect() protoreflect.Message
- func (x *SyndromeAnnouncement) Reset()
- func (x *SyndromeAnnouncement) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_bb84_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BasisAnnouncement ¶
type BasisAnnouncement struct { // Specifies which bases a sequence of photons was (en|de)coded in. Bases *DenseBitArray `protobuf:"bytes,1,opt,name=bases,proto3" json:"bases,omitempty"` // Specifies which pulses in a photon-sequence were lost. Dropped *DenseBitArray `protobuf:"bytes,2,opt,name=dropped,proto3" json:"dropped,omitempty"` // Specifies the values measured in the Z, or test, basis. TestBits *DenseBitArray `protobuf:"bytes,3,opt,name=test_bits,json=testBits,proto3" json:"test_bits,omitempty"` // Specifies which photons were sent on weak pulses. Lo *DenseBitArray `protobuf:"bytes,4,opt,name=lo,proto3" json:"lo,omitempty"` // Specifies which photons were sent on medium pulses. Med *DenseBitArray `protobuf:"bytes,5,opt,name=med,proto3" json:"med,omitempty"` // Specifies which photons were sent on strong pulses. Hi *DenseBitArray `protobuf:"bytes,6,opt,name=hi,proto3" json:"hi,omitempty"` // contains filtered or unexported fields }
func (*BasisAnnouncement) Descriptor
deprecated
func (*BasisAnnouncement) Descriptor() ([]byte, []int)
Deprecated: Use BasisAnnouncement.ProtoReflect.Descriptor instead.
func (*BasisAnnouncement) GetBases ¶
func (x *BasisAnnouncement) GetBases() *DenseBitArray
func (*BasisAnnouncement) GetDropped ¶
func (x *BasisAnnouncement) GetDropped() *DenseBitArray
func (*BasisAnnouncement) GetHi ¶
func (x *BasisAnnouncement) GetHi() *DenseBitArray
func (*BasisAnnouncement) GetLo ¶
func (x *BasisAnnouncement) GetLo() *DenseBitArray
func (*BasisAnnouncement) GetMed ¶
func (x *BasisAnnouncement) GetMed() *DenseBitArray
func (*BasisAnnouncement) GetTestBits ¶
func (x *BasisAnnouncement) GetTestBits() *DenseBitArray
func (*BasisAnnouncement) ProtoMessage ¶
func (*BasisAnnouncement) ProtoMessage()
func (*BasisAnnouncement) ProtoReflect ¶
func (x *BasisAnnouncement) ProtoReflect() protoreflect.Message
func (*BasisAnnouncement) Reset ¶
func (x *BasisAnnouncement) Reset()
func (*BasisAnnouncement) String ¶
func (x *BasisAnnouncement) String() string
type DenseBitArray ¶
type DenseBitArray struct { Bits []byte `protobuf:"bytes,1,opt,name=bits,proto3" json:"bits,omitempty"` Len int32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"` // contains filtered or unexported fields }
func (*DenseBitArray) Descriptor
deprecated
func (*DenseBitArray) Descriptor() ([]byte, []int)
Deprecated: Use DenseBitArray.ProtoReflect.Descriptor instead.
func (*DenseBitArray) GetBits ¶
func (x *DenseBitArray) GetBits() []byte
func (*DenseBitArray) GetLen ¶
func (x *DenseBitArray) GetLen() int32
func (*DenseBitArray) ProtoMessage ¶
func (*DenseBitArray) ProtoMessage()
func (*DenseBitArray) ProtoReflect ¶
func (x *DenseBitArray) ProtoReflect() protoreflect.Message
func (*DenseBitArray) Reset ¶
func (x *DenseBitArray) Reset()
func (*DenseBitArray) String ¶
func (x *DenseBitArray) String() string
type ErrorCorrectionFinished ¶
type ErrorCorrectionFinished struct { // A randomly generated seed to use in key extraction (aka privacy amplification). ExtractSeed []byte `protobuf:"bytes,1,opt,name=extract_seed,json=extractSeed,proto3" json:"extract_seed,omitempty"` // A randomly generated seed for use to pick a hash for error correction verification. VerifySeed []byte `protobuf:"bytes,2,opt,name=verify_seed,json=verifySeed,proto3" json:"verify_seed,omitempty"` // The result of hashing our error-corrected, but unextracted, key. VerifyHash *DenseBitArray `protobuf:"bytes,3,opt,name=verify_hash,json=verifyHash,proto3" json:"verify_hash,omitempty"` // contains filtered or unexported fields }
func (*ErrorCorrectionFinished) Descriptor
deprecated
func (*ErrorCorrectionFinished) Descriptor() ([]byte, []int)
Deprecated: Use ErrorCorrectionFinished.ProtoReflect.Descriptor instead.
func (*ErrorCorrectionFinished) GetExtractSeed ¶
func (x *ErrorCorrectionFinished) GetExtractSeed() []byte
func (*ErrorCorrectionFinished) GetVerifyHash ¶
func (x *ErrorCorrectionFinished) GetVerifyHash() *DenseBitArray
func (*ErrorCorrectionFinished) GetVerifySeed ¶
func (x *ErrorCorrectionFinished) GetVerifySeed() []byte
func (*ErrorCorrectionFinished) ProtoMessage ¶
func (*ErrorCorrectionFinished) ProtoMessage()
func (*ErrorCorrectionFinished) ProtoReflect ¶
func (x *ErrorCorrectionFinished) ProtoReflect() protoreflect.Message
func (*ErrorCorrectionFinished) Reset ¶
func (x *ErrorCorrectionFinished) Reset()
func (*ErrorCorrectionFinished) String ¶
func (x *ErrorCorrectionFinished) String() string
type HashAnnouncement ¶
type HashAnnouncement struct { // The seed used when to choose the function from the hash family to create // the hash. Seed []byte `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"` // The result of hashing our secret. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*HashAnnouncement) Descriptor
deprecated
func (*HashAnnouncement) Descriptor() ([]byte, []int)
Deprecated: Use HashAnnouncement.ProtoReflect.Descriptor instead.
func (*HashAnnouncement) GetHash ¶
func (x *HashAnnouncement) GetHash() []byte
func (*HashAnnouncement) GetSeed ¶
func (x *HashAnnouncement) GetSeed() []byte
func (*HashAnnouncement) ProtoMessage ¶
func (*HashAnnouncement) ProtoMessage()
func (*HashAnnouncement) ProtoReflect ¶
func (x *HashAnnouncement) ProtoReflect() protoreflect.Message
func (*HashAnnouncement) Reset ¶
func (x *HashAnnouncement) Reset()
func (*HashAnnouncement) String ¶
func (x *HashAnnouncement) String() string
type ParityAnnouncement ¶
type ParityAnnouncement struct { // The total parities of each of the code blocks which comprise the key // being negotiated. Parities *DenseBitArray `protobuf:"bytes,1,opt,name=parities,proto3" json:"parities,omitempty"` // contains filtered or unexported fields }
func (*ParityAnnouncement) Descriptor
deprecated
func (*ParityAnnouncement) Descriptor() ([]byte, []int)
Deprecated: Use ParityAnnouncement.ProtoReflect.Descriptor instead.
func (*ParityAnnouncement) GetParities ¶
func (x *ParityAnnouncement) GetParities() *DenseBitArray
func (*ParityAnnouncement) ProtoMessage ¶
func (*ParityAnnouncement) ProtoMessage()
func (*ParityAnnouncement) ProtoReflect ¶
func (x *ParityAnnouncement) ProtoReflect() protoreflect.Message
func (*ParityAnnouncement) Reset ¶
func (x *ParityAnnouncement) Reset()
func (*ParityAnnouncement) String ¶
func (x *ParityAnnouncement) String() string
type SparseBitArray ¶
type SparseBitArray struct { Indices []int32 `protobuf:"varint,1,rep,packed,name=indices,proto3" json:"indices,omitempty"` Len int32 `protobuf:"varint,2,opt,name=len,proto3" json:"len,omitempty"` // contains filtered or unexported fields }
func (*SparseBitArray) Descriptor
deprecated
func (*SparseBitArray) Descriptor() ([]byte, []int)
Deprecated: Use SparseBitArray.ProtoReflect.Descriptor instead.
func (*SparseBitArray) GetIndices ¶
func (x *SparseBitArray) GetIndices() []int32
func (*SparseBitArray) GetLen ¶
func (x *SparseBitArray) GetLen() int32
func (*SparseBitArray) ProtoMessage ¶
func (*SparseBitArray) ProtoMessage()
func (*SparseBitArray) ProtoReflect ¶
func (x *SparseBitArray) ProtoReflect() protoreflect.Message
func (*SparseBitArray) Reset ¶
func (x *SparseBitArray) Reset()
func (*SparseBitArray) String ¶
func (x *SparseBitArray) String() string
type SyndromeAnnouncement ¶
type SyndromeAnnouncement struct { // The syndromes of the code blocks which comprise the key being negotiated. // Note that some reconciliation protocols, e.g. Winnow, will only send // syndromes for some of its code blocks, and which ones will be present // must be inferred from a previous computational stage. Syndromes []*DenseBitArray `protobuf:"bytes,1,rep,name=syndromes,proto3" json:"syndromes,omitempty"` // contains filtered or unexported fields }
func (*SyndromeAnnouncement) Descriptor
deprecated
func (*SyndromeAnnouncement) Descriptor() ([]byte, []int)
Deprecated: Use SyndromeAnnouncement.ProtoReflect.Descriptor instead.
func (*SyndromeAnnouncement) GetSyndromes ¶
func (x *SyndromeAnnouncement) GetSyndromes() []*DenseBitArray
func (*SyndromeAnnouncement) ProtoMessage ¶
func (*SyndromeAnnouncement) ProtoMessage()
func (*SyndromeAnnouncement) ProtoReflect ¶
func (x *SyndromeAnnouncement) ProtoReflect() protoreflect.Message
func (*SyndromeAnnouncement) Reset ¶
func (x *SyndromeAnnouncement) Reset()
func (*SyndromeAnnouncement) String ¶
func (x *SyndromeAnnouncement) String() string
Click to show internal directories.
Click to hide internal directories.