Beispiel #1
0
 public static void WriteHeaders(FileStream ciphertext, byte[] salt, byte[] nonce)
 {
     NullChecks.FileHeaders(ciphertext, salt, nonce);
     ConvertArgon2Parameters(out byte[] memorySize, out byte[] iterations, out byte[] endFlag);
     ciphertext.Write(memorySize, 0, memorySize.Length);
     ciphertext.Write(iterations, 0, iterations.Length);
     ciphertext.Write(endFlag, 0, endFlag.Length);
     ciphertext.Write(salt, 0, salt.Length);
     ciphertext.Write(nonce, 0, nonce.Length);
 }