Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/net/wireguard/noise.c message_decrypt() -> chacha20poly1305_decrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 0,2544334924202516480,4474959302064992256
PARAM_VALUE 2 src_len 16,28,48
PARAM_VALUE 4 ad_len 32
PARAM_VALUE 5 nonce 0
BUF_SIZE 0 dst (-1),12,32
BUF_SIZE 0 dst (-1),12,32
BUF_SIZE 1 src 16,28,48
BUF_SIZE 1 src 16,28,48
BUF_SIZE 3 ad 32
BUF_SIZE 6 key 32
BUF_SIZE 6 key 32
DATA_SOURCE 0 dst $0
DATA_SOURCE 1 src $1
DATA_SOURCE 2 src_len $2
DATA_SOURCE 3 ad $4
DATA_SOURCE 6 key $3
HARD_MAX 2 src_len 48
USER_DATA 1 *src 0-255
UNITS 2 src_len unit_byte
USER_PTR 1 src
LOCK2 &wg->static_identity.lock
TYPE_LOCK (struct noise_static_identity)->lock

security/keys/big_key.c big_key_read() -> chacha20poly1305_decrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 1-18446744073709551614
PARAM_VALUE 1 src 1-18446744073709551614
PARAM_VALUE 2 src_len 1505-1048592
PARAM_VALUE 3 ad 0
PARAM_VALUE 4 ad_len 0
PARAM_VALUE 5 nonce 0
BUF_SIZE 0 dst 1505-1048592
BUF_SIZE 0 dst 1505-1048592
BUF_SIZE 1 src 1505-1048592
BUF_SIZE 1 src 1505-1048592
BUF_SIZE 6 key 1-1488
BUF_SIZE 6 key 1-1488
CAPPED_DATA 2 src_len 1
CAPPED_DATA 2 src_len 1
DATA_SOURCE 0 dst r __kvmalloc_node_noprof
DATA_SOURCE 1 src r __kvmalloc_node_noprof
UNITS 2 src_len unit_byte
LOCK2 &key->sem
TYPE_LOCK (struct key)->sem

lib/crypto/tests/chacha20poly1305_kunit.c test_chacha20poly1305() -> chacha20poly1305_decrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 16,4096-ptr_max
PARAM_VALUE 5 nonce 0-255
BUF_SIZE 0 dst 4096
BUF_SIZE 0 dst 4096
CAPPED_DATA 0 dst 1
DATA_SOURCE 0 dst r alloc_buf
MEM_ZERO 0 dst

lib/crypto/tests/chacha20poly1305_kunit.c test_chacha20poly1305() -> chacha20poly1305_decrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 16,4096-ptr_max
PARAM_VALUE 1 src 16,4096-ptr_max
PARAM_VALUE 2 src_len 16-1024
PARAM_VALUE 3 ad 0
PARAM_VALUE 4 ad_len 0
PARAM_VALUE 5 nonce 0
BUF_SIZE 0 dst 4096
BUF_SIZE 0 dst 4096
BUF_SIZE 1 src 4096
BUF_SIZE 1 src 4096
BUF_SIZE 6 key 32
CAPPED_DATA 0 dst 1
CAPPED_DATA 1 src 1
CAPPED_DATA 2 src_len 1
CAPPED_DATA 2 src_len 1
DATA_SOURCE 0 dst r alloc_buf
DATA_SOURCE 1 src r alloc_buf
FUZZY_MAX 2 src_len 16
MEM_ZERO 0 dst
MEM_ZERO 1 src
UNITS 2 src_len unit_array_size