PublicKeyInfo Class
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9147)
Represents a public key.
Syntax
public class PublicKeyInfo : PkcsBase
Inherited Members
Constructors
Name | Description |
---|---|
Public |
Creates a new instance of Public |
Public |
Creates a new instance of Public |
Public |
Creates a new instance of Public |
Properties
Name | Description |
---|---|
Key |
Gets the key algorithm identifier. |
Methods
Name | Description |
---|---|
Encode() | Gets ASN.1 encoded form of this Public |
Get |
Gets the DSA parameters for a DSA public key. May only be used for DSA public keys. |
Get |
Returns the key algorithm. |
Get |
Returns the size of the key in bits. |
Get |
Gets the RSA parameters for a RSA public key. May only be used for RSA public keys. |
Load(Stream) | Loads a PKCS #8 public key from a stream.
Upon successful decoding, information can be retrieved using Public |
Load(String) | Loads a PKCS #8 public key from a file.
Upon successful decoding, information can be retrieved using Public |
Load |
Loads a CMS/PKCS #7 signed or enveloped message from a stream.
Returns an instance of Signed |
Save(Stream) | Saves the public key into the supplied stream in Base64-encoded PKCS #8 format. |
Save(String) | Saves the public key into the supplied stream in Base64-encoded PKCS #8 format. |
To |
Gets the raw form of the public key. |