private static byte[] DecryptFileHeader(string inputFilePath, byte[] encryptedHeader, byte[] nonce, byte[] keyEncryptionKey) { byte[] additionalData = HeaderEncryption.GetAdditionalData(inputFilePath); return(HeaderEncryption.Decrypt(encryptedHeader, nonce, keyEncryptionKey, additionalData)); }
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)); }