Documentation ¶
Index ¶
- Variables
- type EcdsaKeyFormat
- type EcdsaParams
- func (*EcdsaParams) Descriptor() ([]byte, []int)deprecated
- func (x *EcdsaParams) GetCurve() common_go_proto.EllipticCurveType
- func (x *EcdsaParams) GetEncoding() EcdsaSignatureEncoding
- func (x *EcdsaParams) GetHashType() common_go_proto.HashType
- func (*EcdsaParams) ProtoMessage()
- func (x *EcdsaParams) ProtoReflect() protoreflect.Message
- func (x *EcdsaParams) Reset()
- func (x *EcdsaParams) String() string
- type EcdsaPrivateKey
- func (*EcdsaPrivateKey) Descriptor() ([]byte, []int)deprecated
- func (x *EcdsaPrivateKey) GetKeyValue() []byte
- func (x *EcdsaPrivateKey) GetPublicKey() *EcdsaPublicKey
- func (x *EcdsaPrivateKey) GetVersion() uint32
- func (*EcdsaPrivateKey) ProtoMessage()
- func (x *EcdsaPrivateKey) ProtoReflect() protoreflect.Message
- func (x *EcdsaPrivateKey) Reset()
- func (x *EcdsaPrivateKey) String() string
- type EcdsaPublicKey
- func (*EcdsaPublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *EcdsaPublicKey) GetParams() *EcdsaParams
- func (x *EcdsaPublicKey) GetVersion() uint32
- func (x *EcdsaPublicKey) GetX() []byte
- func (x *EcdsaPublicKey) GetY() []byte
- func (*EcdsaPublicKey) ProtoMessage()
- func (x *EcdsaPublicKey) ProtoReflect() protoreflect.Message
- func (x *EcdsaPublicKey) Reset()
- func (x *EcdsaPublicKey) String() string
- type EcdsaSignatureEncoding
- func (EcdsaSignatureEncoding) Descriptor() protoreflect.EnumDescriptor
- func (x EcdsaSignatureEncoding) Enum() *EcdsaSignatureEncoding
- func (EcdsaSignatureEncoding) EnumDescriptor() ([]byte, []int)deprecated
- func (x EcdsaSignatureEncoding) Number() protoreflect.EnumNumber
- func (x EcdsaSignatureEncoding) String() string
- func (EcdsaSignatureEncoding) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EcdsaSignatureEncoding_name = map[int32]string{ 0: "UNKNOWN_ENCODING", 1: "IEEE_P1363", 2: "DER", } EcdsaSignatureEncoding_value = map[string]int32{ "UNKNOWN_ENCODING": 0, "IEEE_P1363": 1, "DER": 2, } )
Enum value maps for EcdsaSignatureEncoding.
View Source
var File_third_party_tink_proto_ecdsa_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EcdsaKeyFormat ¶
type EcdsaKeyFormat struct { // Required. Params *EcdsaParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*EcdsaKeyFormat) Descriptor
deprecated
func (*EcdsaKeyFormat) Descriptor() ([]byte, []int)
Deprecated: Use EcdsaKeyFormat.ProtoReflect.Descriptor instead.
func (*EcdsaKeyFormat) GetParams ¶
func (x *EcdsaKeyFormat) GetParams() *EcdsaParams
func (*EcdsaKeyFormat) ProtoMessage ¶
func (*EcdsaKeyFormat) ProtoMessage()
func (*EcdsaKeyFormat) ProtoReflect ¶ added in v1.7.0
func (x *EcdsaKeyFormat) ProtoReflect() protoreflect.Message
func (*EcdsaKeyFormat) Reset ¶
func (x *EcdsaKeyFormat) Reset()
func (*EcdsaKeyFormat) String ¶
func (x *EcdsaKeyFormat) String() string
type EcdsaParams ¶
type EcdsaParams struct { // Required. HashType common_go_proto.HashType `protobuf:"varint,1,opt,name=hash_type,json=hashType,proto3,enum=google.crypto.tink.HashType" json:"hash_type,omitempty"` // Required. Curve common_go_proto.EllipticCurveType `protobuf:"varint,2,opt,name=curve,proto3,enum=google.crypto.tink.EllipticCurveType" json:"curve,omitempty"` // Required. Encoding EcdsaSignatureEncoding `protobuf:"varint,3,opt,name=encoding,proto3,enum=google.crypto.tink.EcdsaSignatureEncoding" json:"encoding,omitempty"` // contains filtered or unexported fields }
Protos for Ecdsa.
func (*EcdsaParams) Descriptor
deprecated
func (*EcdsaParams) Descriptor() ([]byte, []int)
Deprecated: Use EcdsaParams.ProtoReflect.Descriptor instead.
func (*EcdsaParams) GetCurve ¶
func (x *EcdsaParams) GetCurve() common_go_proto.EllipticCurveType
func (*EcdsaParams) GetEncoding ¶
func (x *EcdsaParams) GetEncoding() EcdsaSignatureEncoding
func (*EcdsaParams) GetHashType ¶
func (x *EcdsaParams) GetHashType() common_go_proto.HashType
func (*EcdsaParams) ProtoMessage ¶
func (*EcdsaParams) ProtoMessage()
func (*EcdsaParams) ProtoReflect ¶ added in v1.7.0
func (x *EcdsaParams) ProtoReflect() protoreflect.Message
func (*EcdsaParams) Reset ¶
func (x *EcdsaParams) Reset()
func (*EcdsaParams) String ¶
func (x *EcdsaParams) String() string
type EcdsaPrivateKey ¶
type EcdsaPrivateKey struct { // Required. Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Required. PublicKey *EcdsaPublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Unsigned big integer in bigendian representation. // Required. KeyValue []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"` // contains filtered or unexported fields }
key_type: type.googleapis.com/google.crypto.tink.EcdsaPrivateKey
func (*EcdsaPrivateKey) Descriptor
deprecated
func (*EcdsaPrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use EcdsaPrivateKey.ProtoReflect.Descriptor instead.
func (*EcdsaPrivateKey) GetKeyValue ¶
func (x *EcdsaPrivateKey) GetKeyValue() []byte
func (*EcdsaPrivateKey) GetPublicKey ¶
func (x *EcdsaPrivateKey) GetPublicKey() *EcdsaPublicKey
func (*EcdsaPrivateKey) GetVersion ¶
func (x *EcdsaPrivateKey) GetVersion() uint32
func (*EcdsaPrivateKey) ProtoMessage ¶
func (*EcdsaPrivateKey) ProtoMessage()
func (*EcdsaPrivateKey) ProtoReflect ¶ added in v1.7.0
func (x *EcdsaPrivateKey) ProtoReflect() protoreflect.Message
func (*EcdsaPrivateKey) Reset ¶
func (x *EcdsaPrivateKey) Reset()
func (*EcdsaPrivateKey) String ¶
func (x *EcdsaPrivateKey) String() string
type EcdsaPublicKey ¶
type EcdsaPublicKey struct { // Required. Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Required. Params *EcdsaParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // Affine coordinates of the public key in bigendian representation. The // public key is a point (x, y) on the curve defined by params.curve. For // ECDH, it is crucial to verify whether the public key point (x, y) is on the // private's key curve. For ECDSA, such verification is a defense in depth. // Required. X []byte `protobuf:"bytes,3,opt,name=x,proto3" json:"x,omitempty"` // Required. Y []byte `protobuf:"bytes,4,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
key_type: type.googleapis.com/google.crypto.tink.EcdsaPublicKey
func (*EcdsaPublicKey) Descriptor
deprecated
func (*EcdsaPublicKey) Descriptor() ([]byte, []int)
Deprecated: Use EcdsaPublicKey.ProtoReflect.Descriptor instead.
func (*EcdsaPublicKey) GetParams ¶
func (x *EcdsaPublicKey) GetParams() *EcdsaParams
func (*EcdsaPublicKey) GetVersion ¶
func (x *EcdsaPublicKey) GetVersion() uint32
func (*EcdsaPublicKey) GetX ¶
func (x *EcdsaPublicKey) GetX() []byte
func (*EcdsaPublicKey) GetY ¶
func (x *EcdsaPublicKey) GetY() []byte
func (*EcdsaPublicKey) ProtoMessage ¶
func (*EcdsaPublicKey) ProtoMessage()
func (*EcdsaPublicKey) ProtoReflect ¶ added in v1.7.0
func (x *EcdsaPublicKey) ProtoReflect() protoreflect.Message
func (*EcdsaPublicKey) Reset ¶
func (x *EcdsaPublicKey) Reset()
func (*EcdsaPublicKey) String ¶
func (x *EcdsaPublicKey) String() string
type EcdsaSignatureEncoding ¶
type EcdsaSignatureEncoding int32
const ( EcdsaSignatureEncoding_UNKNOWN_ENCODING EcdsaSignatureEncoding = 0 // The signature's format is r || s, where r and s are zero-padded and have // the same size in bytes as the order of the curve. For example, for NIST // P-256 curve, r and s are zero-padded to 32 bytes. EcdsaSignatureEncoding_IEEE_P1363 EcdsaSignatureEncoding = 1 // The signature is encoded using ASN.1 // (https://tools.ietf.org/html/rfc5480#appendix-A): // ECDSA-Sig-Value :: = SEQUENCE { // r INTEGER, // s INTEGER // } EcdsaSignatureEncoding_DER EcdsaSignatureEncoding = 2 )
func (EcdsaSignatureEncoding) Descriptor ¶ added in v1.7.0
func (EcdsaSignatureEncoding) Descriptor() protoreflect.EnumDescriptor
func (EcdsaSignatureEncoding) Enum ¶ added in v1.7.0
func (x EcdsaSignatureEncoding) Enum() *EcdsaSignatureEncoding
func (EcdsaSignatureEncoding) EnumDescriptor
deprecated
func (EcdsaSignatureEncoding) EnumDescriptor() ([]byte, []int)
Deprecated: Use EcdsaSignatureEncoding.Descriptor instead.
func (EcdsaSignatureEncoding) Number ¶ added in v1.7.0
func (x EcdsaSignatureEncoding) Number() protoreflect.EnumNumber
func (EcdsaSignatureEncoding) String ¶
func (x EcdsaSignatureEncoding) String() string
func (EcdsaSignatureEncoding) Type ¶ added in v1.7.0
func (EcdsaSignatureEncoding) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.