Lines Matching refs:ilen
288 size_t ilen ) in mbedtls_sha1_update_ret() argument
295 SHA1_VALIDATE_RET( ilen == 0 || input != NULL ); in mbedtls_sha1_update_ret()
297 if( ilen == 0 ) in mbedtls_sha1_update_ret()
303 ctx->total[0] += (uint32_t) ilen; in mbedtls_sha1_update_ret()
306 if( ctx->total[0] < (uint32_t) ilen ) in mbedtls_sha1_update_ret()
309 if( left && ilen >= fill ) in mbedtls_sha1_update_ret()
317 ilen -= fill; in mbedtls_sha1_update_ret()
321 while( ilen >= 64 ) in mbedtls_sha1_update_ret()
327 ilen -= 64; in mbedtls_sha1_update_ret()
330 if( ilen > 0 ) in mbedtls_sha1_update_ret()
331 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_sha1_update_ret()
339 size_t ilen ) in mbedtls_sha1_update() argument
341 mbedtls_sha1_update_ret( ctx, input, ilen ); in mbedtls_sha1_update()
420 size_t ilen, in mbedtls_sha1_ret() argument
426 SHA1_VALIDATE_RET( ilen == 0 || input != NULL ); in mbedtls_sha1_ret()
434 if( ( ret = mbedtls_sha1_update_ret( &ctx, input, ilen ) ) != 0 ) in mbedtls_sha1_ret()
448 size_t ilen, in mbedtls_sha1() argument
451 mbedtls_sha1_ret( input, ilen, output ); in mbedtls_sha1()