Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

lib/crypto/aes.c aes_gcm_fips_test() -> aes_gcm_encrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 694633277618323456
PARAM_VALUE 1 src 1349579140427390976
PARAM_VALUE 2 data_len 16
PARAM_VALUE 3 authtag 694633277618323472
PARAM_VALUE 4 ad 7381403979526352896
PARAM_VALUE 5 ad_len 16
PARAM_VALUE 7 key 695352246062424064
PARAM_VALUE 7 key->aes.len 16
PARAM_VALUE 7 key->aes.nrounds 10,12,14
PARAM_VALUE 7 key->authtag_len 16
BUF_SIZE 0 dst 32
BUF_SIZE 1 src 16
BUF_SIZE 3 authtag 16
BUF_SIZE 4 ad 16
BUF_SIZE 6 nonce 16
NOCHECK_CALL
UNITS 2 data_len unit_byte
UNITS 5 ad_len unit_byte

arch/x86/coco/sev/core.c enc_payload() -> aes_gcm_encrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 0
PARAM_VALUE 1 src 4096-ptr_max
PARAM_VALUE 2 data_len 32,96,128
PARAM_VALUE 4 ad 4096-ptr_max
PARAM_VALUE 4 *ad 1
PARAM_VALUE 5 ad_len 48
PARAM_VALUE 6 nonce 8528484648280064
BUF_SIZE 0 dst 4000
BUF_SIZE 1 src 32,96,128
BUF_SIZE 3 authtag 32
BUF_SIZE 6 nonce 12
HARD_MAX 2 data_len 128
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 *src 0-255
UNITS 2 data_len unit_byte
USER_PTR 1 src
LOCK2 _T->lock

lib/crypto/tests/aes_gcm_kunit.c aes_gcm_encrypt_test() -> aes_gcm_encrypt()

Type Parameter Key Value
PARAM_VALUE 7 key 16,4096-ptr_max
BUF_SIZE 0 dst (-1),64,272,1024,1028,1032,1036-1040,16384
BUF_SIZE 0 dst (-1),64,272,1024,1028,1032,1036-1040,16384
BUF_SIZE 1 src (-1),64,256,1024
BUF_SIZE 1 src (-1),64,256,1024
BUF_SIZE 3 authtag (-1),4,8,12-16
BUF_SIZE 3 authtag (-1),4,8,12-16
BUF_SIZE 4 ad (-1),16,256,293
BUF_SIZE 4 ad (-1),16,256,293
BUF_SIZE 6 nonce (-1),12
BUF_SIZE 6 nonce (-1),12
BUF_SIZE 7 key (-1),280
BUF_SIZE 7 key (-1),280
DATA_SOURCE 0 dst $0
DATA_SOURCE 1 src $1
DATA_SOURCE 2 data_len $2
DATA_SOURCE 3 authtag $3
DATA_SOURCE 4 ad $4
DATA_SOURCE 5 ad_len $5
DATA_SOURCE 6 nonce $6
DATA_SOURCE 7 key $8
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 data_len
NO_OVERFLOW_SIMPLE 5 ad_len
NO_OVERFLOW_SIMPLE 7 key->aes.len
NO_OVERFLOW_SIMPLE 7 key->authtag_len
UNITS 2 data_len unit_byte
UNITS 5 ad_len unit_byte

lib/crypto/tests/aes_gcm_kunit.c test_aes_gcm_one_test_vector() -> aes_gcm_encrypt()

Type Parameter Key Value
PARAM_VALUE 0 dst 16,4096-ptr_max
PARAM_VALUE 3 authtag 16,4096-ptr_max
PARAM_VALUE 7 key 8348104730143952896
PARAM_VALUE 7 key->aes.len 16,24,32
PARAM_VALUE 7 key->aes.nrounds 10,12,14
PARAM_VALUE 7 key->authtag_len 16
BUF_SIZE 0 dst s32min-s32max
BUF_SIZE 3 authtag s32min-s32max
DATA_SOURCE 0 dst r alloc_buf
DATA_SOURCE 3 authtag r alloc_buf
NOCHECK_CALL