diff options
author | Paul Bakker <p.j.bakker@polarssl.org> | 2012-10-01 14:41:15 +0000 |
---|---|---|
committer | Paul Bakker <p.j.bakker@polarssl.org> | 2012-10-01 14:41:15 +0000 |
commit | 5c2364c2bac4c0c0c269235aa701ec7e07a1e00e (patch) | |
tree | 51de66388f33a7b14e34b8b985cc557d3cf0c11d /library/pbkdf2.c | |
parent | 6adff7497a010b49ec2d0e18ed2c5bacf1054a04 (diff) | |
download | mbedtls-5c2364c2bac4c0c0c269235aa701ec7e07a1e00e.zip mbedtls-5c2364c2bac4c0c0c269235aa701ec7e07a1e00e.tar.gz mbedtls-5c2364c2bac4c0c0c269235aa701ec7e07a1e00e.tar.bz2 |
- Moved from unsigned long to uint32_t throughout code
Diffstat (limited to 'library/pbkdf2.c')
-rw-r--r-- | library/pbkdf2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/pbkdf2.c b/library/pbkdf2.c index 19a8f41..5bc4ab7 100644 --- a/library/pbkdf2.c +++ b/library/pbkdf2.c @@ -42,7 +42,7 @@ int pbkdf2_hmac( md_context_t *ctx, const unsigned char *password, size_t plen, const unsigned char *salt, size_t slen, unsigned int iteration_count, - unsigned long key_length, unsigned char *output ) + uint32_t key_length, unsigned char *output ) { int ret, j; unsigned int i; @@ -143,10 +143,10 @@ unsigned char salt[MAX_TESTS][40] = "sa\0lt", }; -unsigned long it_cnt[MAX_TESTS] = +uint32_t it_cnt[MAX_TESTS] = { 1, 2, 4096, 16777216, 4096, 4096 }; -unsigned long key_len[MAX_TESTS] = +uint32_t key_len[MAX_TESTS] = { 20, 20, 20, 20, 25, 16 }; |