Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

lib/digsig.c digsig_verify_rsa() -> mpi_powm()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->alloced 0-512
PARAM_VALUE 0 res->d 0,4096-ptr_max
PARAM_VALUE 0 res->flags 0
PARAM_VALUE 0 res->nbits 0
PARAM_VALUE 0 res->nlimbs 0
PARAM_VALUE 0 res->sign 0
PARAM_VALUE 1 base 4096-ptr_max
PARAM_VALUE 1 base->alloced 0-256
PARAM_VALUE 1 base->d 0,4096-ptr_max
PARAM_VALUE 1 base->flags 0
PARAM_VALUE 1 base->nlimbs 0-256
PARAM_VALUE 1 base->sign 0
PARAM_VALUE 3 mod 4096-ptr_max
BUF_SIZE 0 res 32
BUF_SIZE 1 base 32
DATA_SOURCE 0 res r mpi_alloc
DATA_SOURCE 1 base r mpi_read_from_buffer
LOCK2 &key->sem
HALF_LOCKED2 &iint->mutex
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct key)->sem

crypto/rsa.c _rsa_dec_crt() -> mpi_powm()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->alloced 0
PARAM_VALUE 0 res->d 0,4096-ptr_max
PARAM_VALUE 0 res->flags 0
PARAM_VALUE 0 res->nbits 0
PARAM_VALUE 0 res->nlimbs 0
PARAM_VALUE 0 res->sign 0
PARAM_VALUE 1 base 4096-ptr_max
PARAM_VALUE 1 base->alloced 0-256
PARAM_VALUE 1 base->d 0,4096-ptr_max
PARAM_VALUE 1 base->flags 0
PARAM_VALUE 1 base->sign 0
BUF_SIZE 0 res 32
BUF_SIZE 1 base 32
DATA_SOURCE 0 res $1
DATA_SOURCE 1 base $2
RX_PATH
TASK_NOT_RUNNING

crypto/rsa.c _rsa_dec_crt() -> mpi_powm()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->alloced 0
PARAM_VALUE 0 res->d 0,4096-ptr_max
PARAM_VALUE 0 res->flags 0
PARAM_VALUE 0 res->nbits 0
PARAM_VALUE 0 res->nlimbs 0
PARAM_VALUE 0 res->sign 0
PARAM_VALUE 1 base 4096-ptr_max
BUF_SIZE 0 res 32
BUF_SIZE 1 base 32
DATA_SOURCE 0 res r mpi_alloc
DATA_SOURCE 1 base $2
RX_PATH
TASK_NOT_RUNNING

crypto/rsa.c _rsa_enc() -> mpi_powm()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->alloced 0
PARAM_VALUE 0 res->d 0,4096-ptr_max
PARAM_VALUE 0 res->flags 0
PARAM_VALUE 0 res->nbits 0
PARAM_VALUE 0 res->nlimbs 0
PARAM_VALUE 0 res->sign 0
PARAM_VALUE 1 base 4096-ptr_max
PARAM_VALUE 1 base->alloced 0-256
PARAM_VALUE 1 base->d 0,4096-ptr_max
PARAM_VALUE 1 base->flags 0
PARAM_VALUE 1 base->sign 0
PARAM_VALUE 2 exp 1-u64max
PARAM_VALUE 3 mod 1-u64max
PARAM_VALUE 3 mod->nlimbs s32min-(-1),1-s32max
BUF_SIZE 0 res 32
BUF_SIZE 1 base 32
CAPPED_DATA 3 mod->d 1
DATA_SOURCE 0 res $1
DATA_SOURCE 1 base $2
RX_PATH
TASK_NOT_RUNNING

crypto/dh.c _compute_val() -> mpi_powm()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->alloced 0
PARAM_VALUE 0 res->d 0,4096-ptr_max
PARAM_VALUE 0 res->flags 0
PARAM_VALUE 0 res->nbits 0
PARAM_VALUE 0 res->nlimbs 0
PARAM_VALUE 0 res->sign 0
PARAM_VALUE 2 exp 1-u64max
BUF_SIZE 0 res 32
BUF_SIZE 1 base (-1),32
BUF_SIZE 1 base (-1),32
DATA_SOURCE 0 res $2
DATA_SOURCE 1 base $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 base->alloced 2-256[c]
USER_DATA 1 base->nbits 0-16408
USER_DATA 1 base->nlimbs 2-256[c]
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/dh.c dh_is_pubkey_valid() -> mpi_powm()

Type Parameter Key Value
PARAM_VALUE 0 res 4096-ptr_max
PARAM_VALUE 0 res->alloced 0
PARAM_VALUE 0 res->d 0,4096-ptr_max
PARAM_VALUE 0 res->flags 0
PARAM_VALUE 0 res->nbits 0
PARAM_VALUE 0 res->nlimbs 0
PARAM_VALUE 0 res->sign 0
PARAM_VALUE 1 base 4096-ptr_max
PARAM_VALUE 1 base->sign 0
PARAM_VALUE 2 exp 4096-ptr_max
PARAM_VALUE 2 exp->d 0,4096-ptr_max
PARAM_VALUE 2 exp->flags 0
PARAM_VALUE 2 exp->nbits 0
PARAM_VALUE 2 exp->sign 0
PARAM_VALUE 3 mod 4096-ptr_max
PARAM_VALUE 3 mod->sign 0
BUF_SIZE 0 res 32
BUF_SIZE 1 base 32
BUF_SIZE 2 exp 32
CAPPED_DATA 2 exp 1
CAPPED_DATA 3 mod 1
DATA_SOURCE 0 res r mpi_alloc
DATA_SOURCE 1 base $1
DATA_SOURCE 2 exp r mpi_alloc
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 base->alloced 2-256[c]
USER_DATA 1 base->nbits 0-16408
NO_OVERFLOW_SIMPLE 2 exp->nlimbs
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex