Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 23 files:

Smatch caller information:

drivers/crypto/marvell/cesa/hash.c mv_cesa_ahmac_pad_init() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 1766448466991656960
PARAM_VALUE 0 req->base.flags 0,1024-3072
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 1-u32max
PARAM_VALUE 0 req->result 16,4096-ptr_max
PARAM_VALUE 0 req->src 6189591347429240832
PARAM_VALUE 0 req->svirt 6189591347429240832
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 1-s32max[c]
HALF_LOCKED2 sk

drivers/crypto/inside-secure/eip93/eip93-common.c eip93_hmac_setkey() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 6353082116963323904
PARAM_VALUE 0 req->base.flags 0,1024-3072
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 65-u32max
PARAM_VALUE 0 req->result 7876594776890314752
PARAM_VALUE 0 req->src 4096-ptr_max
PARAM_VALUE 0 req->svirt 4096-ptr_max
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req r ahash_request_alloc_noprof
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 65-s32max[c]
HALF_LOCKED2 sk

crypto/krb5enc.c krb5enc_dispatch_decrypt_hash() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 2982823549265928192
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 req->src->length
UNITS 0 req unit_byte
HALF_LOCKED2 &pool->lock

crypto/krb5enc.c krb5enc_dispatch_encrypt_hash() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 4732656230130278400
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0,2-u32max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->src->length 1-2147483646[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 req->src->length
UNITS 0 req unit_byte

drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c sun8i_ce_hash_digest_fb() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0,2-2560
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->nbytes 0-4350,4294963202-u32max[c]
USER_DATA 0 req->nbytes 0-u32max[c]
USER_PTR 0 req->result

drivers/crypto/starfive/jh7110-hash.c starfive_hash_long_setkey() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 3909069926577106944
PARAM_VALUE 0 req->base.flags 0,2-3072
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 1-3999872
PARAM_VALUE 0 req->src 280981003669561344
PARAM_VALUE 0 req->svirt 280981003669561344
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req r ahash_request_alloc_noprof
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 1-3999872[c]
HALF_LOCKED2 sk

drivers/crypto/qce/sha.c qce_ahash_hmac_setkey() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 1289589584987193344
PARAM_VALUE 0 req->base.flags 0,1024-3072
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 1-3999936
PARAM_VALUE 0 req->src 6397858946252414976
PARAM_VALUE 0 req->svirt 6397858946252414976
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req r ahash_request_alloc_noprof
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 1-3999936[c]
HALF_LOCKED2 sk

drivers/crypto/sa2ul.c sa_sha_run() -> crypto_ahash_digest()

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 0,2-2560
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 240-255,65536-u32max
BUF_SIZE 0 req 152
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->nbytes 240-255,4294963202-u32max[c]
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->nbytes 240-255,65536-u32max
USER_DATA 0 req->src->length 1-u32max[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
USER_DATA 0 *req->result 0-255
USER_PTR 0 req->result

drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c kmb_ocs_hcu_setkey() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 4359561375826522112
PARAM_VALUE 0 req->base.flags 0,1024-3072
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 1-u32max
PARAM_VALUE 0 req->src 5292922594553290752
PARAM_VALUE 0 req->svirt 5292922594553290752
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req r ahash_request_alloc_noprof
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 1-s32max[c]
HALF_LOCKED2 sk

crypto/authenc.c crypto_authenc_decrypt() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 7342531455777386496
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->src->length 1-u32max[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 req->src->length
UNITS 0 req unit_byte
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 bh

crypto/authenc.c crypto_authenc_genicv() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 2540828958338265088,6187141077005701120
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->src->length 1-u32max[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 req->src->length
UNITS 0 req unit_byte

crypto/authencesn.c crypto_authenc_esn_decrypt() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1893566830320787456
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->src->length 1-u32max[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 req->src->length
UNITS 0 req unit_byte
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 bh

crypto/authencesn.c crypto_authenc_esn_genicv() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1399047473305661440
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->src->length 1-u32max[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 req->src->length
UNITS 0 req unit_byte

drivers/crypto/inside-secure/safexcel_hash.c safexcel_hmac_init_pad() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 2003912182293139456
PARAM_VALUE 0 req->base.flags 0,2-u32max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 1-u32max
PARAM_VALUE 0 req->result 16,4096-ptr_max
PARAM_VALUE 0 req->src 4892491142319214592
PARAM_VALUE 0 req->svirt 4892491142319214592
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 1-s32max[c]
HALF_LOCKED2 sk

drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c sun8i_ss_hash_digest_fb() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0,2-2560
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->nbytes 0-4350,4294963202-u32max[c]
USER_DATA 0 req->nbytes 0-u32max
USER_PTR 0 req->result

drivers/md/dm-integrity.c integrity_sector_checksum_ahash() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 6268827522512879616
PARAM_VALUE 0 req->base.flags 0,512-2560
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 8,24,520-130584
PARAM_VALUE 0 req->src 7710157632338046976
PARAM_VALUE 0 req->src->dma_flags 0
PARAM_VALUE 0 req->src->dma_length 0
PARAM_VALUE 0 req->src->length 0,16
PARAM_VALUE 0 req->src->offset 0-4095
PARAM_VALUE 0 req->svirt 7710157632338046976
RX_PATH
TASK_NOT_RUNNING

crypto/tcrypt.c test_ahash_cycles_digest() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 0 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 0 req->sg_head->length 0-4294967295
PARAM_VALUE 0 req->sg_head->offset 0-4294967295
PARAM_VALUE 0 req->src->dma_flags 0
PARAM_VALUE 0 req->src->dma_length 0
PARAM_VALUE 0 req->src->length 0
PARAM_VALUE 0 req->src->offset 0
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
CAPPED_DATA 0 req 1
DATA_SOURCE 0 req $0

crypto/tcrypt.c test_ahash_cycles_digest() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.data->completion.done 0
PARAM_VALUE 0 req->base.data->completion.wait.lock.dep_map->name 0-255
PARAM_VALUE 0 req->base.data->completion.wait.lock.owner (-1)
PARAM_VALUE 0 req->base.data->completion.wait.lock.owner_cpu 4294967295
PARAM_VALUE 0 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 0 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 0 req->sg_head->length 0-4294967295
PARAM_VALUE 0 req->sg_head->offset 0-4294967295
PARAM_VALUE 0 req->src->dma_flags 0
PARAM_VALUE 0 req->src->dma_length 0
PARAM_VALUE 0 req->src->length 0
PARAM_VALUE 0 req->src->offset 0
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
CAPPED_DATA 0 req 1
DATA_SOURCE 0 req $0

crypto/tcrypt.c test_ahash_jiffies_digest() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 0 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 0 req->sg_head->length 0-4294967295
PARAM_VALUE 0 req->sg_head->offset 0-4294967295
PARAM_VALUE 0 req->src->dma_flags 0
PARAM_VALUE 0 req->src->dma_length 0
PARAM_VALUE 0 req->src->length 0
PARAM_VALUE 0 req->src->offset 0
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
CAPPED_DATA 0 req 1
DATA_SOURCE 0 req $0

crypto/ahash.c ahash_do_req_chain() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->sg_head->dma_flags 0-4294967295
PARAM_VALUE 0 req->sg_head->dma_length 0-4294967295
PARAM_VALUE 0 req->sg_head->length 0-4294967295
PARAM_VALUE 0 req->sg_head->offset 0-4294967295
BUF_SIZE 0 req (-1)-s32max
BUF_SIZE 0 req (-1)-s32max
BUF_SIZE 0 req->src (-1),64
CAPPED_DATA 0 req 1
DATA_SOURCE 0 req $0
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->nbytes 0-4605,4294963202-u32max[c]
HOST_DATA 0 req->src->length 0-2147483646[c]
USER_DATA 0 req->nbytes 0-u32max
USER_DATA 0 req->src->length 1-u32max[c]
USER_DATA 0 req->src->offset 0-2147551739[c]
USER_DATA 0 *req->result 0-255
USER_DATA 0 *req->svirt 0-255
UNITS 0 req unit_byte
USER_PTR 0 req->result
USER_PTR 0 req->svirt

crypto/ahash.c crypto_hash_digest() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 6574300713108398080
PARAM_VALUE 0 req->base.complete 0
PARAM_VALUE 0 req->base.data 0
PARAM_VALUE 0 req->base.flags 2049
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 16,4096-ptr_max
PARAM_VALUE 0 req->src 4096-ptr_max
PARAM_VALUE 0 req->svirt 4096-ptr_max
BUF_SIZE 0 req 673
BUF_SIZE 0 req 673
DATA_SOURCE 0 req r ahash_request_on_stack_init
HALF_LOCKED2 global &once_lock

drivers/crypto/tegra/tegra-se-hash.c tegra_sha_fallback_digest() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0,2-2560
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 req->nbytes 0-4350,4294963202-u32max[c]
USER_DATA 0 req->nbytes 0-u32max
USER_PTR 0 req->result

crypto/algif_hash.c hash_sendmsg() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0,2-u32max
PARAM_VALUE 0 req->nbytes 0-s32max
PARAM_VALUE 0 req->result 0,16,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 0-s32max[c]
LOCK2 sk
HALF_LOCKED2 &vq->mutex
HALF_LOCKED2 sk

net/ipv4/ah4.c ah_input() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 7469375575332057088
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0-1,2048-2049
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4096-ptr_max
PARAM_VALUE 0 req->src 0,8-u64max
PARAM_VALUE 0 req->svirt 0,8-u64max
DATA_SOURCE 0 req r ah_tmp_req
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 req->src->length

net/ipv4/ah4.c ah_output() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 6842134599059406848
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0-1,2048-2049
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 0-65539
PARAM_VALUE 0 req->src 0,8-u64max
PARAM_VALUE 0 req->svirt 0,8-u64max
DATA_SOURCE 0 req r ah_tmp_req
HARD_MAX 0 req->nbytes 65539
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 req->src->length

crypto/hmac.c hmac_setkey_ahash() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 6384833276913700864
PARAM_VALUE 0 req->base.complete 0
PARAM_VALUE 0 req->base.data 0
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->nbytes 1-u32max
PARAM_VALUE 0 req->result 4096-ptr_max
BUF_SIZE 0 req 673
BUF_SIZE 0 req 673
DATA_SOURCE 0 req r ahash_request_on_stack_init
NOSPEC 0 req->nbytes
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 req->nbytes 1-s32max[c]
USER_DATA 0 *req->svirt 0-255
HALF_LOCKED2 sk

net/ipv6/ah6.c ah6_input() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 4603945356971360256
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0-1,2048-2049
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->src 0,8-u64max
PARAM_VALUE 0 req->svirt 0,8-u64max
DATA_SOURCE 0 req r ah_tmp_req
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 req->src->length

net/ipv6/ah6.c ah6_output() -> crypto_ahash_digest()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 9008295487868674048
PARAM_VALUE 0 req->base.data 4096-ptr_max
PARAM_VALUE 0 req->base.flags 0-1,2048-2049
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->src 0,8-u64max
PARAM_VALUE 0 req->svirt 0,8-u64max
DATA_SOURCE 0 req r ah_tmp_req
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 req->src->length

crypto/testmgr.c do_ahash_op() -> do_ahash_op param 0()

Type Parameter Key Value
PARAM_VALUE 0 req 4096-ptr_max
PARAM_VALUE 0 req->base.complete 1624078799481573376
PARAM_VALUE 0 req->base.data 8690866533503418368
PARAM_VALUE 0 req->base.flags 0,1024-u32max
PARAM_VALUE 0 req->base.tfm 4096-ptr_max
PARAM_VALUE 0 req->result 4546395477927776256
BUF_SIZE 0 req 152-s32max
BUF_SIZE 0 req 152-s32max
DATA_SOURCE 0 req $1
MEM_ZERO 0 req->__ctx
HALF_LOCKED2 global &once_lock