Help us shape the future of Go! Take the 2026 Go Developer Survey

sigpb

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var DigitallySigned_HashAlgorithm_name = map[int32]string{
	0: "NONE",
	4: "SHA256",
}
View Source
var DigitallySigned_HashAlgorithm_value = map[string]int32{
	"NONE":   0,
	"SHA256": 4,
}
View Source
var DigitallySigned_SignatureAlgorithm_name = map[int32]string{
	0: "ANONYMOUS",
	1: "RSA",
	3: "ECDSA",
}
View Source
var DigitallySigned_SignatureAlgorithm_value = map[string]int32{
	"ANONYMOUS": 0,
	"RSA":       1,
	"ECDSA":     3,
}
View Source
var DigitallySigned_SignatureCipherSuite_name = map[int32]string{
	0: "UNKNOWN_CIPHER_SUITE",
	1: "RSA_SHA256",
	2: "ECDSA_SHA256",
}
View Source
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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL