PublicKey
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class
public abstract class PublicKey
Hierarquia: object → PublicKey
Propriedades
Algorithm
public abstract PKAlgorithm Algorithm { get; }
Retorno
KeySize
public abstract int KeySize { get; }
Retorno
Métodos
Decode(byte[])
public static PublicKey Decode(byte[] content)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
content | byte[] |
Retorno
Decode(string)
public static PublicKey Decode(string pem)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
pem | string |
Retorno
GetEncodedValue()
Returns the DER encoding of the X.509 structure SubjectPublicKeyInfo
public byte[] GetEncodedValue()
Retorno
GetEncryptionCsp()
public IEncryptionCsp GetEncryptionCsp()
Retorno
GetInstance(AsymmetricAlgorithm)
public static PublicKey GetInstance(AsymmetricAlgorithm csp)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
csp | AsymmetricAlgorithm |
Retorno
GetPemEncoded()
Returns the PEM encoding of the public key
public string GetPemEncoded()
Retorno
GetSignatureCsp(DigestAlgorithm)
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm |
Retorno
IsEquivalent(PublicKey)
public bool IsEquivalent(PublicKey other)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
other | PublicKey |
Retorno
VerifyData(DigestAlgorithm, byte[], byte[])
public bool VerifyData(DigestAlgorithm digestAlgorithm, byte[] dataSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm | |
dataSigned | byte[] | |
signature | byte[] |
Retorno
VerifyHash(DigestAlgorithm, byte[], byte[])
public bool VerifyHash(DigestAlgorithm digestAlgorithm, byte[] hashSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
digestAlgorithm | DigestAlgorithm | |
hashSigned | byte[] | |
signature | byte[] |
Retorno
Membros herdados
ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()