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

sigpb

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DigitallySigned_HashAlgorithm_name = map[int32]string{
		0: "NONE",
		4: "SHA256",
	}
	DigitallySigned_HashAlgorithm_value = map[string]int32{
		"NONE":   0,
		"SHA256": 4,
	}
)

Enum value maps for DigitallySigned_HashAlgorithm.

View Source
var (
	DigitallySigned_SignatureAlgorithm_name = map[int32]string{
		0: "ANONYMOUS",
		1: "RSA",
		3: "ECDSA",
		7: "ED25519",
	}
	DigitallySigned_SignatureAlgorithm_value = map[string]int32{
		"ANONYMOUS": 0,
		"RSA":       1,
		"ECDSA":     3,
		"ED25519":   7,
	}
)

Enum value maps for DigitallySigned_SignatureAlgorithm.

View Source
var File_crypto_sigpb_sigpb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DigitallySigned

type DigitallySigned struct {

	// hash_algorithm contains the hash algorithm used.
	HashAlgorithm DigitallySigned_HashAlgorithm `` /* 142-byte string literal not displayed */
	// sig_algorithm contains the signing algorithm used.
	SignatureAlgorithm DigitallySigned_SignatureAlgorithm `` /* 162-byte string literal not displayed */
	// signature contains the object signature.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Protocol buffer encoding of the TLS DigitallySigned type, from RFC 5246 §4.7.

func (*DigitallySigned) Descriptor deprecated

func (*DigitallySigned) Descriptor() ([]byte, []int)

Deprecated: Use DigitallySigned.ProtoReflect.Descriptor instead.

func (*DigitallySigned) GetHashAlgorithm

func (x *DigitallySigned) GetHashAlgorithm() DigitallySigned_HashAlgorithm

func (*DigitallySigned) GetSignature

func (x *DigitallySigned) GetSignature() []byte

func (*DigitallySigned) GetSignatureAlgorithm

func (x *DigitallySigned) GetSignatureAlgorithm() DigitallySigned_SignatureAlgorithm

func (*DigitallySigned) ProtoMessage

func (*DigitallySigned) ProtoMessage()

func (*DigitallySigned) ProtoReflect added in v1.3.9

func (x *DigitallySigned) ProtoReflect() protoreflect.Message

func (*DigitallySigned) Reset

func (x *DigitallySigned) Reset()

func (*DigitallySigned) String

func (x *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) Descriptor added in v1.3.9

func (DigitallySigned_HashAlgorithm) Enum added in v1.3.9

func (DigitallySigned_HashAlgorithm) EnumDescriptor deprecated

func (DigitallySigned_HashAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use DigitallySigned_HashAlgorithm.Descriptor instead.

func (DigitallySigned_HashAlgorithm) Number added in v1.3.9

func (DigitallySigned_HashAlgorithm) String

func (DigitallySigned_HashAlgorithm) Type added in v1.3.9

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) Descriptor added in v1.3.9

func (DigitallySigned_SignatureAlgorithm) Enum added in v1.3.9

func (DigitallySigned_SignatureAlgorithm) EnumDescriptor deprecated

func (DigitallySigned_SignatureAlgorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use DigitallySigned_SignatureAlgorithm.Descriptor instead.

func (DigitallySigned_SignatureAlgorithm) Number added in v1.3.9

func (DigitallySigned_SignatureAlgorithm) String

func (DigitallySigned_SignatureAlgorithm) Type added in v1.3.9

Jump to

Keyboard shortcuts

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