Documentation ¶
Overview ¶
Package sigpb is a generated protocol buffer package.
It is generated from these files:
crypto/sigpb/sigpb.proto
It has these top-level messages:
DigitallySigned
Index ¶
- Variables
- type DigitallySigned
- func (*DigitallySigned) Descriptor() ([]byte, []int)
- func (m *DigitallySigned) GetHashAlgorithm() DigitallySigned_HashAlgorithm
- func (m *DigitallySigned) GetSignature() []byte
- func (m *DigitallySigned) GetSignatureAlgorithm() DigitallySigned_SignatureAlgorithm
- func (m *DigitallySigned) GetSignatureCipherSuite() DigitallySigned_SignatureCipherSuite
- func (*DigitallySigned) ProtoMessage()
- func (m *DigitallySigned) Reset()
- func (m *DigitallySigned) String() string
- type DigitallySigned_HashAlgorithm
- type DigitallySigned_SignatureAlgorithm
- type DigitallySigned_SignatureCipherSuite
Constants ¶
This section is empty.
Variables ¶
var DigitallySigned_HashAlgorithm_name = map[int32]string{
0: "NONE",
4: "SHA256",
}
var DigitallySigned_HashAlgorithm_value = map[string]int32{
"NONE": 0,
"SHA256": 4,
}
var DigitallySigned_SignatureAlgorithm_name = map[int32]string{
0: "ANONYMOUS",
1: "RSA",
3: "ECDSA",
}
var DigitallySigned_SignatureAlgorithm_value = map[string]int32{
"ANONYMOUS": 0,
"RSA": 1,
"ECDSA": 3,
}
var DigitallySigned_SignatureCipherSuite_name = map[int32]string{
0: "UNKNOWN_CIPHER_SUITE",
1: "RSA_SHA256",
2: "ECDSA_SHA256",
}
var DigitallySigned_SignatureCipherSuite_value = map[string]int32{
"UNKNOWN_CIPHER_SUITE": 0,
"RSA_SHA256": 1,
"ECDSA_SHA256": 2,
}
Functions ¶
This section is empty.
Types ¶
type DigitallySigned ¶
type DigitallySigned struct { // hash_algorithm contains the hash algorithm used. // TODO(gdbelvin): deprecate in favor of cipher_suite. HashAlgorithm DigitallySigned_HashAlgorithm `` /* 135-byte string literal not displayed */ // sig_algorithm contains the signing algorithm used. // TODO(gdbelvin): deprecate in favor of cipher_suite. SignatureAlgorithm DigitallySigned_SignatureAlgorithm `` /* 155-byte string literal not displayed */ // cipher_suite contains the combination of ciphers used for this signature. SignatureCipherSuite DigitallySigned_SignatureCipherSuite `` /* 165-byte string literal not displayed */ // signature contains the object signature. Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` }
Protocol buffer encoding of the TLS DigitallySigned type, from RFC 5246 §4.7.
func (*DigitallySigned) Descriptor ¶
func (*DigitallySigned) Descriptor() ([]byte, []int)
func (*DigitallySigned) GetHashAlgorithm ¶
func (m *DigitallySigned) GetHashAlgorithm() DigitallySigned_HashAlgorithm
func (*DigitallySigned) GetSignature ¶
func (m *DigitallySigned) GetSignature() []byte
func (*DigitallySigned) GetSignatureAlgorithm ¶
func (m *DigitallySigned) GetSignatureAlgorithm() DigitallySigned_SignatureAlgorithm
func (*DigitallySigned) GetSignatureCipherSuite ¶
func (m *DigitallySigned) GetSignatureCipherSuite() DigitallySigned_SignatureCipherSuite
func (*DigitallySigned) ProtoMessage ¶
func (*DigitallySigned) ProtoMessage()
func (*DigitallySigned) Reset ¶
func (m *DigitallySigned) Reset()
func (*DigitallySigned) String ¶
func (m *DigitallySigned) String() string
type DigitallySigned_HashAlgorithm ¶
type DigitallySigned_HashAlgorithm int32
HashAlgorithm defines the approved methods for object hashing.
Supported hash algorithms. The numbering space is the same as for TLS, given in RFC 5246 s7.4.1.4.1 and at: http://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-18
const ( // No hash algorithm is used. DigitallySigned_NONE DigitallySigned_HashAlgorithm = 0 // SHA256 is used. DigitallySigned_SHA256 DigitallySigned_HashAlgorithm = 4 )
func (DigitallySigned_HashAlgorithm) EnumDescriptor ¶
func (DigitallySigned_HashAlgorithm) EnumDescriptor() ([]byte, []int)
func (DigitallySigned_HashAlgorithm) String ¶
func (x DigitallySigned_HashAlgorithm) String() string
type DigitallySigned_SignatureAlgorithm ¶
type DigitallySigned_SignatureAlgorithm int32
SignatureAlgorithm defines the algorithm used to sign the object.
Supported signature algorithms. The numbering space is the same as for TLS, given in RFC 5246 s7.4.1.4.1 and at: http://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-16
const ( // Anonymous signature scheme. DigitallySigned_ANONYMOUS DigitallySigned_SignatureAlgorithm = 0 // RSA signature scheme. DigitallySigned_RSA DigitallySigned_SignatureAlgorithm = 1 // ECDSA signature scheme. DigitallySigned_ECDSA DigitallySigned_SignatureAlgorithm = 3 )
func (DigitallySigned_SignatureAlgorithm) EnumDescriptor ¶
func (DigitallySigned_SignatureAlgorithm) EnumDescriptor() ([]byte, []int)
func (DigitallySigned_SignatureAlgorithm) String ¶
func (x DigitallySigned_SignatureAlgorithm) String() string
type DigitallySigned_SignatureCipherSuite ¶
type DigitallySigned_SignatureCipherSuite int32
SignatureCipherSuite defines the set of algorithms used for signing.
const ( // Signature and hash algorithm are unknown / not set. DigitallySigned_UNKNOWN_CIPHER_SUITE DigitallySigned_SignatureCipherSuite = 0 // RSA with SHA256. DigitallySigned_RSA_SHA256 DigitallySigned_SignatureCipherSuite = 1 // ECDSA with SHA256. DigitallySigned_ECDSA_SHA256 DigitallySigned_SignatureCipherSuite = 2 )
func (DigitallySigned_SignatureCipherSuite) EnumDescriptor ¶
func (DigitallySigned_SignatureCipherSuite) EnumDescriptor() ([]byte, []int)
func (DigitallySigned_SignatureCipherSuite) String ¶
func (x DigitallySigned_SignatureCipherSuite) String() string