Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

crypto/ecdsa.c _ecdsa_verify() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 1-255
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_is_key_valid() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 8524262409374674944
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 0-255
BUF_SIZE 0 result 48
BUF_SIZE 2 right 48
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_is_key_valid() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 8524262409374674944
PARAM_VALUE 1 left 8524262409374674944
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 0-255
BUF_SIZE 0 result 48
BUF_SIZE 1 left 48
BUF_SIZE 2 right 48
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecrdsa.c ecrdsa_verify() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 8157645667639644160
PARAM_VALUE 1 left 8157645667639644160
PARAM_VALUE 3 ndigits 1-536870911
BUF_SIZE 0 result 64
BUF_SIZE 1 left 64
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecrdsa.c ecrdsa_verify() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4012762346941906944
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 6077665736088051712
PARAM_VALUE 3 ndigits 1-536870911
BUF_SIZE 0 result 64
BUF_SIZE 2 right 64
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecrdsa.c ecrdsa_verify() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 1-536870911
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecc.c __ecc_is_key_valid() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 7508485005053186048
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 0-255
BUF_SIZE 0 result 72
BUF_SIZE 2 right 72
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 3 ndigits $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c __ecc_is_key_valid() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 7508485005053186048
PARAM_VALUE 1 left 7508485005053186048
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 0-255
BUF_SIZE 0 result 72
BUF_SIZE 1 left 72
BUF_SIZE 2 right 72
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 3 ndigits $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c vli_mmod_barrett() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 6478384016409944064
PARAM_VALUE 1 left 6027494995232227328,6358993945487458304
PARAM_VALUE 2 right 6478384016409944064
PARAM_VALUE 3 ndigits 0-510
BUF_SIZE 0 result 144
BUF_SIZE 1 left 144
BUF_SIZE 1 left 144
BUF_SIZE 2 right 144
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 1 left $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecc.c vli_mmod_barrett() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 6478384016409944064
PARAM_VALUE 1 left 6478384016409944064
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 0-255
BUF_SIZE 0 result 144
BUF_SIZE 1 left 144
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 2 right $2
DATA_SOURCE 3 ndigits $3
RX_PATH
TASK_NOT_RUNNING
UNITS 3 ndigits unit_array_size

crypto/ecc.c vli_mmod_fast_192() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 3
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $2
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_256() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 3 ndigits 4
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_256() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 3 ndigits 4
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_256() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 3 ndigits 4
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_256() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 3 ndigits 4
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_256() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 4
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $2
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_384() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 2 *right 0,2-18446744073709551614
PARAM_VALUE 3 ndigits 6
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_384() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 2 *right 0,2-18446744073709551614
PARAM_VALUE 3 ndigits 6
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_384() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 3305023986384113664
PARAM_VALUE 2 *right 0,2-18446744073709551614
PARAM_VALUE 3 ndigits 6
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 144
BUF_SIZE 2 right 144
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_fast_384() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4096-ptr_max
PARAM_VALUE 1 left 4096-ptr_max
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 6
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $2
RX_PATH
TASK_NOT_RUNNING

crypto/ecc.c vli_mmod_special() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 8499600104465281024
PARAM_VALUE 1 left 8499600104465281024
PARAM_VALUE 2 right 202133725228777472
PARAM_VALUE 2 *right 0
PARAM_VALUE 3 ndigits 0-510
BUF_SIZE 0 result 144
BUF_SIZE 1 left 144
BUF_SIZE 2 right 144
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecc.c vli_mmod_special2() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 5594039353691275264
PARAM_VALUE 0 *result 0
PARAM_VALUE 1 left 5594039353691275264
PARAM_VALUE 1 *left 0
PARAM_VALUE 2 right 2115378017890078720
PARAM_VALUE 2 *right 0
PARAM_VALUE 3 ndigits 0-510
BUF_SIZE 0 result 144
BUF_SIZE 1 left 144
BUF_SIZE 2 right 144
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecc.c vli_mmod_special2() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 5594039353691275264
PARAM_VALUE 0 *result 0
PARAM_VALUE 1 left 5594039353691275264
PARAM_VALUE 1 *left 0
PARAM_VALUE 2 right 7317474417252052992
PARAM_VALUE 2 *right 0
PARAM_VALUE 3 ndigits 0-510
BUF_SIZE 0 result 144
BUF_SIZE 1 left 144
BUF_SIZE 2 right 144
CAPPED_DATA 3 ndigits 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ecc.c vli_mod_add() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 2 right 4096-ptr_max
PARAM_VALUE 3 ndigits 0-255
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $0
DATA_SOURCE 2 right $3
DATA_SOURCE 3 ndigits $4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size

crypto/ecc.c vli_mod_inv() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 2181897681604382720
PARAM_VALUE 1 left 2181897681604382720
PARAM_VALUE 2 right 4561837590826237952
PARAM_VALUE 3 ndigits 1-s32max
BUF_SIZE 0 result 72
BUF_SIZE 1 left 72
BUF_SIZE 2 right 72
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 3 ndigits $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size

crypto/ecc.c vli_mod_inv() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 7393416940008321024
PARAM_VALUE 1 left 7393416940008321024
PARAM_VALUE 2 right 5637703361080786944
PARAM_VALUE 3 ndigits 1-s32max
BUF_SIZE 0 result 72
BUF_SIZE 1 left 72
BUF_SIZE 2 right 72
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 3 ndigits $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size

crypto/ecc.c vli_mod_inv() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 4561837590826237952
PARAM_VALUE 1 left 4561837590826237952
PARAM_VALUE 2 right 2181897681604382720
PARAM_VALUE 3 ndigits 1-s32max
BUF_SIZE 0 result 72
BUF_SIZE 1 left 72
BUF_SIZE 2 right 72
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 3 ndigits $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size

crypto/ecc.c vli_mod_inv() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 0 result 5637703361080786944
PARAM_VALUE 1 left 5637703361080786944
PARAM_VALUE 2 right 7393416940008321024
PARAM_VALUE 3 ndigits 1-s32max
BUF_SIZE 0 result 72
BUF_SIZE 1 left 72
BUF_SIZE 2 right 72
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 3 ndigits $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 ndigits unit_array_size

crypto/ecc.c vli_mod_sub() -> vli_sub()

Type Parameter Key Value
PARAM_VALUE 3 ndigits 0-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 0 result 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 1 left 8-s32max
BUF_SIZE 2 right 8-s32max
BUF_SIZE 2 right 8-s32max
CAPPED_DATA 3 ndigits 1
DATA_SOURCE 0 result $0
DATA_SOURCE 1 left $1
DATA_SOURCE 2 right $2
DATA_SOURCE 3 ndigits $4
RX_PATH
TASK_NOT_RUNNING
UNITS 3 ndigits unit_array_size