Documentation ¶
Index ¶
- Variables
- type EcdsaKeyFormat
- func (*EcdsaKeyFormat) Descriptor() ([]byte, []int)
- func (m *EcdsaKeyFormat) GetParams() *EcdsaParams
- func (*EcdsaKeyFormat) ProtoMessage()
- func (m *EcdsaKeyFormat) Reset()
- func (m *EcdsaKeyFormat) String() string
- func (m *EcdsaKeyFormat) XXX_DiscardUnknown()
- func (m *EcdsaKeyFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EcdsaKeyFormat) XXX_Merge(src proto.Message)
- func (m *EcdsaKeyFormat) XXX_Size() int
- func (m *EcdsaKeyFormat) XXX_Unmarshal(b []byte) error
- type EcdsaParams
- func (*EcdsaParams) Descriptor() ([]byte, []int)
- func (m *EcdsaParams) GetCurve() common_go_proto.EllipticCurveType
- func (m *EcdsaParams) GetEncoding() EcdsaSignatureEncoding
- func (m *EcdsaParams) GetHashType() common_go_proto.HashType
- func (*EcdsaParams) ProtoMessage()
- func (m *EcdsaParams) Reset()
- func (m *EcdsaParams) String() string
- func (m *EcdsaParams) XXX_DiscardUnknown()
- func (m *EcdsaParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EcdsaParams) XXX_Merge(src proto.Message)
- func (m *EcdsaParams) XXX_Size() int
- func (m *EcdsaParams) XXX_Unmarshal(b []byte) error
- 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
- func (m *EcdsaPrivateKey) XXX_DiscardUnknown()
- func (m *EcdsaPrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EcdsaPrivateKey) XXX_Merge(src proto.Message)
- func (m *EcdsaPrivateKey) XXX_Size() int
- func (m *EcdsaPrivateKey) XXX_Unmarshal(b []byte) error
- 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
- func (m *EcdsaPublicKey) XXX_DiscardUnknown()
- func (m *EcdsaPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EcdsaPublicKey) XXX_Merge(src proto.Message)
- func (m *EcdsaPublicKey) XXX_Size() int
- func (m *EcdsaPublicKey) XXX_Unmarshal(b []byte) error
- 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,proto3" json:"params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*EcdsaKeyFormat) XXX_DiscardUnknown ¶
func (m *EcdsaKeyFormat) XXX_DiscardUnknown()
func (*EcdsaKeyFormat) XXX_Marshal ¶
func (m *EcdsaKeyFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EcdsaKeyFormat) XXX_Merge ¶
func (m *EcdsaKeyFormat) XXX_Merge(src proto.Message)
func (*EcdsaKeyFormat) XXX_Size ¶
func (m *EcdsaKeyFormat) XXX_Size() int
func (*EcdsaKeyFormat) XXX_Unmarshal ¶
func (m *EcdsaKeyFormat) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Protos for Ecdsa.
func (*EcdsaParams) Descriptor ¶
func (*EcdsaParams) Descriptor() ([]byte, []int)
func (*EcdsaParams) GetCurve ¶
func (m *EcdsaParams) GetCurve() common_go_proto.EllipticCurveType
func (*EcdsaParams) GetEncoding ¶
func (m *EcdsaParams) GetEncoding() EcdsaSignatureEncoding
func (*EcdsaParams) GetHashType ¶
func (m *EcdsaParams) GetHashType() common_go_proto.HashType
func (*EcdsaParams) ProtoMessage ¶
func (*EcdsaParams) ProtoMessage()
func (*EcdsaParams) Reset ¶
func (m *EcdsaParams) Reset()
func (*EcdsaParams) String ¶
func (m *EcdsaParams) String() string
func (*EcdsaParams) XXX_DiscardUnknown ¶
func (m *EcdsaParams) XXX_DiscardUnknown()
func (*EcdsaParams) XXX_Marshal ¶
func (m *EcdsaParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EcdsaParams) XXX_Merge ¶
func (m *EcdsaParams) XXX_Merge(src proto.Message)
func (*EcdsaParams) XXX_Size ¶
func (m *EcdsaParams) XXX_Size() int
func (*EcdsaParams) XXX_Unmarshal ¶
func (m *EcdsaParams) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*EcdsaPrivateKey) XXX_DiscardUnknown ¶
func (m *EcdsaPrivateKey) XXX_DiscardUnknown()
func (*EcdsaPrivateKey) XXX_Marshal ¶
func (m *EcdsaPrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EcdsaPrivateKey) XXX_Merge ¶
func (m *EcdsaPrivateKey) XXX_Merge(src proto.Message)
func (*EcdsaPrivateKey) XXX_Size ¶
func (m *EcdsaPrivateKey) XXX_Size() int
func (*EcdsaPrivateKey) XXX_Unmarshal ¶
func (m *EcdsaPrivateKey) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*EcdsaPublicKey) XXX_DiscardUnknown ¶
func (m *EcdsaPublicKey) XXX_DiscardUnknown()
func (*EcdsaPublicKey) XXX_Marshal ¶
func (m *EcdsaPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EcdsaPublicKey) XXX_Merge ¶
func (m *EcdsaPublicKey) XXX_Merge(src proto.Message)
func (*EcdsaPublicKey) XXX_Size ¶
func (m *EcdsaPublicKey) XXX_Size() int
func (*EcdsaPublicKey) XXX_Unmarshal ¶
func (m *EcdsaPublicKey) XXX_Unmarshal(b []byte) error
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.