| /crypto/ |
| A D | xcbc.c | 45 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local 51 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey() 63 memset(prev, 0, bs); in crypto_xcbc_digest_init() 73 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local 77 crypto_xor(prev, p, bs); in crypto_xcbc_digest_update() 79 p += bs; in crypto_xcbc_digest_update() 80 len -= bs; in crypto_xcbc_digest_update() 81 } while (len >= bs); in crypto_xcbc_digest_update() 91 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_finup() local 96 if (len != bs) { in crypto_xcbc_digest_finup() [all …]
|
| A D | cmac.c | 52 memset(consts, 0, bs); in crypto_cmac_digest_setkey() 55 switch (bs) { in crypto_cmac_digest_setkey() 95 memset(prev, 0, bs); in crypto_cmac_digest_init() 105 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() local 109 crypto_xor(prev, p, bs); in crypto_cmac_digest_update() 111 p += bs; in crypto_cmac_digest_update() 112 len -= bs; in crypto_cmac_digest_update() 113 } while (len >= bs); in crypto_cmac_digest_update() 123 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_finup() local 128 if (len != bs) { in crypto_cmac_digest_finup() [all …]
|
| A D | hmac.c | 38 int bs = crypto_shash_blocksize(parent); in hmac_setkey() local 53 if (keylen > bs) { in hmac_setkey() 64 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey() 65 memcpy(opad, ipad, bs); in hmac_setkey() 67 for (i = 0; i < bs; i++) { in hmac_setkey() 73 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey() 257 int bs = crypto_ahash_blocksize(parent); in hmac_setkey_ahash() local 269 if (keylen > bs) { in hmac_setkey_ahash() 279 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey_ahash() 280 memcpy(opad, ipad, bs); in hmac_setkey_ahash() [all …]
|
| A D | tcrypt.c | 341 authsize + bs, in test_mb_aead_speed() 347 *keysize * 8, bs); in test_mb_aead_speed() 396 bs, iv); in test_mb_aead_speed() 652 bs, iv); in test_aead_speed() 1130 *keysize * 8, bs); in test_mb_skcipher_speed() 1160 unsigned int k = bs; in test_mb_skcipher_speed() 1183 bs, secs, in test_mb_skcipher_speed() 1349 *keysize * 8, bs); in test_skcipher_speed() 1371 k = *keysize + bs; in test_skcipher_speed() 1399 bs, secs); in test_skcipher_speed() [all …]
|
| A D | cipher.c | 67 unsigned int bs = crypto_cipher_blocksize(tfm); in cipher_crypt_one() local 71 memcpy(tmp, src, bs); in cipher_crypt_one() 73 memcpy(dst, tmp, bs); in cipher_crypt_one()
|
| A D | shash.c | 116 unsigned int bs; in crypto_shash_finup() local 136 bs = crypto_shash_blocksize(tfm); in crypto_shash_finup() 137 buf = blenp - bs; in crypto_shash_finup() 142 while ((*blenp + len) >= bs + nonzero) { in crypto_shash_finup() 147 memcpy(buf + *blenp, data, bs - *blenp); in crypto_shash_finup() 148 nbytes = bs; in crypto_shash_finup()
|
| A D | ccm.c | 782 int bs = crypto_shash_digestsize(pdesc->tfm); in crypto_cbcmac_digest_init() local 785 memset(dg, 0, bs); in crypto_cbcmac_digest_init() 795 int bs = crypto_shash_digestsize(parent); in crypto_cbcmac_digest_update() local 799 crypto_xor(dg, p, bs); in crypto_cbcmac_digest_update() 801 p += bs; in crypto_cbcmac_digest_update() 802 len -= bs; in crypto_cbcmac_digest_update() 803 } while (len >= bs); in crypto_cbcmac_digest_update() 813 int bs = crypto_shash_digestsize(parent); in crypto_cbcmac_digest_finup() local 821 memcpy(out, dg, bs); in crypto_cbcmac_digest_finup()
|
| A D | algif_skcipher.c | 105 unsigned int bs = crypto_skcipher_chunksize(tfm); in _skcipher_recvmsg() local 111 if (!ctx->init || (ctx->more && ctx->used < bs)) { in _skcipher_recvmsg() 112 err = af_alg_wait_for_data(sk, flags, bs); in _skcipher_recvmsg() 133 len -= len % bs; in _skcipher_recvmsg()
|
| A D | xts.c | 88 const int bs = XTS_BLOCK_SIZE; in xts_xor_tweak() local 119 skcipher_walk_done(&w, avail - bs); in xts_xor_tweak() 125 } while ((avail -= bs) >= bs); in xts_xor_tweak()
|
| A D | lrw.c | 142 const int bs = LRW_BLOCK_SIZE; in lrw_xor_tweak() local 183 } while ((avail -= bs) >= bs); in lrw_xor_tweak()
|
| A D | ahash.c | 409 int bs = crypto_ahash_blocksize(tfm); in ahash_update_finish() local 416 buf = blenp - bs; in ahash_update_finish() 447 int bs = crypto_ahash_blocksize(tfm); in crypto_ahash_update() local 461 buf = blenp - bs; in crypto_ahash_update() 463 if (blen + req->nbytes < bs + nonzero) { in crypto_ahash_update() 527 int bs = crypto_ahash_blocksize(tfm); in crypto_ahash_finup() local 543 buf = blenp - bs; in crypto_ahash_finup()
|
| A D | lskcipher.c | 76 unsigned bs = crypto_lskcipher_blocksize(tfm); in crypto_lskcipher_crypt_unaligned() local 96 while (len >= bs) { in crypto_lskcipher_crypt_unaligned()
|