<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [Patch] Faster AES decryption"
href="https://bugs.freedesktop.org/show_bug.cgi?id=78831#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [Patch] Faster AES decryption"
href="https://bugs.freedesktop.org/show_bug.cgi?id=78831">bug 78831</a>
from <span class="vcard"><a class="email" href="mailto:0xe2.0x9a.0x9b@gmail.com" title="Jan Ziak <0xe2.0x9a.0x9b@gmail.com>"> <span class="fn">Jan Ziak</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=78831#c4">comment #4</a>)
<span class="quote">> Hi, I'm not sure that initializing the arrays through that MulTableInit
> class is a good idea.
>
> Relying on a global/static variable ctor is usually discouraged, because
> it's hard to predict the order those variables are initialized. In order
> words, what happens if you open an encrypted document from another
> global/static variable's ctor? Has the decryption table been initialized
> already or not?</span >
I see. I suggest we introduce a boolean variable that we would check before
every AES decryption. Would this be OK with you? Does the variable need to be
thread-safe?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>