Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #17811
| From | mhx@iae.nl (Marcel Hendrix) |
|---|---|
| Subject | SHA-512 |
| Newsgroups | comp.lang.forth |
| Message-ID | <78871201918435@frunobulax.edu> (permalink) |
| Date | 2012-12-02 23:48 +0200 |
| Organization | Wanadoo |
I tried my hand at SHA-512, using iForth64.
ATM the results are wrong, but I guess the detailed test data
at http://csrc.nist.gov/groups/ST/toolkit/examples.html
will eventually let me fix that. I am reasonably sure that
the number of instructions is correct.
Using an i7 2.66 GHz CPU, the time to convert a 40 MB string
is 221 ms, or 68MB/s/GHz.
No macro's are used, this is 100% high-level. Source available
on request (remember: you need a 64bit Forth).
FORTH> in sha512
Creating --- SHA-512 64-bit Version 0.00 ---
Try: S" abc" SHA512_Data TYPE
SHAspeed -- test speed with a 40 MB buffer (>181 MB/sec).
ok
FORTH> S" abc" SHA512_Data .SHA512
66F8388B 39DA945C 7815A022 16740C7F 48EAF39A 508EE81D
353D0C20 19904711 9416DAA7 0D9C76FA 81EA7D11 42005067
8981B29D 107A5D90 E86D04F8 E90144A8 ok
FORTH> SHAspeed
Processing 40 Mbytes ... 0.221 seconds elapsed. ok
-marcel
Back to comp.lang.forth | Previous | Next — Next in thread | Find similar | Unroll thread
SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-02 23:48 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-07 14:47 -0800
Re: SHA-512 Coos Haak <chforth@hccnet.nl> - 2012-12-08 00:49 +0100
Re: SHA-512 jzakiya@gmail.com - 2012-12-07 16:54 -0800
Re: SHA-512 Coos Haak <chforth@hccnet.nl> - 2012-12-08 18:21 +0100
Re: SHA-512 jzakiya@gmail.com - 2012-12-08 18:36 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-09 09:14 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-09 17:23 -0800
Re: SHA-512 jzakiya@gmail.com - 2012-12-09 17:29 -0800
Re: SHA-512 jzakiya@gmail.com - 2012-12-09 20:46 -0800
Re: SHA-512 m.a.m.hendrix@tue.nl - 2012-12-10 03:53 -0800
Re: SHA-512 jzakiya@gmail.com - 2012-12-10 13:05 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-10 23:17 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-13 06:30 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-13 21:33 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-13 19:38 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-14 22:52 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-14 16:39 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-15 19:11 +0200
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-16 16:00 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-16 17:33 -0800
Re: SHA-512 jzakiya@gmail.com - 2012-12-16 22:35 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-17 10:14 +0200
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-17 10:51 +0200
Re: SHA-512 jzakiya@gmail.com - 2012-12-17 09:13 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-17 22:24 +0200
Re: SHA-512 jzakiya@gmail.com - 2013-01-15 20:38 -0800
Re: SHA-512 jzakiya@gmail.com - 2013-01-15 20:54 -0800
Re: SHA-512 Howerd <howerdo@yahoo.co.uk> - 2012-12-13 13:06 -0800
Re: SHA-512 Howerd <howerdo@yahoo.co.uk> - 2012-12-13 13:03 -0800
Re: SHA-512 mhx@iae.nl (Marcel Hendrix) - 2012-12-08 22:08 +0200
csiph-web