Interface IPublicKey
- Namespace
- Yubico.YubiKey.Cryptography
- Assembly
- Yubico.YubiKey.dll
Defines the contract for cryptographic public keys.
public interface IPublicKey : IKeyBase
- Inherited Members
- Extension Methods
Remarks
This interface extends IKeyBase to include public key-specific operations for X.509 SubjectPublicKeyInfo export.
Concrete implementations include ECPublicKey, RSAPublicKey and Curve25519PublicKey, each providing algorithm-specific public key handling and export mechanisms.
Methods
ExportSubjectPublicKeyInfo()
Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format.
byte[] ExportSubjectPublicKeyInfo()
Returns
- byte[]
A byte array containing the X.509 SubjectPublicKeyInfo representation of the public-key portion of this key