private byte[] ExportFullKeyBlob(bool includePrivateParameters)
{
string blobType = includePrivateParameters ?
Interop.BCrypt.KeyBlobType.BCRYPT_ECCFULLPRIVATE_BLOB :
Interop.BCrypt.KeyBlobType.BCRYPT_ECCFULLPUBLIC_BLOB;
using (SafeNCryptKeyHandle keyHandle = GetDuplicatedKeyHandle())
{
return CngKeyLite.ExportKeyBlob(keyHandle, blobType);
}
}
}