Changeset 37641 in project for release/5/sha1/trunk/sha1.h


Ignore:
Timestamp:
06/02/19 19:08:52 (16 months ago)
Author:
Kon Lovett
Message:

update len is not size_t but uint32, test not unsafe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/5/sha1/trunk/sha1.h

    r35839 r37641  
    1010typedef struct {
    1111        uint32_t state[5];
    12         uint32_t count[2]; 
     12        uint32_t count[2];
    1313        uint8_t buffer[SHA1_BLOCK_LENGTH];
    1414} SHA1_CTX;
    15  
     15
    1616static void     SHA1Transform(uint32_t state[5], const uint8_t buffer[SHA1_BLOCK_LENGTH]);
    1717static void     SHA1Init(SHA1_CTX *context);
    18 static void     SHA1Update(SHA1_CTX *context, const uint8_t *data, size_t len);
     18static void     SHA1Update(SHA1_CTX *context, const uint8_t *data, uint32_t len);
    1919static void     SHA1Final(SHA1_CTX *context, uint8_t digest[SHA1_DIGEST_LENGTH]);
Note: See TracChangeset for help on using the changeset viewer.