Exemplo n.º 1
0
 private static byte[] DecryptFileHeader(string inputFilePath, byte[] encryptedHeader, byte[] nonce, byte[] keyEncryptionKey)
 {
     byte[] additionalData = HeaderEncryption.GetAdditionalData(inputFilePath);
     return(HeaderEncryption.Decrypt(encryptedHeader, nonce, keyEncryptionKey, additionalData));
 }
Exemplo n.º 2
0
 private static byte[] DecryptFileHeader(FileStream inputFile, byte[] ephemeralPublicKey, byte[] encryptedHeader, byte[] nonce, byte[] keyEncryptionKey)
 {
     byte[] additionalData = HeaderEncryption.GetAdditionalData(inputFile, ephemeralPublicKey);
     return(HeaderEncryption.Decrypt(encryptedHeader, nonce, keyEncryptionKey, additionalData));
 }