Documented in 1 files:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/crypto/virtio/virtio_crypto_akcipher_algs.c virtio_crypto_rsa_set_key() -> mpi_get_size()

Type Parameter Key Value
PARAM_VALUE 0 a 4096-ptr_max
PARAM_VALUE 0 a->nlimbs 0-256
BUF_SIZE 0 a 32
DATA_SOURCE 0 a r mpi_read_raw_data
RX_PATH
TASK_NOT_RUNNING

lib/crypto/mpi/mpicoder.c mpi_get_buffer() -> mpi_get_size()

Type Parameter Key Value
PARAM_VALUE 0 a 4096-ptr_max
BUF_SIZE 0 a 32
DATA_SOURCE 0 a $0
LOCK2 &key->sem
HALF_LOCKED2 &iint->mutex
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct key)->sem

lib/crypto/mpi/mpicoder.c mpi_read_buffer() -> mpi_get_size()

Type Parameter Key Value
PARAM_VALUE 0 a 4096-ptr_max
BUF_SIZE 0 a 32
DATA_SOURCE 0 a $0
LOCK2 &key->sem
HALF_LOCKED2 &iint->mutex
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct key)->sem

lib/crypto/mpi/mpicoder.c mpi_write_to_sgl() -> mpi_get_size()

Type Parameter Key Value
PARAM_VALUE 0 a 4096-ptr_max
BUF_SIZE 0 a 32
DATA_SOURCE 0 a $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 a->alloced
NO_OVERFLOW_SIMPLE 0 a->nlimbs

crypto/rsa.c rsa_max_size() -> mpi_get_size()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

crypto/rsa.c rsa_set_priv_key() -> mpi_get_size()

Type Parameter Key Value
PARAM_VALUE 0 a 4096-ptr_max
PARAM_VALUE 0 a->nlimbs 0-256
BUF_SIZE 0 a 32
DATA_SOURCE 0 a r mpi_read_raw_data
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 a->nlimbs

crypto/rsa.c rsa_set_pub_key() -> mpi_get_size()

Type Parameter Key Value
PARAM_VALUE 0 a 4096-ptr_max
PARAM_VALUE 0 a->nlimbs 0-256
BUF_SIZE 0 a 32
DATA_SOURCE 0 a r mpi_read_raw_data
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 a->nlimbs

crypto/dh.c dh_max_size() -> mpi_get_size()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &nvmet_config_sem