Lines Matching refs:buffer
297 memcpy( (void *) (ctx->buffer + left), input, fill ); in mbedtls_sha1_update()
299 if( ( ret = mbedtls_internal_sha1_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha1_update()
317 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_sha1_update()
340 ctx->buffer[used++] = 0x80; in mbedtls_sha1_finish()
345 memset( ctx->buffer + used, 0, 56 - used ); in mbedtls_sha1_finish()
350 memset( ctx->buffer + used, 0, 64 - used ); in mbedtls_sha1_finish()
352 if( ( ret = mbedtls_internal_sha1_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha1_finish()
355 memset( ctx->buffer, 0, 56 ); in mbedtls_sha1_finish()
365 MBEDTLS_PUT_UINT32_BE( high, ctx->buffer, 56 ); in mbedtls_sha1_finish()
366 MBEDTLS_PUT_UINT32_BE( low, ctx->buffer, 60 ); in mbedtls_sha1_finish()
368 if( ( ret = mbedtls_internal_sha1_process( ctx, ctx->buffer ) ) != 0 ) in mbedtls_sha1_finish()