chovy-sign/PsvImage/PsvmdBuilder.cs
2023-04-14 15:55:11 +12:00

23 lines
520 B
C#

using System;
using System.Collections.Generic;
using System.IO;
namespace PsvImage
{
class PsvmdBuilder
{
public static void CreatePsvmd(Stream OutputStream, Stream EncryptedPsvimg, long ContentSize, string BackupType,
byte[] Key)
{
Span<byte> iv = new byte[PSVIMGConstants.AES_BLOCK_SIZE];
EncryptedPsvimg.Seek(0, SeekOrigin.Begin);
EncryptedPsvimg.Read(iv);
iv = AesHelper.AesEcbDecrypt(iv.ToArray(), Key);
}
}
}