Documentation ¶
Index ¶
- Variables
- type DigitallySigned
- func (*DigitallySigned) Descriptor() ([]byte, []int)deprecated
- func (x *DigitallySigned) GetHashAlgorithm() DigitallySigned_HashAlgorithm
- func (x *DigitallySigned) GetSignature() []byte
- func (x *DigitallySigned) GetSignatureAlgorithm() DigitallySigned_SignatureAlgorithm
- func (*DigitallySigned) ProtoMessage()
- func (x *DigitallySigned) ProtoReflect() protoreflect.Message
- func (x *DigitallySigned) Reset()
- func (x *DigitallySigned) String() string
- type DigitallySigned_HashAlgorithm
- func (DigitallySigned_HashAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x DigitallySigned_HashAlgorithm) Enum() *DigitallySigned_HashAlgorithm
- func (DigitallySigned_HashAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x DigitallySigned_HashAlgorithm) Number() protoreflect.EnumNumber
- func (x DigitallySigned_HashAlgorithm) String() string
- func (DigitallySigned_HashAlgorithm) Type() protoreflect.EnumType
- type DigitallySigned_SignatureAlgorithm
- func (DigitallySigned_SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x DigitallySigned_SignatureAlgorithm) Enum() *DigitallySigned_SignatureAlgorithm
- func (DigitallySigned_SignatureAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x DigitallySigned_SignatureAlgorithm) Number() protoreflect.EnumNumber
- func (x DigitallySigned_SignatureAlgorithm) String() string
- func (DigitallySigned_SignatureAlgorithm) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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.
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) Descriptor() protoreflect.EnumDescriptor
func (DigitallySigned_HashAlgorithm) Enum ¶ added in v1.3.9
func (x DigitallySigned_HashAlgorithm) Enum() *DigitallySigned_HashAlgorithm
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 (x DigitallySigned_HashAlgorithm) Number() protoreflect.EnumNumber
func (DigitallySigned_HashAlgorithm) String ¶
func (x DigitallySigned_HashAlgorithm) String() string
func (DigitallySigned_HashAlgorithm) Type ¶ added in v1.3.9
func (DigitallySigned_HashAlgorithm) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (DigitallySigned_SignatureAlgorithm) Enum ¶ added in v1.3.9
func (x DigitallySigned_SignatureAlgorithm) Enum() *DigitallySigned_SignatureAlgorithm
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 (x DigitallySigned_SignatureAlgorithm) Number() protoreflect.EnumNumber
func (DigitallySigned_SignatureAlgorithm) String ¶
func (x DigitallySigned_SignatureAlgorithm) String() string
func (DigitallySigned_SignatureAlgorithm) Type ¶ added in v1.3.9
func (DigitallySigned_SignatureAlgorithm) Type() protoreflect.EnumType