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