Lines Matching refs:lrw
73 symmetric_LRW lrw; in lrw_test()
86 … if ((err = lrw_start(idx, tests[x].IV, tests[x].key, 16, tests[x].tweak, 0, &lrw)) != CRYPT_OK) { in lrw_test()
91 if (XMEMCMP(tests[x].expected_tweak, lrw.pad, 16)) { in lrw_test()
92 lrw_done(&lrw); in lrw_test()
97 if ((err = lrw_encrypt(tests[x].P, buf[0], 16, &lrw)) != CRYPT_OK) { in lrw_test()
98 lrw_done(&lrw); in lrw_test()
103 lrw_done(&lrw); in lrw_test()
108 if ((err = lrw_setiv(tests[x].IV, 16, &lrw)) != CRYPT_OK) { in lrw_test()
109 lrw_done(&lrw); in lrw_test()
113 if ((err = lrw_decrypt(buf[0], buf[1], 16, &lrw)) != CRYPT_OK) { in lrw_test()
114 lrw_done(&lrw); in lrw_test()
119 lrw_done(&lrw); in lrw_test()
122 if ((err = lrw_done(&lrw)) != CRYPT_OK) { in lrw_test()