Changeset 37641 in project
- Timestamp:
- 06/02/19 19:08:52 (6 months ago)
- Location:
- release/5/sha1/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
release/5/sha1/trunk/sha1-base.c
r37640 r37641 128 128 */ 129 129 static void 130 SHA1Update(SHA1_CTX *context, const uint8_t *data, size_t len)130 SHA1Update(SHA1_CTX *context, const uint8_t *data, uint32_t len) 131 131 { 132 u nsigned int i;132 uint32_t i; 133 133 uint32_t j; 134 134 … … 163 163 for (i = 0; i < 8; i++) { 164 164 finalcount[i] = (uint8_t)((context->count[(i >= 4 ? 0 : 1)] 165 165 >> ((3-(i & 3)) * 8) ) & 255); /* Endian independent */ 166 166 } 167 167 SHA1Update(context, (const uint8_t *)"\200", 1); -
release/5/sha1/trunk/sha1.h
r35839 r37641 10 10 typedef struct { 11 11 uint32_t state[5]; 12 uint32_t count[2]; 12 uint32_t count[2]; 13 13 uint8_t buffer[SHA1_BLOCK_LENGTH]; 14 14 } SHA1_CTX; 15 15 16 16 static void SHA1Transform(uint32_t state[5], const uint8_t buffer[SHA1_BLOCK_LENGTH]); 17 17 static void SHA1Init(SHA1_CTX *context); 18 static void SHA1Update(SHA1_CTX *context, const uint8_t *data, size_t len);18 static void SHA1Update(SHA1_CTX *context, const uint8_t *data, uint32_t len); 19 19 static void SHA1Final(SHA1_CTX *context, uint8_t digest[SHA1_DIGEST_LENGTH]); -
release/5/sha1/trunk/tests/run.scm
r35839 r37641 15 15 (define *csc-options* "-inline-global \ 16 16 -specialize -optimize-leaf-routines -clustering -lfa2 \ 17 -local -inline \ 18 -no-trace -no-lambda-info \ 19 -unsafe") 17 -local -inline") 20 18 21 19 (define (test-name #!optional (eggnam EGG-NAME))
Note: See TracChangeset
for help on using the changeset viewer.