Bitmap VS WordArray in System-Hashing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bitmap VS WordArray in System-Hashing

demarey
Hi,

With Max M., we try to kill the dependency between System-Hashing to Graphics - Display Objects.
The dependency is there because SHA1 and SHA256 use the Bitmap class to store raw data.
We came to replace the use of Bitmap by a WordArray. Tests are still working.

Could someone tell us if this fix is right or if we miss something?

Thanks,
Max and Christophe

smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bitmap VS WordArray in System-Hashing

Max Leske

> On 18 Sep 2015, at 13:51, Christophe Demarey <[hidden email]> wrote:
>
> Hi,
>
> With Max M., we try to kill the dependency between System-Hashing to Graphics - Display Objects.
> The dependency is there because SHA1 and SHA256 use the Bitmap class to store raw data.
> We came to replace the use of Bitmap by a WordArray. Tests are still working.
>
> Could someone tell us if this fix is right or if we miss something?
>
> Thanks,
> Max and Christophe


Looks good to me. Also: the ‘totals’ variable (which is the bitmap) is never used in SHA-256 (only written once and then assigned nil later).

Cheers,
Max