package sigpb
import "github.com/google/trillian/crypto/sigpb"
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 (*DigitallySigned) ProtoMessage()
- func (m *DigitallySigned) Reset()
- func (m *DigitallySigned) String() string
- func (m *DigitallySigned) XXX_DiscardUnknown()
- func (m *DigitallySigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DigitallySigned) XXX_Merge(src proto.Message)
- func (m *DigitallySigned) XXX_Size() int
- func (m *DigitallySigned) XXX_Unmarshal(b []byte) error
- type DigitallySigned_HashAlgorithm
- func (DigitallySigned_HashAlgorithm) EnumDescriptor() ([]byte, []int)
- func (x DigitallySigned_HashAlgorithm) String() string
- type DigitallySigned_SignatureAlgorithm
Variables ¶
var DigitallySigned_SignatureAlgorithm_name = map[int32]string{ 0: "ANONYMOUS", 1: "RSA", 3: "ECDSA", 7: "ED25519", }
var DigitallySigned_SignatureAlgorithm_value = map[string]int32{ "ANONYMOUS": 0, "RSA": 1, "ECDSA": 3, "ED25519": 7, }
Types ¶
type DigitallySigned ¶
type DigitallySigned struct { // hash_algorithm contains the hash algorithm used. HashAlgorithm DigitallySigned_HashAlgorithm `protobuf:"varint,1,opt,name=hash_algorithm,json=hashAlgorithm,proto3,enum=sigpb.DigitallySigned_HashAlgorithm" json:"hash_algorithm,omitempty"` // sig_algorithm contains the signing algorithm used. SignatureAlgorithm DigitallySigned_SignatureAlgorithm `protobuf:"varint,2,opt,name=signature_algorithm,json=signatureAlgorithm,proto3,enum=sigpb.DigitallySigned_SignatureAlgorithm" json:"signature_algorithm,omitempty"` // signature contains the object signature. Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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) ProtoMessage ¶
func (*DigitallySigned) ProtoMessage()
func (*DigitallySigned) Reset ¶
func (m *DigitallySigned) Reset()
func (*DigitallySigned) String ¶
func (m *DigitallySigned) String() string
func (*DigitallySigned) XXX_DiscardUnknown ¶
func (m *DigitallySigned) XXX_DiscardUnknown()
func (*DigitallySigned) XXX_Marshal ¶
func (m *DigitallySigned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DigitallySigned) XXX_Merge ¶
func (m *DigitallySigned) XXX_Merge(src proto.Message)
func (*DigitallySigned) XXX_Size ¶
func (m *DigitallySigned) XXX_Size() int
func (*DigitallySigned) XXX_Unmarshal ¶
func (m *DigitallySigned) XXX_Unmarshal(b []byte) error
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 // Ed25519 signature scheme. DigitallySigned_ED25519 DigitallySigned_SignatureAlgorithm = 7 )
func (DigitallySigned_SignatureAlgorithm) EnumDescriptor ¶
func (DigitallySigned_SignatureAlgorithm) EnumDescriptor() ([]byte, []int)
func (DigitallySigned_SignatureAlgorithm) String ¶
func (x DigitallySigned_SignatureAlgorithm) String() string
Source Files ¶
- Version
- v1.3.5
- Published
- Nov 23, 2019
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 6 hours ago –
Tools for package owners.