Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

lib/crypto/tests/sha3_kunit.c benchmark_hash() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 16,4096-ptr_max
PARAM_VALUE 1 in_len 16384
BUF_SIZE 0 in 16384
BUF_SIZE 0 in 16384
BUF_SIZE 2 out 32
DATA_SOURCE 0 in r alloc_buf
MEM_ZERO 0 in
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c benchmark_hash() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 16,4096-ptr_max
PARAM_VALUE 1 in_len 0-16384
BUF_SIZE 0 in 16384
BUF_SIZE 0 in 16384
BUF_SIZE 2 out 32
DATA_SOURCE 0 in r alloc_buf
MEM_ZERO 0 in
PREEMPT_ADD <- disables preempt
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c hash_irq_test1_func() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 256
BUF_SIZE 2 out 32
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_alignment_consistency() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16384
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_alignment_consistency() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16384
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_all_lens_up_to_4096() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 16,4096-ptr_max
PARAM_VALUE 1 in_len 0-4096
PARAM_VALUE 2 out 9136167964550807552
BUF_SIZE 0 in 4096
BUF_SIZE 0 in 4096
BUF_SIZE 2 out 32
DATA_SOURCE 0 in r alloc_buf
FUZZY_MAX 1 in_len 4096
HARD_MAX 1 in_len 4096
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_buffer_overruns() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 1 in_len 0-16176
BUF_SIZE 2 out 32
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_buffer_overruns() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16176
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 0 in r alloc_guarded_buf
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_incremental_updates() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16384
BUF_SIZE 2 out 32
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_interrupt_context_1() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 256
BUF_SIZE 2 out 32
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_interrupt_context_2() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 16384
BUF_SIZE 0 in 16384
BUF_SIZE 0 in 16384
BUF_SIZE 2 out 32
DATA_SOURCE 0 in r alloc_buf
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_overlaps() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16352
PARAM_VALUE 2 out 7411618238233686016
BUF_SIZE 2 out 32
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_overlaps() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16352
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_overlaps() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16352
PARAM_VALUE 2 out 7411618238233686016
BUF_SIZE 2 out 32
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_overlaps() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 in_len 0-16352
PARAM_VALUE 2 out 7411618238233686016
BUF_SIZE 2 out 32
CAPPED_DATA 1 in_len 1
CAPPED_DATA 1 in_len 1
DATA_SOURCE 1 in_len r rand_length
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_hash_test_vectors() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 16,4096-ptr_max
PARAM_VALUE 1 in_len 0-3,16,32,48-49,63-65,127-129,256,511,513,1000,3333,4096,4128
BUF_SIZE 0 in 16384
BUF_SIZE 0 in 16384
BUF_SIZE 2 out 32
DATA_SOURCE 0 in r alloc_buf
NOCHECK_CALL

lib/crypto/tests/sha3_kunit.c test_sha3_256_basic() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 1224337677206781952
PARAM_VALUE 1 in_len 200
BUF_SIZE 0 in 201
BUF_SIZE 2 out 40
NOCHECK_CALL
UNITS 1 in_len unit_byte

crypto/sha3.c crypto_sha3_256_digest() -> sha3_256()

Type Parameter Key Value
BUF_SIZE 0 in (-1)-s32max
BUF_SIZE 0 in (-1)-s32max
BUF_SIZE 2 out (-1)-s32max
BUF_SIZE 2 out (-1)-s32max
DATA_SOURCE 0 in $1
DATA_SOURCE 1 in_len $2
DATA_SOURCE 2 out $3
PARAM_COMPARE 0 in == $1
NOSPEC 0 *in
NOSPEC 1 in_len
NOSPEC 1 in_len
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 in 4096-ptr_max[c]
HOST_DATA 1 in_len 0-4605,4294962946-u32max[c]
USER_DATA 0 in 4096-ptr_max[c][u]
USER_DATA 0 *in 0-255
USER_DATA 1 in_len 0-u32max
USER_DATA 2 *out 0-255
NO_OVERFLOW_SIMPLE 0 in->compr_size
NO_OVERFLOW_SIMPLE 0 in->ino
NO_OVERFLOW_SIMPLE 0 in->jhead
UNITS 0 in unit_byte
UNITS 1 in_len unit_byte
UNITS 2 out unit_byte
BYTE_COUNT 0 ==in1 8050
USER_PTR 0 in
USER_PTR 2 out

lib/crypto/sha3.c sha3_mod_init() -> sha3_256()

Type Parameter Key Value
PARAM_VALUE 0 in 8443612766644551680
PARAM_VALUE 1 in_len 16
BUF_SIZE 0 in 16
BUF_SIZE 2 out 32
NOCHECK_CALL
UNITS 1 in_len unit_byte