Defined in 1 files as a prototype:
Defined in 7 files as a function:
- drivers/crypto/bcm/cipher.c, line 2999 (as a function)
- drivers/crypto/caam/caamalg.c, line 1610 (as a function)
- drivers/crypto/caam/caamalg_qi.c, line 1188 (as a function)
- drivers/crypto/caam/caamalg_qi2.c, line 1328 (as a function)
- drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c, line 1308 (as a function)
- drivers/crypto/talitos.c, line 1504 (as a function)
- net/mac80211/aead_api.c, line 18 (as a function)
Referenced in 8 files:
- drivers/crypto/bcm/cipher.c, line 4463
-
drivers/crypto/caam/caamalg.c
- line 2254
- line 2278
- line 2302
- line 2326
- line 2350
- line 2374
- line 2397
- line 2422
- line 2447
- line 2472
- line 2497
- line 2522
- line 2547
- line 2572
- line 2597
- line 2622
- line 2647
- line 2672
- line 2697
- line 2722
- line 2748
- line 2774
- line 2800
- line 2826
- line 2852
- line 2878
- line 2904
- line 2930
- line 2956
- line 2982
- line 3007
- line 3032
- line 3057
- line 3082
- line 3107
- line 3132
- line 3157
- line 3182
- line 3207
- line 3232
- line 3257
- line 3282
- line 3308
- line 3335
- line 3363
- line 3390
- line 3418
- line 3445
- line 3473
- line 3500
- line 3528
- line 3555
- line 3583
- line 3610
-
drivers/crypto/caam/caamalg_qi.c
- line 1639
- line 1660
- line 1682
- line 1704
- line 1726
- line 1748
- line 1770
- line 1792
- line 1815
- line 1837
- line 1860
- line 1882
- line 1905
- line 1927
- line 1949
- line 1972
- line 1995
- line 2018
- line 2041
- line 2064
- line 2087
- line 2110
- line 2133
- line 2156
- line 2179
- line 2201
- line 2223
- line 2245
- line 2267
- line 2289
- line 2312
- line 2334
- line 2357
- line 2379
- line 2402
- line 2424
- line 2447
-
drivers/crypto/caam/caamalg_qi2.c
- line 1386
- line 1850
- line 1871
- line 1893
- line 1915
- line 1937
- line 1959
- line 1981
- line 2003
- line 2026
- line 2048
- line 2071
- line 2093
- line 2116
- line 2138
- line 2160
- line 2183
- line 2206
- line 2229
- line 2252
- line 2275
- line 2298
- line 2321
- line 2344
- line 2367
- line 2390
- line 2412
- line 2434
- line 2456
- line 2478
- line 2500
- line 2523
- line 2545
- line 2568
- line 2590
- line 2613
- line 2635
- line 2658
- line 2681
- line 2705
- line 2730
- line 2754
- line 2779
- line 2803
- line 2828
- line 2852
- line 2877
- line 2901
- line 2925
- line 2948
- line 2972
- line 2996
- drivers/crypto/intel/ixp4xx/ixp4xx_crypto.c, line 1553
- drivers/crypto/talitos.c, line 3289
- net/mac80211/aes_ccm.h, line 25
- net/mac80211/aes_gcm.h, line 17
Smatch caller information:
net/mac80211/wpa.c ieee80211_aes_ccm_encrypt() -> aead_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | b_0 | 5090054906275741696 |
| PARAM_VALUE | 2 | aad | 436370121932050434 |
| PARAM_VALUE | 3 | aad_len | 0-u16max |
| PARAM_VALUE | 5 | data_len | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 6 | mic | 4096-ptr_max |
| BUF_SIZE | 1 | b_0 | 16 |
| BUF_SIZE | 1 | b_0 | 16 |
| BUF_SIZE | 2 | aad | 30 |
| DATA_SOURCE | 0 | req | $0 |
| DATA_SOURCE | 1 | b_0 | $1 |
| DATA_SOURCE | 4 | data | $3 |
| DATA_SOURCE | 5 | data_len | $4 |
| DATA_SOURCE | 6 | mic | $5 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | data_len | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/mac80211/wpa.c ieee80211_aes_gcm_encrypt() -> aead_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | b_0 | 2152706722139328512 |
| PARAM_VALUE | 2 | aad | 4936006178443767810 |
| PARAM_VALUE | 3 | aad_len | 0-u16max |
| PARAM_VALUE | 5 | data_len | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 6 | mic | 4096-ptr_max |
| BUF_SIZE | 1 | b_0 | 16 |
| BUF_SIZE | 1 | b_0 | 16 |
| BUF_SIZE | 2 | aad | 30 |
| DATA_SOURCE | 0 | req | $0 |
| DATA_SOURCE | 1 | b_0 | $1 |
| DATA_SOURCE | 4 | data | $3 |
| DATA_SOURCE | 5 | data_len | $4 |
| DATA_SOURCE | 6 | mic | $5 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 5 | data_len | unit_byte |
| HALF_LOCKED2 | rcu_read |
drivers/crypto/caam/caamalg_qi2.c ipsec_gcm_encrypt() -> aead_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->assoclen | 16,20 |
| BUF_SIZE | 0 | req | (-1)-s32max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| NOSPEC | 0 | req->cryptlen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | req->dst->length | 0-2147483646[c] |
| HOST_DATA | 0 | req->src->length | 0-2147483646[c] |
| USER_DATA | 0 | req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->dst->length | 1-u32max[c] |
| USER_DATA | 0 | req->dst->offset | 0-2147551739[c] |
| USER_DATA | 0 | req->src->length | 1-u32max[c] |
| USER_DATA | 0 | req->src->offset | 0-2147551739[c] |
| USER_DATA | 0 | *req->iv | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| USER_PTR | 0 | req->iv |
crypto/aead.c crypto_aead_encrypt() -> (struct aead_alg)->encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| BUF_SIZE | 0 | req | (-1)-s32max |
| DATA_SOURCE | 0 | req | $0 |
| NOSPEC | 0 | req->cryptlen | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | req->dst->length | 0-2147483646[c] |
| HOST_DATA | 0 | req->src->length | 0-2147483646[c] |
| USER_DATA | 0 | req->cryptlen | 0-u32max |
| USER_DATA | 0 | req->dst->length | 1-2147483646[c] |
| USER_DATA | 0 | req->dst->offset | 0-2147551739[c] |
| USER_DATA | 0 | req->src->length | 1-2147483646[c] |
| USER_DATA | 0 | req->src->offset | 0-2147551739[c] |
| USER_DATA | 0 | *req->iv | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | req->dst->length | |
| NO_OVERFLOW_SIMPLE | 0 | req->src->length | |
| USER_PTR | 0 | req->iv | |
| HALF_LOCKED2 | &ieee->lock | ||
| HALF_LOCKED2 | &server->_srv_mutex | ||
| HALF_LOCKED2 | sk |
crypto/cryptd.c cryptd_aead_crypt() -> cryptd_aead_crypt param 3()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | req | 4096-ptr_max |
| PARAM_VALUE | 0 | req->base.complete | 0 |
| PARAM_VALUE | 0 | req->base.data | 0 |
| PARAM_VALUE | 0 | req->base.flags | 512 |
| PARAM_VALUE | 0 | req->base.tfm | 4096-ptr_max |
| BUF_SIZE | 0 | req | 80 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &backlog->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | bh |