Documentation ¶
Overview ¶
Package ecdsa_proto is a generated protocol buffer package.
It is generated from these files:
proto/ecdsa.proto
It has these top-level messages:
EcdsaParams EcdsaPublicKey EcdsaPrivateKey EcdsaKeyFormat
Index ¶
- Variables
- type EcdsaKeyFormat
- type EcdsaParams
- func (*EcdsaParams) Descriptor() ([]byte, []int)
- func (m *EcdsaParams) GetCurve() google_crypto_tink.EllipticCurveType
- func (m *EcdsaParams) GetEncoding() EcdsaSignatureEncoding
- func (m *EcdsaParams) GetHashType() google_crypto_tink.HashType
- func (*EcdsaParams) ProtoMessage()
- func (m *EcdsaParams) Reset()
- func (m *EcdsaParams) String() string
- type EcdsaPrivateKey
- func (*EcdsaPrivateKey) Descriptor() ([]byte, []int)
- func (m *EcdsaPrivateKey) GetKeyValue() []byte
- func (m *EcdsaPrivateKey) GetPublicKey() *EcdsaPublicKey
- func (m *EcdsaPrivateKey) GetVersion() uint32
- func (*EcdsaPrivateKey) ProtoMessage()
- func (m *EcdsaPrivateKey) Reset()
- func (m *EcdsaPrivateKey) String() string
- type EcdsaPublicKey
- func (*EcdsaPublicKey) Descriptor() ([]byte, []int)
- func (m *EcdsaPublicKey) GetParams() *EcdsaParams
- func (m *EcdsaPublicKey) GetVersion() uint32
- func (m *EcdsaPublicKey) GetX() []byte
- func (m *EcdsaPublicKey) GetY() []byte
- func (*EcdsaPublicKey) ProtoMessage()
- func (m *EcdsaPublicKey) Reset()
- func (m *EcdsaPublicKey) String() string
- type EcdsaSignatureEncoding
Constants ¶
This section is empty.
Variables ¶
View Source
var EcdsaSignatureEncoding_name = map[int32]string{
0: "UNKNOWN_ENCODING",
1: "IEEE_P1363",
2: "DER",
}
View Source
var EcdsaSignatureEncoding_value = map[string]int32{
"UNKNOWN_ENCODING": 0,
"IEEE_P1363": 1,
"DER": 2,
}
Functions ¶
This section is empty.
Types ¶
type EcdsaKeyFormat ¶
type EcdsaKeyFormat struct { // Required. Params *EcdsaParams `protobuf:"bytes,2,opt,name=params" json:"params,omitempty"` }
func (*EcdsaKeyFormat) Descriptor ¶
func (*EcdsaKeyFormat) Descriptor() ([]byte, []int)
func (*EcdsaKeyFormat) GetParams ¶
func (m *EcdsaKeyFormat) GetParams() *EcdsaParams
func (*EcdsaKeyFormat) ProtoMessage ¶
func (*EcdsaKeyFormat) ProtoMessage()
func (*EcdsaKeyFormat) Reset ¶
func (m *EcdsaKeyFormat) Reset()
func (*EcdsaKeyFormat) String ¶
func (m *EcdsaKeyFormat) String() string
type EcdsaParams ¶
type EcdsaParams struct { // Required. HashType google_crypto_tink.HashType `protobuf:"varint,1,opt,name=hash_type,json=hashType,enum=google.crypto.tink.HashType" json:"hash_type,omitempty"` // Required. Curve google_crypto_tink.EllipticCurveType `protobuf:"varint,2,opt,name=curve,enum=google.crypto.tink.EllipticCurveType" json:"curve,omitempty"` // Required. Encoding EcdsaSignatureEncoding `protobuf:"varint,3,opt,name=encoding,enum=google.crypto.tink.EcdsaSignatureEncoding" json:"encoding,omitempty"` }
Protos for Ecdsa.
func (*EcdsaParams) Descriptor ¶
func (*EcdsaParams) Descriptor() ([]byte, []int)
func (*EcdsaParams) GetCurve ¶
func (m *EcdsaParams) GetCurve() google_crypto_tink.EllipticCurveType
func (*EcdsaParams) GetEncoding ¶
func (m *EcdsaParams) GetEncoding() EcdsaSignatureEncoding
func (*EcdsaParams) GetHashType ¶
func (m *EcdsaParams) GetHashType() google_crypto_tink.HashType
func (*EcdsaParams) ProtoMessage ¶
func (*EcdsaParams) ProtoMessage()
func (*EcdsaParams) Reset ¶
func (m *EcdsaParams) Reset()
func (*EcdsaParams) String ¶
func (m *EcdsaParams) String() string
type EcdsaPrivateKey ¶
type EcdsaPrivateKey struct { // Required. Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` // Required. PublicKey *EcdsaPublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey" 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"` }
key_type: type.googleapis.com/google.crypto.tink.EcdsaPrivateKey
func (*EcdsaPrivateKey) Descriptor ¶
func (*EcdsaPrivateKey) Descriptor() ([]byte, []int)
func (*EcdsaPrivateKey) GetKeyValue ¶
func (m *EcdsaPrivateKey) GetKeyValue() []byte
func (*EcdsaPrivateKey) GetPublicKey ¶
func (m *EcdsaPrivateKey) GetPublicKey() *EcdsaPublicKey
func (*EcdsaPrivateKey) GetVersion ¶
func (m *EcdsaPrivateKey) GetVersion() uint32
func (*EcdsaPrivateKey) ProtoMessage ¶
func (*EcdsaPrivateKey) ProtoMessage()
func (*EcdsaPrivateKey) Reset ¶
func (m *EcdsaPrivateKey) Reset()
func (*EcdsaPrivateKey) String ¶
func (m *EcdsaPrivateKey) String() string
type EcdsaPublicKey ¶
type EcdsaPublicKey struct { // Required. Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` // Required. Params *EcdsaParams `protobuf:"bytes,2,opt,name=params" 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"` }
key_type: type.googleapis.com/google.crypto.tink.EcdsaPublicKey
func (*EcdsaPublicKey) Descriptor ¶
func (*EcdsaPublicKey) Descriptor() ([]byte, []int)
func (*EcdsaPublicKey) GetParams ¶
func (m *EcdsaPublicKey) GetParams() *EcdsaParams
func (*EcdsaPublicKey) GetVersion ¶
func (m *EcdsaPublicKey) GetVersion() uint32
func (*EcdsaPublicKey) GetX ¶
func (m *EcdsaPublicKey) GetX() []byte
func (*EcdsaPublicKey) GetY ¶
func (m *EcdsaPublicKey) GetY() []byte
func (*EcdsaPublicKey) ProtoMessage ¶
func (*EcdsaPublicKey) ProtoMessage()
func (*EcdsaPublicKey) Reset ¶
func (m *EcdsaPublicKey) Reset()
func (*EcdsaPublicKey) String ¶
func (m *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) EnumDescriptor ¶
func (EcdsaSignatureEncoding) EnumDescriptor() ([]byte, []int)
func (EcdsaSignatureEncoding) String ¶
func (x EcdsaSignatureEncoding) String() string
Click to show internal directories.
Click to hide internal directories.