# HG changeset patch # User michael # Date 1173734073 0 # Node ID 8f02801da0f8e39a2e0470c60f47afe353196136 # Parent 18a98b19af3f540f3526afc11bd471ca658e70ce its faster to copy the data to the stack it seems ... diff -r 18a98b19af3f -r 8f02801da0f8 sha1.c --- a/sha1.c Mon Mar 12 21:07:38 2007 +0000 +++ b/sha1.c Mon Mar 12 21:14:33 2007 +0000 @@ -29,7 +29,10 @@ static void transform(uint32_t state[5], uint8_t buffer[64]){ unsigned int a, b, c, d, e, i; - uint32_t* block= buffer; + uint32_t block[16]; + + memcpy(block, buffer, 64); + /* Copy context->state[] to working vars */ a = state[0]; b = state[1];