Class PublicKey
Assembly: Lacuna.Pki.dll
Syntax
public abstract class PublicKey
Properties
Algorithm
Declaration
public abstract PKAlgorithm Algorithm { get; }
Property Value
KeySize
Declaration
public abstract int KeySize { get; }
Property Value
Methods
Decode(Byte[])
Declaration
public static PublicKey Decode(byte[] content)
Parameters
Type |
Name |
Description |
Byte[] |
content |
|
Returns
Decode(String)
Declaration
public static PublicKey Decode(string pem)
Parameters
Type |
Name |
Description |
String |
pem |
|
Returns
GetEncodedValue()
Returns the DER encoding of the X.509 structure SubjectPublicKeyInfo
Declaration
public byte[] GetEncodedValue()
Returns
GetEncryptionCsp()
Declaration
public IEncryptionCsp GetEncryptionCsp()
Returns
GetInstance(AsymmetricAlgorithm)
Declaration
public static PublicKey GetInstance(AsymmetricAlgorithm csp)
Parameters
Returns
GetPemEncoded()
Returns the PEM encoding of the public key
Declaration
public string GetPemEncoded()
Returns
GetSignatureCsp(DigestAlgorithm)
Declaration
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parameters
Returns
IsEquivalent(PublicKey)
Declaration
public bool IsEquivalent(PublicKey other)
Parameters
Returns
VerifyData(DigestAlgorithm, Byte[], Byte[])
Declaration
public bool VerifyData(DigestAlgorithm digestAlgorithm, byte[] dataSigned, byte[] signature)
Parameters
Returns
VerifyHash(DigestAlgorithm, Byte[], Byte[])
Declaration
public bool VerifyHash(DigestAlgorithm digestAlgorithm, byte[] hashSigned, byte[] signature)
Parameters
Returns