Lines Matching refs:blk
249 QCryptoBlock *blk) in test_block_assert_setup() argument
254 ivgen = qcrypto_block_get_ivgen(blk); in test_block_assert_setup()
255 cipher = qcrypto_block_get_cipher(blk); in test_block_assert_setup()
263 qcrypto_block_get_kdf_hash(blk)); in test_block_assert_setup()
275 QCryptoBlock *blk; in test_block() local
282 blk = qcrypto_block_create(data->create_opts, NULL, in test_block()
288 g_assert(blk); in test_block()
296 test_block_assert_setup(data, blk); in test_block()
298 qcrypto_block_free(blk); in test_block()
302 blk = qcrypto_block_open(data->open_opts, NULL, in test_block()
307 g_assert(blk == NULL); in test_block()
310 blk = qcrypto_block_open(data->open_opts, NULL, in test_block()
316 g_assert(qcrypto_block_get_cipher(blk) == NULL); in test_block()
317 g_assert(qcrypto_block_get_ivgen(blk) == NULL); in test_block()
319 qcrypto_block_free(blk); in test_block()
324 blk = qcrypto_block_open(data->open_opts, NULL, in test_block()
329 g_assert(blk); in test_block()
331 test_block_assert_setup(data, blk); in test_block()
333 qcrypto_block_free(blk); in test_block()
348 QCryptoBlock *blk; in test_luks_bad_header() local
359 blk = qcrypto_block_create(&luks_create_opts_default, NULL, in test_luks_bad_header()
365 g_assert(blk); in test_luks_bad_header()
367 qcrypto_block_free(blk); in test_luks_bad_header()
380 blk = qcrypto_block_open(&luks_open_opts, NULL, in test_luks_bad_header()
385 g_assert(!blk); in test_luks_bad_header()