Documented in 1 files:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_do_public_key() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 0 *in 0-255
PARAM_VALUE 1 out 3203474437711364096
PARAM_VALUE 2 ndigits 1-255
BUF_SIZE 0 in 8-s32max
BUF_SIZE 1 out 96
CAPPED_DATA 2 ndigits 1
NOCHECK_CALL
UNITS 2 ndigits unit_array_size

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_do_public_key() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 0 *in 0-255
PARAM_VALUE 1 out 4096-ptr_max
PARAM_VALUE 2 ndigits 1-255
BUF_SIZE 0 in 8-4000000
CAPPED_DATA 2 ndigits 1
NOCHECK_CALL
UNITS 2 ndigits unit_array_size

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_do_shared_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 5722432593465966592
PARAM_VALUE 1 out 4096-ptr_max
BUF_SIZE 0 in 96
BUF_SIZE 1 out 8-s32max
NOCHECK_CALL
UNITS 2 ndigits unit_array_size

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_do_shared_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 out 4096-ptr_max
BUF_SIZE 1 out 8-4000000
CAPPED_DATA 2 ndigits 1
NOCHECK_CALL
UNITS 2 ndigits unit_array_size

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_do_shared_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 0 *in 0-255
PARAM_VALUE 1 out 4469072385902034944
PARAM_VALUE 2 ndigits 1-255
BUF_SIZE 0 in 8-s32max
BUF_SIZE 1 out 48
CAPPED_DATA 2 ndigits 1
NOCHECK_CALL
UNITS 2 ndigits unit_array_size

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ecc_gen_privkey() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 3952914951303340032
PARAM_VALUE 2 ndigits 0-6
BUF_SIZE 0 in 48
BUF_SIZE 1 out 48
BUF_SIZE 1 out 48
DATA_SOURCE 1 out $1
FUZZY_MAX 2 ndigits 6
HARD_MAX 2 ndigits 6
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

drivers/crypto/intel/keembay/keembay-ocs-ecc.c kmb_ocs_ecdh_set_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 1-u64max
BUF_SIZE 0 in 32,66
BUF_SIZE 1 out 48
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c crypto_ecdh_shared_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 16,4096-ptr_max
PARAM_VALUE 1 out 4096-ptr_max
PARAM_VALUE 2 ndigits 1-9
BUF_SIZE 0 in 0,16-s32max
BUF_SIZE 1 out 8-s32max
DATA_SOURCE 0 in $3
DATA_SOURCE 2 ndigits $1 [m]
HARD_MAX 2 ndigits 9
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c crypto_ecdh_shared_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 out 4096-ptr_max
PARAM_VALUE 2 ndigits 1-9
BUF_SIZE 1 out 8-4000000
CAPPED_DATA 2 ndigits 1
DATA_SOURCE 2 ndigits $1 [m]
HARD_MAX 2 ndigits 9
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c crypto_ecdh_shared_secret() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 out 16,4096-ptr_max
PARAM_VALUE 2 ndigits 1-9
BUF_SIZE 0 in 8-s32max
BUF_SIZE 1 out 0,8-s32max
BUF_SIZE 1 out 0,8-s32max
CAPPED_DATA 2 ndigits 1
DATA_SOURCE 1 out $4
DATA_SOURCE 2 ndigits $1 [m]
HARD_MAX 2 ndigits 9
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 ndigits unit_array_size
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c ecc_digits_from_bytes() -> ecc_swap_digits()

Type Parameter Key Value
BUF_SIZE 0 in (-1)-s32max
BUF_SIZE 1 out 8-s32max
BUF_SIZE 1 out 8-s32max
DATA_SOURCE 0 in $0 [m]
DATA_SOURCE 1 out $2
DATA_SOURCE 2 ndigits $3 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 ndigits unit_array_size

crypto/ecc.c ecc_make_pub_key() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 out 16,4096-ptr_max
PARAM_VALUE 2 ndigits 1-s32max
BUF_SIZE 0 in 8-s32max
BUF_SIZE 1 out 0,16-s32max
BUF_SIZE 1 out 0,16-s32max
DATA_SOURCE 1 out $3
DATA_SOURCE 2 ndigits $1 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex

crypto/ecc.c ecc_make_pub_key() -> ecc_swap_digits()

Type Parameter Key Value
PARAM_VALUE 0 in 4096-ptr_max
PARAM_VALUE 1 out 4096-ptr_max
PARAM_VALUE 2 ndigits 1-s32max
BUF_SIZE 0 in 8-4000000
CAPPED_DATA 2 ndigits 1
DATA_SOURCE 2 ndigits $1 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &chip->ops_sem
HALF_LOCKED2 &chip->tpm_mutex