• Home
  • Raw
  • Download

Lines Matching refs:desc

70 static int test_cipher_jiffies(struct blkcipher_desc *desc, int enc,  in test_cipher_jiffies()  argument
80 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_jiffies()
82 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_jiffies()
93 static int test_cipher_cycles(struct blkcipher_desc *desc, int enc, in test_cipher_cycles() argument
105 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
107 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
119 ret = crypto_blkcipher_encrypt(desc, sg, sg, blen); in test_cipher_cycles()
121 ret = crypto_blkcipher_decrypt(desc, sg, sg, blen); in test_cipher_cycles()
150 struct blkcipher_desc desc; in test_cipher_speed() local
168 desc.tfm = tfm; in test_cipher_speed()
169 desc.flags = 0; in test_cipher_speed()
221 ret = test_cipher_jiffies(&desc, enc, sg, in test_cipher_speed()
224 ret = test_cipher_cycles(&desc, enc, sg, in test_cipher_speed()
228 printk("%s() failed flags=%x\n", e, desc.flags); in test_cipher_speed()
241 static int test_hash_jiffies_digest(struct hash_desc *desc, in test_hash_jiffies_digest() argument
251 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_jiffies_digest()
262 static int test_hash_jiffies(struct hash_desc *desc, struct scatterlist *sg, in test_hash_jiffies() argument
270 return test_hash_jiffies_digest(desc, sg, blen, out, sec); in test_hash_jiffies()
274 ret = crypto_hash_init(desc); in test_hash_jiffies()
278 ret = crypto_hash_update(desc, sg, plen); in test_hash_jiffies()
283 ret = crypto_hash_final(desc, out); in test_hash_jiffies()
294 static int test_hash_cycles_digest(struct hash_desc *desc, in test_hash_cycles_digest() argument
305 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
316 ret = crypto_hash_digest(desc, sg, blen, out); in test_hash_cycles_digest()
337 static int test_hash_cycles(struct hash_desc *desc, struct scatterlist *sg, in test_hash_cycles() argument
345 return test_hash_cycles_digest(desc, sg, blen, out); in test_hash_cycles()
351 ret = crypto_hash_init(desc); in test_hash_cycles()
355 ret = crypto_hash_update(desc, sg, plen); in test_hash_cycles()
359 ret = crypto_hash_final(desc, out); in test_hash_cycles()
370 ret = crypto_hash_init(desc); in test_hash_cycles()
374 ret = crypto_hash_update(desc, sg, plen); in test_hash_cycles()
378 ret = crypto_hash_final(desc, out); in test_hash_cycles()
415 struct hash_desc desc; in test_hash_speed() local
430 desc.tfm = tfm; in test_hash_speed()
431 desc.flags = 0; in test_hash_speed()
456 ret = test_hash_jiffies(&desc, sg, speed[i].blen, in test_hash_speed()
459 ret = test_hash_cycles(&desc, sg, speed[i].blen, in test_hash_speed()