public void Decrypt(byte[] passphrase) { D = AES256.AES_Decrypt(D, passphrase); DP = AES256.AES_Decrypt(DP, passphrase); DQ = AES256.AES_Decrypt(DQ, passphrase); Exponent = AES256.AES_Decrypt(Exponent, passphrase); InverseQ = AES256.AES_Decrypt(InverseQ, passphrase); Modulus = AES256.AES_Decrypt(Modulus, passphrase); P = AES256.AES_Decrypt(P, passphrase); Q = AES256.AES_Decrypt(Q, passphrase); }
// Veri desifreleme public byte[] DecryptFile(byte[] buffer, byte[] encryptedPassphrase) { byte[] decryptedPassphrase = RSA.RSADecrypt(encryptedPassphrase, rsaPrivateKeyInfo, false); byte[] decrypted = AES256.AES_Decrypt(buffer, decryptedPassphrase); return(decrypted); }