Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 5 of 5) sorted by relevance

/lib/kunit/
A Dstring-stream-test.c169 size_t len, total_len; in string_stream_line_add_test() local
176 total_len = 0; in string_stream_line_add_test()
185 total_len += len; in string_stream_line_add_test()
191 KUNIT_EXPECT_EQ(test, strlen(concat_string), total_len); in string_stream_line_add_test()
225 size_t offset, total_len; in string_stream_variable_length_line_test() local
237 total_len = 0; in string_stream_variable_length_line_test()
241 total_len += sizeof(line) - offset; in string_stream_variable_length_line_test()
247 KUNIT_EXPECT_EQ(test, strlen(concat_string), total_len); in string_stream_variable_length_line_test()
/lib/crypto/tests/
A Dhash-test-template.h153 size_t total_len, offset; in test_hash_incremental_updates() local
160 total_len = rand_length(TEST_BUF_LEN); in test_hash_incremental_updates()
161 offset = rand_offset(TEST_BUF_LEN - total_len); in test_hash_incremental_updates()
162 rand_bytes(&test_buf[offset], total_len); in test_hash_incremental_updates()
165 HASH(&test_buf[offset], total_len, hash1); in test_hash_incremental_updates()
172 remaining_len = total_len; in test_hash_incremental_updates()
192 total_len, num_parts, offset); in test_hash_incremental_updates()
/lib/crypto/
A Dchacha20poly1305-selftest.c8888 size_t i, j, k, total_len; in chacha20poly1305_selftest() local
9028 && total_len <= 1 << 10; ++total_len) { in chacha20poly1305_selftest()
9029 for (i = 0; i <= total_len; ++i) { in chacha20poly1305_selftest()
9030 for (j = i; j <= total_len; ++j) { in chacha20poly1305_selftest()
9037 if (total_len - j) in chacha20poly1305_selftest()
9040 memset(computed_output, 0, total_len); in chacha20poly1305_selftest()
9041 memset(input, 0, total_len); in chacha20poly1305_selftest()
9044 total_len - POLY1305_DIGEST_SIZE, NULL, 0, in chacha20poly1305_selftest()
9054 input, total_len, NULL, 0, 0, enc_key001)) in chacha20poly1305_selftest()
9061 total_len, NULL, 0, 0, enc_key001)) in chacha20poly1305_selftest()
[all …]
/lib/
A Dxxhash.c278 state->total_len += len; in xxh64_update()
344 if (state->total_len >= 32) { in xxh64_digest()
360 h64 += (uint64_t)state->total_len; in xxh64_digest()
A Diov_iter.c1451 ssize_t total_len = 0; in __import_iovec() local
1482 if (len > MAX_RW_COUNT - total_len) { in __import_iovec()
1483 len = MAX_RW_COUNT - total_len; in __import_iovec()
1486 total_len += len; in __import_iovec()
1489 iov_iter_init(i, type, iov, nr_segs, total_len); in __import_iovec()
1494 return total_len; in __import_iovec()

Completed in 28 milliseconds