Lines Matching refs:blk_crypto_ksm
80 static struct blk_keyslot_manager blk_crypto_ksm; variable
297 blk_st = blk_ksm_get_slot_for_key(&blk_crypto_ksm, bc->bc_key, &slot); in blk_crypto_fallback_encrypt_bio()
399 blk_st = blk_ksm_get_slot_for_key(&blk_crypto_ksm, bc->bc_key, &slot); in blk_crypto_fallback_decrypt_bio()
502 if (!blk_ksm_crypto_cfg_supported(&blk_crypto_ksm, in blk_crypto_fallback_bio_prep()
529 return blk_ksm_evict_key(&blk_crypto_ksm, key); in blk_crypto_fallback_evict_key()
547 err = blk_ksm_init(&blk_crypto_ksm, blk_crypto_num_keyslots); in blk_crypto_fallback_init()
552 blk_crypto_ksm.ksm_ll_ops = blk_crypto_ksm_ll_ops; in blk_crypto_fallback_init()
553 blk_crypto_ksm.max_dun_bytes_supported = BLK_CRYPTO_MAX_IV_SIZE; in blk_crypto_fallback_init()
557 blk_crypto_ksm.crypto_modes_supported[i] = 0xFFFFFFFF; in blk_crypto_fallback_init()
558 blk_crypto_ksm.crypto_modes_supported[BLK_ENCRYPTION_MODE_INVALID] = 0; in blk_crypto_fallback_init()
599 blk_ksm_destroy(&blk_crypto_ksm); in blk_crypto_fallback_init()