Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- crypto/krb5/krb5_api.c, line 384
- crypto/krb5/selftest.c, line 307
- fs/afs/cm_security.c, line 326
- net/ceph/crypto.c, line 342
- net/rxrpc/rxgk.c
- net/sunrpc/auth_gss/gss_krb5_crypto.c, line 179
Smatch caller information:
net/rxrpc/rxgk.c rxgk_encrypt_authenticator() -> crypto_krb5_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | krb5 | 4096-ptr_max |
| PARAM_VALUE | 2 | sg | 11244472960000000 |
| PARAM_VALUE | 3 | nr_sg | 0-s32max |
| PARAM_VALUE | 5 | data_offset | 0-u16max |
| PARAM_VALUE | 6 | data_len | 0-s32max |
| PARAM_VALUE | 7 | preconfounded | 0 |
| BUF_SIZE | 2 | sg | 512 |
| DATA_SOURCE | 3 | nr_sg | r skb_to_sgvec |
| DATA_SOURCE | 4 | sg_len | $4 |
| DATA_SOURCE | 5 | data_offset | $5 |
| DATA_SOURCE | 6 | data_len | $6 |
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | sg->length | |
| UNITS | 5 | data_offset | unit_byte |
| UNITS | 6 | data_len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
net/rxrpc/rxgk.c rxgk_secure_packet_encrypted() -> crypto_krb5_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | krb5 | 4096-ptr_max |
| PARAM_VALUE | 2 | sg | 8934857238906052608 |
| PARAM_VALUE | 2 | sg->length | 0 |
| PARAM_VALUE | 2 | sg->offset | 0 |
| PARAM_VALUE | 3 | nr_sg | 1 |
| PARAM_VALUE | 6 | data_len | 0-131070 |
| PARAM_VALUE | 7 | preconfounded | 0 |
| NOSPEC | 4 | sg_len | |
| NOSPEC | 4 | sg_len | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 4 | sg_len | 0-1418[c] |
| USER_DATA | 6 | data_len | 0-131070[c] |
| UNITS | 4 | sg_len | unit_byte |
| UNITS | 5 | data_offset | unit_byte |
| UNITS | 6 | data_len | unit_byte |
| HALF_LOCKED2 | &call->user_mutex |
net/sunrpc/auth_gss/gss_krb5_crypto.c gss_krb5_aead_encrypt() -> crypto_krb5_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | krb5 | 4096-ptr_max |
| PARAM_VALUE | 0 | krb5->conf_len | 0-400 |
| PARAM_VALUE | 2 | sg | 2564027771357270016 |
| PARAM_VALUE | 3 | nr_sg | 0-1048578 |
| PARAM_VALUE | 5 | data_offset | 0-400 |
| PARAM_VALUE | 7 | preconfounded | 0 |
| BUF_SIZE | 2 | sg | 256 |
| DATA_SOURCE | 3 | nr_sg | r xdr_buf_to_sg_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | sg_len | unit_byte |
| UNITS | 5 | data_offset | unit_byte |
| UNITS | 6 | data_len | unit_byte |
crypto/krb5/selftest.c krb5_test_one_enc() -> crypto_krb5_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | krb5 | 4096-ptr_max |
| PARAM_VALUE | 0 | krb5->encrypt_name | 1-u64max |
| PARAM_VALUE | 0 | krb5->profile | 4096-ptr_max |
| PARAM_VALUE | 0 | krb5->profile->derive_encrypt_keys | 4096-ptr_max |
| PARAM_VALUE | 1 | aead | 1-ptr_max |
| PARAM_VALUE | 2 | sg | 4703020413151715328 |
| PARAM_VALUE | 2 | sg->offset | 0-4095 |
| PARAM_VALUE | 3 | nr_sg | 1 |
| PARAM_VALUE | 4 | sg_len | 0-1010100 |
| PARAM_VALUE | 5 | data_offset | 0-u16max |
| PARAM_VALUE | 6 | data_len | 0-1010100 |
| PARAM_VALUE | 7 | preconfounded | 1 |
| BUF_SIZE | 1 | aead | s32min-s32max |
| CAPPED_DATA | 0 | krb5->cksum_len | 1 |
| CAPPED_DATA | 0 | krb5->conf_len | 1 |
| CAPPED_DATA | 0 | krb5->etype | 1 |
| CAPPED_DATA | 4 | sg_len | 1 |
| CAPPED_DATA | 4 | sg_len | 1 |
| CAPPED_DATA | 5 | data_offset | 1 |
| CAPPED_DATA | 5 | data_offset | 1 |
| DATA_SOURCE | 0 | krb5 | r crypto_krb5_find_enctype |
| DATA_SOURCE | 4 | sg_len | r crypto_krb5_how_much_buffer |
| PARAM_COMPARE | 5 | data_offset | == $0->conf_len |
| PARAM_COMPARE | 5 | data_offset | == $0->conf_len |
| UNITS | 4 | sg_len | unit_byte |
| UNITS | 5 | data_offset | unit_byte |
| UNITS | 6 | data_len | unit_byte |
fs/afs/cm_security.c afs_create_yfs_cm_token() -> crypto_krb5_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | krb5 | 4096-ptr_max |
| PARAM_VALUE | 0 | krb5->encrypt_name | 1-u64max |
| PARAM_VALUE | 0 | krb5->profile | 4096-ptr_max |
| PARAM_VALUE | 0 | krb5->profile->derive_encrypt_keys | 4096-ptr_max |
| PARAM_VALUE | 1 | aead | 1-ptr_max |
| PARAM_VALUE | 2 | sg | 1895645142076108800 |
| PARAM_VALUE | 2 | sg->offset | 0-4095 |
| PARAM_VALUE | 3 | nr_sg | 1 |
| PARAM_VALUE | 5 | data_offset | 0-u16max |
| PARAM_VALUE | 6 | data_len | 67-65602 |
| PARAM_VALUE | 7 | preconfounded | 0 |
| BUF_SIZE | 0 | krb5 | 1-s32max |
| BUF_SIZE | 0 | krb5 | 1-s32max |
| BUF_SIZE | 1 | aead | s32min-s32max |
| CAPPED_DATA | 0 | krb5->cksum_len | 1 |
| DATA_SOURCE | 1 | aead | r crypto_krb5_prepare_encryption |
| DATA_SOURCE | 4 | sg_len | r crypto_krb5_how_much_buffer |
| LOCK2 | &server->cm_token_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct afs_server)->cm_token_lock |
net/ceph/crypto.c ceph_krb5_encrypt() -> crypto_krb5_encrypt()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | sg | 5805476440592236544,7558071477613424640,9188881253106405376 |
| PARAM_VALUE | 3 | nr_sg | 1 |
| PARAM_VALUE | 4 | sg_len | 1-2147483643,18446744073709551612-u64max |
| PARAM_VALUE | 5 | data_offset | 16 |
| PARAM_VALUE | 6 | data_len | 25,27,29 |
| PARAM_VALUE | 7 | preconfounded | 0 |
| DATA_SOURCE | 4 | sg_len | $3 |
| DATA_SOURCE | 6 | data_len | $4 |
| UNITS | 2 | sg | unit_byte |
| UNITS | 4 | sg_len | unit_byte |
| UNITS | 6 | data_len | unit_byte |
| HALF_LOCKED2 | &ac->mutex | ||
| HALF_LOCKED2 | &monc->mutex |