[squeak-dev] [ERROR}[5.3] building ByteArrays from HEX strings are now failing

Robert robert.withers at pm.me
Wed Mar 4 13:40:06 UTC 2020


Hi Levente,

Yes, I see what you are saying. Without the Crypto plugins, all the Crypto tests run green.

With the Crypto plugins, things get messed up. ByteArray class>>#fromHexString: still completes, but the KeyHolder>>#key SEG-FAULTS the vm (called from CryptoRC2Test>>#testARC2). Additionally, the following two tests fail: CryptoDESTest>>#testDESCBC and CryptoDESTest>>#testTripleDESCBC.

The SEG-FAULT comes from this code:

KeyHolder new
    data: KeyHolderData new;
    encryptKey: #(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) asByteArray;
    key

tyk, r

On 3/4/20 8:10 AM, Levente Uzonyi wrote:

> 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:
>
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200304/6c415dff/attachment.html>


More information about the Squeak-dev mailing list