Documentation ¶
Index ¶
- type EncryptedData
- func (*EncryptedData) Descriptor() ([]byte, []int)
- func (m *EncryptedData) GetCipherText() []byte
- func (m *EncryptedData) GetIv() []byte
- func (*EncryptedData) ProtoMessage()
- func (m *EncryptedData) Reset()
- func (m *EncryptedData) String() string
- func (m *EncryptedData) XXX_DiscardUnknown()
- func (m *EncryptedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptedData) XXX_Merge(src proto.Message)
- func (m *EncryptedData) XXX_Size() int
- func (m *EncryptedData) XXX_Unmarshal(b []byte) error
- type SignedTimestamp
- func (*SignedTimestamp) Descriptor() ([]byte, []int)
- func (m *SignedTimestamp) GetChainDigest() []byte
- func (m *SignedTimestamp) GetChainDigestSkip1() []byte
- func (m *SignedTimestamp) GetChainDigestSkip2() []byte
- func (m *SignedTimestamp) GetMessageDigest() []byte
- func (m *SignedTimestamp) GetTimestamp() uint64
- func (m *SignedTimestamp) GetVersion() int32
- func (*SignedTimestamp) ProtoMessage()
- func (m *SignedTimestamp) Reset()
- func (m *SignedTimestamp) String() string
- func (m *SignedTimestamp) XXX_DiscardUnknown()
- func (m *SignedTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedTimestamp) XXX_Merge(src proto.Message)
- func (m *SignedTimestamp) XXX_Size() int
- func (m *SignedTimestamp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedData ¶
type EncryptedData struct { // the iv will be used in conjunction with the secret key // received via other channel in order to decrypt the cipher_text Iv []byte `protobuf:"bytes,1,opt,name=iv,proto3" json:"iv,omitempty"` // block of bytes to be decrypted CipherText []byte `protobuf:"bytes,2,opt,name=cipher_text,json=cipherText,proto3" json:"cipher_text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EncryptedData) Descriptor ¶
func (*EncryptedData) Descriptor() ([]byte, []int)
func (*EncryptedData) GetCipherText ¶
func (m *EncryptedData) GetCipherText() []byte
func (*EncryptedData) GetIv ¶
func (m *EncryptedData) GetIv() []byte
func (*EncryptedData) ProtoMessage ¶
func (*EncryptedData) ProtoMessage()
func (*EncryptedData) Reset ¶
func (m *EncryptedData) Reset()
func (*EncryptedData) String ¶
func (m *EncryptedData) String() string
func (*EncryptedData) XXX_DiscardUnknown ¶
func (m *EncryptedData) XXX_DiscardUnknown()
func (*EncryptedData) XXX_Marshal ¶
func (m *EncryptedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptedData) XXX_Merge ¶
func (m *EncryptedData) XXX_Merge(src proto.Message)
func (*EncryptedData) XXX_Size ¶
func (m *EncryptedData) XXX_Size() int
func (*EncryptedData) XXX_Unmarshal ¶
func (m *EncryptedData) XXX_Unmarshal(b []byte) error
type SignedTimestamp ¶
type SignedTimestamp struct { // Version indicates how the digests within this object are calculated. Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Timestamp is the time this SignedTimestamp was issued. It is in UTC, // as µseconds elapsed since the epoch (µs from 1970-01-01T00:00:00Z). Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // MessageDigest is the digest of the message this timestamp is // associated with. The first step in verifying the timestamp is // ensuring the MessageDigest matches the original message data. // // For version 1 objects, the message digest algorithm is SHA-512/224. MessageDigest []byte `protobuf:"bytes,3,opt,name=message_digest,json=messageDigest,proto3" json:"message_digest,omitempty"` // ChainDigest is the digest of the previous SignedTimestamp message // in the chain. The second step in verifying the timestamp is walking // back over the chain and checking each SignedTimestamp's ChainDigest // field. The SignedTimestamp at the beginning of the chain has this // field set to a specific, publish value. // // For version 1 objects, the chain digest algorithm is HMAC-SHA-512/224, // with the secret being equal to the MessageDigest field. ChainDigest []byte `protobuf:"bytes,4,opt,name=chain_digest,json=chainDigest,proto3" json:"chain_digest,omitempty"` // ChainDigestSkip1 is only populated once every 500 nodes. It is the // ChainDigest value of the timestamp 500 nodes previously. ChainDigestSkip1 []byte `protobuf:"bytes,5,opt,name=chain_digest_skip1,json=chainDigestSkip1,proto3" json:"chain_digest_skip1,omitempty"` // ChainDigestSkip2 is only populated once every 250000 nodes (or once // every 500 nodes that have ChainDigestSkip1 populated). It is the // ChainDigest value of the timestamp 250000 nodes previously. ChainDigestSkip2 []byte `protobuf:"bytes,6,opt,name=chain_digest_skip2,json=chainDigestSkip2,proto3" json:"chain_digest_skip2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SignedTimestamp is a timestamp associated with a message that has a cryptographic signature proving that it was issued by the correct authority.
func (*SignedTimestamp) Descriptor ¶
func (*SignedTimestamp) Descriptor() ([]byte, []int)
func (*SignedTimestamp) GetChainDigest ¶
func (m *SignedTimestamp) GetChainDigest() []byte
func (*SignedTimestamp) GetChainDigestSkip1 ¶
func (m *SignedTimestamp) GetChainDigestSkip1() []byte
func (*SignedTimestamp) GetChainDigestSkip2 ¶
func (m *SignedTimestamp) GetChainDigestSkip2() []byte
func (*SignedTimestamp) GetMessageDigest ¶
func (m *SignedTimestamp) GetMessageDigest() []byte
func (*SignedTimestamp) GetTimestamp ¶
func (m *SignedTimestamp) GetTimestamp() uint64
func (*SignedTimestamp) GetVersion ¶
func (m *SignedTimestamp) GetVersion() int32
func (*SignedTimestamp) ProtoMessage ¶
func (*SignedTimestamp) ProtoMessage()
func (*SignedTimestamp) Reset ¶
func (m *SignedTimestamp) Reset()
func (*SignedTimestamp) String ¶
func (m *SignedTimestamp) String() string
func (*SignedTimestamp) XXX_DiscardUnknown ¶
func (m *SignedTimestamp) XXX_DiscardUnknown()
func (*SignedTimestamp) XXX_Marshal ¶
func (m *SignedTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedTimestamp) XXX_Merge ¶
func (m *SignedTimestamp) XXX_Merge(src proto.Message)
func (*SignedTimestamp) XXX_Size ¶
func (m *SignedTimestamp) XXX_Size() int
func (*SignedTimestamp) XXX_Unmarshal ¶
func (m *SignedTimestamp) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.