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

sigpb

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 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,
}

Functions

This section is empty.

Types

type DigitallySigned

type DigitallySigned struct {
	// hash_algorithm contains the hash algorithm used.
	HashAlgorithm DigitallySigned_HashAlgorithm `` /* 135-byte string literal not displayed */
	// sig_algorithm contains the signing algorithm used.
	SignatureAlgorithm DigitallySigned_SignatureAlgorithm `` /* 155-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) 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

Jump to

Keyboard shortcuts

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