Searched refs:bs (Results 1 – 10 of 10) sorted by relevance
/crypto/ |
D | xcbc.c | 58 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local 63 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey() 64 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey() 67 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey() 75 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local 76 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init() 79 memset(prev, 0, bs); in crypto_xcbc_digest_init() 92 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local 94 u8 *prev = odds + bs; in crypto_xcbc_digest_update() 97 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update() [all …]
|
D | cmac.c | 54 unsigned int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_setkey() local 66 memset(consts, 0, bs); in crypto_cmac_digest_setkey() 69 switch (bs) { in crypto_cmac_digest_setkey() 108 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() local 109 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; in crypto_cmac_digest_init() 112 memset(prev, 0, bs); in crypto_cmac_digest_init() 125 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() local 127 u8 *prev = odds + bs; in crypto_cmac_digest_update() 130 if ((ctx->len + len) <= bs) { in crypto_cmac_digest_update() 137 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_cmac_digest_update() [all …]
|
D | hmac.c | 43 int bs = crypto_shash_blocksize(parent); in hmac_setkey() local 56 if (keylen > bs) { in hmac_setkey() 67 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey() 68 memcpy(opad, ipad, bs); in hmac_setkey() 70 for (i = 0; i < bs; i++) { in hmac_setkey() 76 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey() 79 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey()
|
D | ccm.c | 843 int bs = crypto_shash_digestsize(pdesc->tfm); in crypto_cbcmac_digest_init() local 844 u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs; in crypto_cbcmac_digest_init() 847 memset(dg, 0, bs); in crypto_cbcmac_digest_init() 859 int bs = crypto_shash_digestsize(parent); in crypto_cbcmac_digest_update() local 860 u8 *dg = (u8 *)ctx + crypto_shash_descsize(parent) - bs; in crypto_cbcmac_digest_update() 863 unsigned int l = min(len, bs - ctx->len); in crypto_cbcmac_digest_update() 870 if (ctx->len == bs) { in crypto_cbcmac_digest_update() 885 int bs = crypto_shash_digestsize(parent); in crypto_cbcmac_digest_final() local 886 u8 *dg = (u8 *)ctx + crypto_shash_descsize(parent) - bs; in crypto_cbcmac_digest_final() 891 memcpy(out, dg, bs); in crypto_cbcmac_digest_final()
|
D | ablkcipher.c | 181 unsigned bs = walk->blocksize; in ablkcipher_copy_iv() local 183 unsigned aligned_bs = ALIGN(bs, alignmask + 1); in ablkcipher_copy_iv() 194 iv = ablkcipher_get_spot(iv, bs) + aligned_bs; in ablkcipher_copy_iv() 195 iv = ablkcipher_get_spot(iv, bs) + aligned_bs; in ablkcipher_copy_iv()
|
D | xts.c | 92 const int bs = XTS_BLOCK_SIZE; in xor_tweak() local 123 skcipher_walk_done(&w, avail - bs); in xor_tweak() 129 } while ((avail -= bs) >= bs); in xor_tweak()
|
D | lrw.c | 144 const int bs = LRW_BLOCK_SIZE; in xor_tweak() local 184 } while ((avail -= bs) >= bs); in xor_tweak()
|
D | blkcipher.c | 271 unsigned bs = walk->walk_blocksize; in blkcipher_copy_iv() local 272 unsigned aligned_bs = ALIGN(bs, walk->alignmask + 1); in blkcipher_copy_iv() 284 iv = blkcipher_get_spot(iv, bs) + aligned_bs; in blkcipher_copy_iv() 285 iv = blkcipher_get_spot(iv, bs) + aligned_bs; in blkcipher_copy_iv()
|
D | algif_skcipher.c | 59 unsigned int bs = crypto_skcipher_chunksize(tfm); in _skcipher_recvmsg() local 90 len -= len % bs; in _skcipher_recvmsg()
|
D | skcipher.c | 401 unsigned bs = walk->stride; in skcipher_copy_iv() local 406 aligned_bs = ALIGN(bs, alignmask + 1); in skcipher_copy_iv() 417 size += (bs - 1) & ~(alignmask | a); in skcipher_copy_iv() 425 iv = skcipher_get_spot(iv, bs) + aligned_bs; in skcipher_copy_iv()
|