Search Results for

    Show / Hide Table of Contents

    Class EcdsaKey

    An elliptic-curve key.

    Inheritance
    System.Object
    AsymmetricKey
    EcdsaKey
    Inherited Members
    AsymmetricKey.CreateKey(AsymmetricKeyType)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class EcdsaKey : AsymmetricKey

    Properties

    NamedCurve

    Gets or sets the named curve.

    Declaration
    public EcdsaNamedCurve NamedCurve { get; set; }
    Property Value
    Type Description
    EcdsaNamedCurve

    PrivateKey

    Gets or sets the private key.

    Declaration
    public byte[] PrivateKey { get; set; }
    Property Value
    Type Description
    System.Byte[]

    PublicKey

    Gets or sets the public key.

    Declaration
    public byte[] PublicKey { get; set; }
    Property Value
    Type Description
    System.Byte[]

    Size

    Gets the size of the key.

    Declaration
    public int Size { get; }
    Property Value
    Type Description
    System.Int32

    Type

    Gets the key type.

    Declaration
    public override AsymmetricKeyType Type { get; }
    Property Value
    Type Description
    AsymmetricKeyType
    Overrides
    AsymmetricKey.Type

    Methods

    GetBytes()

    Serializes this key to binary.

    Declaration
    public byte[] GetBytes()
    Returns
    Type Description
    System.Byte[]

    GetString()

    Serializes this key to a string.

    Declaration
    public string GetString()
    Returns
    Type Description
    System.String

    HasPrivate()

    Returns true if the key contains private information.

    Declaration
    public override bool HasPrivate()
    Returns
    Type Description
    System.Boolean
    Overrides
    AsymmetricKey.HasPrivate()

    HasPublic()

    Returns true if the key contains public information.

    Declaration
    public override bool HasPublic()
    Returns
    Type Description
    System.Boolean
    Overrides
    AsymmetricKey.HasPublic()

    ParseBuffer(DataBuffer, Boolean)

    Deserializes a key from binary.

    Declaration
    public static EcdsaKey ParseBuffer(DataBuffer buffer, bool isPrivate)
    Parameters
    Type Name Description
    DataBuffer buffer

    The buffer.

    System.Boolean isPrivate

    Whether this is a public key.

    Returns
    Type Description
    EcdsaKey

    ParseBytes(Byte[], Boolean)

    Deserializes a key from binary.

    Declaration
    public static EcdsaKey ParseBytes(byte[] bytes, bool isPrivate)
    Parameters
    Type Name Description
    System.Byte[] bytes

    The bytes.

    System.Boolean isPrivate

    Whether this is a public key.

    Returns
    Type Description
    EcdsaKey

    ParseSignature(Byte[], out Byte[], out Byte[])

    Parses a signature.

    Declaration
    public static bool ParseSignature(byte[] signature, out byte[] r, out byte[] s)
    Parameters
    Type Name Description
    System.Byte[] signature

    The signature.

    System.Byte[] r

    The R value.

    System.Byte[] s

    The S value.

    Returns
    Type Description
    System.Boolean

    ParseString(String)

    Deserializes a key from a string.

    Declaration
    public static EcdsaKey ParseString(string str)
    Parameters
    Type Name Description
    System.String str

    The string.

    Returns
    Type Description
    EcdsaKey

    ToPublic()

    Creates a copy of this key without the private key.

    Declaration
    public EcdsaKey ToPublic()
    Returns
    Type Description
    EcdsaKey
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.18.0