Lines Matching defs:enc

149 static int do_mult_aead_op(struct test_mb_aead_data *data, int enc,
156 if (enc == ENCRYPT)
175 static int test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc,
189 ret = do_mult_aead_op(data, enc, num_mb, rc);
202 static int test_mb_aead_cycles(struct test_mb_aead_data *data, int enc,
216 ret = do_mult_aead_op(data, enc, num_mb, rc);
226 ret = do_mult_aead_op(data, enc, num_mb, rc);
243 static void test_mb_aead_speed(const char *algo, int enc, int secs,
268 if (enc == ENCRYPT)
382 bs + (enc ? 0 : authsize),
386 bs + (enc ? authsize : 0),
391 if (!enc) {
409 (enc ? 0 : authsize),
415 ret = test_mb_aead_jiffies(data, enc, bs,
419 ret = test_mb_aead_cycles(data, enc, bs,
453 static int test_aead_jiffies(struct aead_request *req, int enc,
462 if (enc)
476 static int test_aead_cycles(struct aead_request *req, int enc, int blen)
484 if (enc)
498 if (enc)
518 static void test_aead_speed(const char *algo, int enc, unsigned int secs,
549 if (enc == ENCRYPT)
635 sg_init_aead(sg, xbuf, bs + (enc ? 0 : authsize),
639 bs + (enc ? authsize : 0), assoc,
644 if (!enc) {
664 bs + (enc ? 0 : authsize),
668 ret = test_aead_jiffies(req, enc, bs,
672 ret = test_aead_cycles(req, enc, bs);
966 static int do_mult_acipher_op(struct test_mb_skcipher_data *data, int enc,
973 if (enc == ENCRYPT)
992 static int test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc,
1006 ret = do_mult_acipher_op(data, enc, num_mb, rc);
1019 static int test_mb_acipher_cycles(struct test_mb_skcipher_data *data, int enc,
1033 ret = do_mult_acipher_op(data, enc, num_mb, rc);
1043 ret = do_mult_acipher_op(data, enc, num_mb, rc);
1060 static void test_mb_skcipher_speed(const char *algo, int enc, int secs,
1073 if (enc == ENCRYPT)
1182 ret = test_mb_acipher_jiffies(data, enc,
1187 ret = test_mb_acipher_cycles(data, enc,
1221 static int test_acipher_jiffies(struct skcipher_request *req, int enc,
1230 if (enc)
1246 static int test_acipher_cycles(struct skcipher_request *req, int enc,
1255 if (enc)
1271 if (enc)
1293 static void test_skcipher_speed(const char *algo, int enc, unsigned int secs,
1306 if (enc == ENCRYPT)
1398 ret = test_acipher_jiffies(req, enc,
1402 ret = test_acipher_cycles(req, enc,
1423 static void test_acipher_speed(const char *algo, int enc, unsigned int secs,
1427 return test_skcipher_speed(algo, enc, secs, template, tcount, keysize,
1431 static void test_cipher_speed(const char *algo, int enc, unsigned int secs,
1435 return test_skcipher_speed(algo, enc, secs, template, tcount, keysize,