예제 #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));
 }
예제 #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));
 }