Documentation ¶
Index ¶
Constants ¶
const Plugin_Type_CosmosG_Id = "urn:network.regen.keystone.plugins:cosmosg"
const Plugin_Type_File_Id = "urn:network.regen.keystone.plugins:file"
const Plugin_Type_Pkcs11_Id = "urn:network.regen.keystone.plugins:pkcs11"
Variables ¶
This section is empty.
Functions ¶
func IsSNormalized ¶
isSNormalized returns true for the integer sigS if sigS falls in lower half of the curve order It is expected that the caller passes the curve order as a big Int along with the s portion of the signature.
func NormalizeS ¶
NormalizeS will invert the s value if not already in the lower half of curve order value by subtracting it from the curve order (N)
Types ¶
type DsaSignature ¶
dsaSignature contains the two integers needed for an ECDSA signature value. They must be put in a struct to allow the asn1 unmarshalling which uses an interface{} type to return the values, instead of just returning the two integers.
func UnmarshalDER ¶
func UnmarshalDER(sigDER []byte) (*DsaSignature, error)
unmarshalDER takes a DER-encoded byte array, and dumps it into a (hopefully-appropriate) struct. If the struct given, is not appropriate for the data, then unmarshalling will fail.