public byte[] ExportCspBlob(bool includePrivateParameters) { return CapiHelper.ExportKeyBlob(includePrivateParameters, SafeKeyHandle); }
public UpdateSigningKey() { DSACryptoServiceProvider provider = new DSACryptoServiceProvider(); PrivateKey = provider.ExportCspBlob(true); PublicKey = provider.ExportCspBlob(false); Name = "New Key"; }