Documentation
¶
Index ¶
- Variables
- type AsymmetricKeyProof
- func (*AsymmetricKeyProof) Descriptor() ([]byte, []int)deprecated
- func (x *AsymmetricKeyProof) GetPublicKey() []byte
- func (x *AsymmetricKeyProof) GetSignature() []byte
- func (*AsymmetricKeyProof) ProtoMessage()
- func (x *AsymmetricKeyProof) ProtoReflect() protoreflect.Message
- func (x *AsymmetricKeyProof) Reset()
- func (x *AsymmetricKeyProof) String() string
- type CrxFileHeader
- func (*CrxFileHeader) Descriptor() ([]byte, []int)deprecated
- func (x *CrxFileHeader) GetSha256WithEcdsa() []*AsymmetricKeyProof
- func (x *CrxFileHeader) GetSha256WithRsa() []*AsymmetricKeyProof
- func (x *CrxFileHeader) GetSignedHeaderData() []byte
- func (*CrxFileHeader) ProtoMessage()
- func (x *CrxFileHeader) ProtoReflect() protoreflect.Message
- func (x *CrxFileHeader) Reset()
- func (x *CrxFileHeader) String() string
- type SignedData
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_crx3_proto protoreflect.FileDescriptor
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"` // contains filtered or unexported fields }
func (*AsymmetricKeyProof) Descriptor
deprecated
func (*AsymmetricKeyProof) Descriptor() ([]byte, []int)
Deprecated: Use AsymmetricKeyProof.ProtoReflect.Descriptor instead.
func (*AsymmetricKeyProof) GetPublicKey ¶
func (x *AsymmetricKeyProof) GetPublicKey() []byte
func (*AsymmetricKeyProof) GetSignature ¶
func (x *AsymmetricKeyProof) GetSignature() []byte
func (*AsymmetricKeyProof) ProtoMessage ¶
func (*AsymmetricKeyProof) ProtoMessage()
func (*AsymmetricKeyProof) ProtoReflect ¶ added in v1.4.0
func (x *AsymmetricKeyProof) ProtoReflect() protoreflect.Message
func (*AsymmetricKeyProof) Reset ¶
func (x *AsymmetricKeyProof) Reset()
func (*AsymmetricKeyProof) String ¶
func (x *AsymmetricKeyProof) String() string
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"` // contains filtered or unexported fields }
func (*CrxFileHeader) Descriptor
deprecated
func (*CrxFileHeader) Descriptor() ([]byte, []int)
Deprecated: Use CrxFileHeader.ProtoReflect.Descriptor instead.
func (*CrxFileHeader) GetSha256WithEcdsa ¶
func (x *CrxFileHeader) GetSha256WithEcdsa() []*AsymmetricKeyProof
func (*CrxFileHeader) GetSha256WithRsa ¶
func (x *CrxFileHeader) GetSha256WithRsa() []*AsymmetricKeyProof
func (*CrxFileHeader) GetSignedHeaderData ¶
func (x *CrxFileHeader) GetSignedHeaderData() []byte
func (*CrxFileHeader) ProtoMessage ¶
func (*CrxFileHeader) ProtoMessage()
func (*CrxFileHeader) ProtoReflect ¶ added in v1.4.0
func (x *CrxFileHeader) ProtoReflect() protoreflect.Message
func (*CrxFileHeader) Reset ¶
func (x *CrxFileHeader) Reset()
func (*CrxFileHeader) String ¶
func (x *CrxFileHeader) String() string
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"` // contains filtered or unexported fields }
func (*SignedData) Descriptor
deprecated
func (*SignedData) Descriptor() ([]byte, []int)
Deprecated: Use SignedData.ProtoReflect.Descriptor instead.
func (*SignedData) GetCrxId ¶
func (x *SignedData) GetCrxId() []byte
func (*SignedData) ProtoMessage ¶
func (*SignedData) ProtoMessage()
func (*SignedData) ProtoReflect ¶ added in v1.4.0
func (x *SignedData) ProtoReflect() protoreflect.Message
func (*SignedData) Reset ¶
func (x *SignedData) Reset()
func (*SignedData) String ¶
func (x *SignedData) String() string
Click to show internal directories.
Click to hide internal directories.