Documentation ¶
Index ¶
- type AsymmetricKeyProof
- func (*AsymmetricKeyProof) Descriptor() ([]byte, []int)
- func (m *AsymmetricKeyProof) GetPublicKey() []byte
- func (m *AsymmetricKeyProof) GetSignature() []byte
- func (*AsymmetricKeyProof) ProtoMessage()
- func (m *AsymmetricKeyProof) Reset()
- func (m *AsymmetricKeyProof) String() string
- func (m *AsymmetricKeyProof) XXX_DiscardUnknown()
- func (m *AsymmetricKeyProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AsymmetricKeyProof) XXX_Merge(src proto.Message)
- func (m *AsymmetricKeyProof) XXX_Size() int
- func (m *AsymmetricKeyProof) XXX_Unmarshal(b []byte) error
- type CrxFileHeader
- func (*CrxFileHeader) Descriptor() ([]byte, []int)
- func (m *CrxFileHeader) GetSha256WithEcdsa() []*AsymmetricKeyProof
- func (m *CrxFileHeader) GetSha256WithRsa() []*AsymmetricKeyProof
- func (m *CrxFileHeader) GetSignedHeaderData() []byte
- func (*CrxFileHeader) ProtoMessage()
- func (m *CrxFileHeader) Reset()
- func (m *CrxFileHeader) String() string
- func (m *CrxFileHeader) XXX_DiscardUnknown()
- func (m *CrxFileHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrxFileHeader) XXX_Merge(src proto.Message)
- func (m *CrxFileHeader) XXX_Size() int
- func (m *CrxFileHeader) XXX_Unmarshal(b []byte) error
- type SignedData
- func (*SignedData) Descriptor() ([]byte, []int)
- func (m *SignedData) GetCrxId() []byte
- func (*SignedData) ProtoMessage()
- func (m *SignedData) Reset()
- func (m *SignedData) String() string
- func (m *SignedData) XXX_DiscardUnknown()
- func (m *SignedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedData) XXX_Merge(src proto.Message)
- func (m *SignedData) XXX_Size() int
- func (m *SignedData) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsymmetricKeyProof ¶
type AsymmetricKeyProof struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey" json:"public_key,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AsymmetricKeyProof) Descriptor ¶
func (*AsymmetricKeyProof) Descriptor() ([]byte, []int)
func (*AsymmetricKeyProof) GetPublicKey ¶
func (m *AsymmetricKeyProof) GetPublicKey() []byte
func (*AsymmetricKeyProof) GetSignature ¶
func (m *AsymmetricKeyProof) GetSignature() []byte
func (*AsymmetricKeyProof) ProtoMessage ¶
func (*AsymmetricKeyProof) ProtoMessage()
func (*AsymmetricKeyProof) Reset ¶
func (m *AsymmetricKeyProof) Reset()
func (*AsymmetricKeyProof) String ¶
func (m *AsymmetricKeyProof) String() string
func (*AsymmetricKeyProof) XXX_DiscardUnknown ¶
func (m *AsymmetricKeyProof) XXX_DiscardUnknown()
func (*AsymmetricKeyProof) XXX_Marshal ¶
func (m *AsymmetricKeyProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AsymmetricKeyProof) XXX_Merge ¶
func (m *AsymmetricKeyProof) XXX_Merge(src proto.Message)
func (*AsymmetricKeyProof) XXX_Size ¶
func (m *AsymmetricKeyProof) XXX_Size() int
func (*AsymmetricKeyProof) XXX_Unmarshal ¶
func (m *AsymmetricKeyProof) XXX_Unmarshal(b []byte) error
type CrxFileHeader ¶
type CrxFileHeader struct { // PSS signature with RSA public key. The public key is formatted as a // X.509 SubjectPublicKeyInfo block, as in CRX₂. In the common case of a // developer key proof, the first 128 bits of the SHA-256 hash of the // public key must equal the crx_id. Sha256WithRsa []*AsymmetricKeyProof `protobuf:"bytes,2,rep,name=sha256_with_rsa,json=sha256WithRsa" json:"sha256_with_rsa,omitempty"` // ECDSA signature, using the NIST P-256 curve. Public key appears in // named-curve format. // The pinned algorithm will be this, at least on 2017-01-01. Sha256WithEcdsa []*AsymmetricKeyProof `protobuf:"bytes,3,rep,name=sha256_with_ecdsa,json=sha256WithEcdsa" json:"sha256_with_ecdsa,omitempty"` // The binary form of a SignedData message. We do not use a nested // SignedData message, as handlers of this message must verify the proofs // on exactly these bytes, so it is convenient to parse in two steps. // // All proofs in this CrxFile message are on the value // "CRX3 SignedData\x00" + signed_header_size + signed_header_data + // archive, where "\x00" indicates an octet with value 0, "CRX3 SignedData" // is encoded using UTF-8, signed_header_size is the size in octets of the // contents of this field and is encoded using 4 octets in little-endian // order, signed_header_data is exactly the content of this field, and // archive is the remaining contents of the file following the header. SignedHeaderData []byte `protobuf:"bytes,10000,opt,name=signed_header_data,json=signedHeaderData" json:"signed_header_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrxFileHeader) Descriptor ¶
func (*CrxFileHeader) Descriptor() ([]byte, []int)
func (*CrxFileHeader) GetSha256WithEcdsa ¶
func (m *CrxFileHeader) GetSha256WithEcdsa() []*AsymmetricKeyProof
func (*CrxFileHeader) GetSha256WithRsa ¶
func (m *CrxFileHeader) GetSha256WithRsa() []*AsymmetricKeyProof
func (*CrxFileHeader) GetSignedHeaderData ¶
func (m *CrxFileHeader) GetSignedHeaderData() []byte
func (*CrxFileHeader) ProtoMessage ¶
func (*CrxFileHeader) ProtoMessage()
func (*CrxFileHeader) Reset ¶
func (m *CrxFileHeader) Reset()
func (*CrxFileHeader) String ¶
func (m *CrxFileHeader) String() string
func (*CrxFileHeader) XXX_DiscardUnknown ¶
func (m *CrxFileHeader) XXX_DiscardUnknown()
func (*CrxFileHeader) XXX_Marshal ¶
func (m *CrxFileHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrxFileHeader) XXX_Merge ¶
func (m *CrxFileHeader) XXX_Merge(src proto.Message)
func (*CrxFileHeader) XXX_Size ¶
func (m *CrxFileHeader) XXX_Size() int
func (*CrxFileHeader) XXX_Unmarshal ¶
func (m *CrxFileHeader) XXX_Unmarshal(b []byte) error
type SignedData ¶
type SignedData struct { // This is simple binary, not UTF-8 encoded mpdecimal; i.e. it is exactly // 16 bytes long. CrxId []byte `protobuf:"bytes,1,opt,name=crx_id,json=crxId" json:"crx_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedData) Descriptor ¶
func (*SignedData) Descriptor() ([]byte, []int)
func (*SignedData) GetCrxId ¶
func (m *SignedData) GetCrxId() []byte
func (*SignedData) ProtoMessage ¶
func (*SignedData) ProtoMessage()
func (*SignedData) Reset ¶
func (m *SignedData) Reset()
func (*SignedData) String ¶
func (m *SignedData) String() string
func (*SignedData) XXX_DiscardUnknown ¶
func (m *SignedData) XXX_DiscardUnknown()
func (*SignedData) XXX_Marshal ¶
func (m *SignedData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedData) XXX_Merge ¶
func (m *SignedData) XXX_Merge(src proto.Message)
func (*SignedData) XXX_Size ¶
func (m *SignedData) XXX_Size() int
func (*SignedData) XXX_Unmarshal ¶
func (m *SignedData) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.