package sigpb

import "github.com/google/trillian/crypto/sigpb"

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

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,
}

Types

type DigitallySigned

type DigitallySigned struct {
	// hash_algorithm contains the hash algorithm used.
	// TODO(gdbelvin): deprecate in favor of cipher_suite.
	HashAlgorithm DigitallySigned_HashAlgorithm `protobuf:"varint,1,opt,name=hash_algorithm,json=hashAlgorithm,enum=sigpb.DigitallySigned_HashAlgorithm" json:"hash_algorithm,omitempty"`
	// sig_algorithm contains the signing algorithm used.
	// TODO(gdbelvin): deprecate in favor of cipher_suite.
	SignatureAlgorithm DigitallySigned_SignatureAlgorithm `protobuf:"varint,2,opt,name=signature_algorithm,json=signatureAlgorithm,enum=sigpb.DigitallySigned_SignatureAlgorithm" json:"signature_algorithm,omitempty"`
	// cipher_suite contains the combination of ciphers used for this signature.
	SignatureCipherSuite DigitallySigned_SignatureCipherSuite `protobuf:"varint,4,opt,name=signature_cipher_suite,json=signatureCipherSuite,enum=sigpb.DigitallySigned_SignatureCipherSuite" json:"signature_cipher_suite,omitempty"`
	// 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

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

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

Source Files

sigpb.pb.go

Version
v1.0.4
Published
Dec 5, 2017
Platform
js/wasm
Imports
3 packages
Last checked
4 hours ago

Tools for package owners.