PublicKeyExtensionsEncode Method
Encodes public key to a ASN.1 compatible format that includes key algorithm, key algorithm parameters
and encoded key value.
Namespace: SysadminsLV.PKI.CryptographyAssembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
public static byte[] Encode(
this PublicKey publicKey
)
<ExtensionAttribute>
Public Shared Function Encode (
publicKey As PublicKey
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ Encode(
PublicKey^ publicKey
)
[<ExtensionAttribute>]
static member Encode :
publicKey : PublicKey -> byte[]
- publicKey PublicKey
ByteASN.1 encoded byte array.In Visual Basic and C#, you can call this method as an instance method on any object of type
PublicKey. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).