Lines Matching refs:revert
51 static int test_lib_chacha(u8 *revert, u8 *cipher, u8 *plain) in test_lib_chacha() argument
87 chacha_crypt_arch(chacha_state, revert, cipher, data_size, 20); in test_lib_chacha()
92 16, 1, revert, in test_lib_chacha()
126 static int test_skcipher(char *name, u8 *revert, u8 *cipher, u8 *plain) in test_skcipher() argument
198 sg_init_one(&sk.sgout, revert, data_size); in test_skcipher()
215 16, 1, revert, in test_skcipher()
238 u8 *plain = NULL, *revert = NULL; in chacha_s390_test_init() local
269 revert = vzalloc(data_size); in chacha_s390_test_init()
270 if (!revert) { in chacha_s390_test_init()
282 ret = test_skcipher("chacha20-generic", revert, cipher_generic, plain); in chacha_s390_test_init()
286 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init()
294 memset(revert, 0, data_size); in chacha_s390_test_init()
297 ret = test_skcipher("chacha20-s390", revert, cipher_s390, plain); in chacha_s390_test_init()
301 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init()
318 memset(revert, 0, data_size); in chacha_s390_test_init()
321 test_lib_chacha(revert, cipher_s390, plain); in chacha_s390_test_init()
323 if (memcmp(plain, revert, data_size)) { in chacha_s390_test_init()
348 if (revert) in chacha_s390_test_init()
349 vfree(revert); in chacha_s390_test_init()