<div dir="ltr"><div>Hi Robert,</div><div>normally, most of VM/plugins development should take place with the VM-simulation from within the SpurVMMaker.image  (unless the plugin extensively call C functions from external libraries).</div><div>You will find a Worksapce with some simulation examples.</div><div>Then you might detect the error from within Smalltalk with debuggers etc...<br></div><div>I recommend simulating a Stack VM for a beginning (or you'll need to compile the Bochs plugin, which is currently difficult on linux...).<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 4 mars 2020 à 14:40, Robert via Squeak-dev <<a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
    <p>Hi Levente,<br>
      <br>
      Yes, I see what you are saying. Without the Crypto plugins, all
      the Crypto tests run green. <br>
      <br>
      With the Crypto plugins, things get messed up. ByteArray
      class>>#fromHexString: still completes, but the
      KeyHolder>>#key SEG-FAULTS the vm (called from <b>CryptoRC2Test>>#testARC2</b>).
      Additionally, the following two tests fail: <b>CryptoDESTest>>#testDESCBC</b>
      and <b>CryptoDESTest>>#testTripleDESCBC.</b> <br>
      <br>
      The SEG-FAULT comes from this code:<br>
      <br>
      KeyHolder new<br>
          data: KeyHolderData new;<br>
          encryptKey: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) asByteArray;<br>
          key<br>
      <br>
      tyk, r<br>
    </p>
    <div>On 3/4/20 8:10 AM, Levente Uzonyi
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>Hi Robert,

I just ran all test cases of Cryptography-v5.3-rww.118.mcz in a fresh 5.3
image on 64-bit linux using the stock VM (no Cryptography plugins), and
all the tests are green.
ByteArray class >> #fromHexString: and methods sent by it were last
modified in 2010, and they do not accept non-hexadecimal digits in the
input string.

Levente


On Wed, 4 Mar 2020, Robert via Squeak-dev wrote:

</pre>
      <blockquote type="cite">
        <pre>In squeak 5.3, building ByteArrays from HEX strings are now failing,
after years of passing within the Cryptography tests.

The first doIt works, while the other two are now failing in the
#readHexFrom: method...
PASSING
ByteArray fromHexString: '06a9214036b8a15b512e03d534120006'

FAILING
ByteArray fromHexString: '16rc286696d887c9aa0611bbb3e2025a45a'
ByteArray fromHexString: '00000000 00000000'

This is causing multiple test failures in the Cryptography test suite.

tyk, r
</pre>
      </blockquote>
    </blockquote>
  

</div><br>
</blockquote></div>