[riot-notifications] [RIOT] add sha256 implementation (#96)

Christian Mehlis notifications at github.com
Tue Aug 6 19:51:04 CEST 2013


> +    uint32_t W[64];
> +    uint32_t S[8];
> +    uint32_t t0, t1;
> +    int i;
> +
> +    /* 1. Prepare message schedule W. */
> +    be32dec_vect(W, block, 64);
> +
> +    for (i = 16; i < 64; i++) {
> +        W[i] = s1(W[i - 2]) + W[i - 7] + s0(W[i - 15]) + W[i - 16];
> +    }
> +
> +    /* 2. Initialize working variables. */
> +    memcpy(S, state, 32);
> +
> +    /* 3. Mix. */

with your patch we have:
native: 10598  vs. 9076 (hello world riot)
msb-430h: 7706 vs. 4986 (hello world riot)

nice!

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/96/files#r5611079
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130806/a2811568/attachment.html>


More information about the notifications mailing list