Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

crypto/chacha.c crypto_chacha_crypt() -> chacha_stream_xor()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
BUF_SIZE 0 req (-1)-s32max
BUF_SIZE 0 req (-1)-s32max
BUF_SIZE 2 iv s32min-(-2),1-s32max
DATA_SOURCE 0 req $0
NOSPEC 0 req->cryptlen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->cryptlen 0-u32max
USER_DATA 0 *req->iv 0-255
USER_DATA 2 *iv 0-255
UNITS 2 iv unit_byte
USER_PTR 0 req->iv
USER_PTR 2 iv
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 sk
HALF_LOCKED2 tfm_mutex

crypto/chacha.c crypto_xchacha_crypt() -> chacha_stream_xor()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->iv 4096-ptr_max
PARAM_VALUE 1 ctx 8788642492651114496
PARAM_VALUE 2 iv 4096-ptr_max
BUF_SIZE 0 req (-1)-s32max
BUF_SIZE 0 req (-1)-s32max
BUF_SIZE 2 iv 16
DATA_SOURCE 0 req $0
NOSPEC 0 req->cryptlen
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->cryptlen 0-u32max
USER_DATA 0 *req->iv 0-255
USER_PTR 0 req->iv
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 s->tfm_mutex
HALF_LOCKED2 sk
HALF_LOCKED2 tfm_mutex