Searched refs:bs (Results 1 – 6 of 6) sorted by relevance
/crypto/ |
D | xcbc.c | 56 void (*xor)(u8 *a, const u8 *b, unsigned int bs); 61 static void xor_128(u8 *a, const u8 *b, unsigned int bs) in xor_128() argument 72 int bs = crypto_hash_blocksize(parent); in _crypto_xcbc_digest_setkey() local 74 u8 key1[bs]; in _crypto_xcbc_digest_setkey() 81 return crypto_cipher_setkey(ctx->child, key1, bs); in _crypto_xcbc_digest_setkey() 102 int bs = crypto_hash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local 105 memset(ctx->odds, 0, bs); in crypto_xcbc_digest_init() 106 memset(ctx->prev, 0, bs); in crypto_xcbc_digest_init() 118 int bs = crypto_hash_blocksize(parent); in crypto_xcbc_digest_update2() local 135 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update2() [all …]
|
D | hmac.c | 48 int bs = crypto_hash_blocksize(parent); in hmac_setkey() local 51 char *opad = ipad + bs; in hmac_setkey() 52 char *digest = opad + bs; in hmac_setkey() 57 if (keylen > bs) { in hmac_setkey() 71 tmplen = bs * 2 + ds; in hmac_setkey() 97 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey() 98 memcpy(opad, ipad, bs); in hmac_setkey() 100 for (i = 0; i < bs; i++) { in hmac_setkey() 111 int bs = crypto_hash_blocksize(parent); in hmac_init() local 114 struct hmac_ctx *ctx = align_ptr(ipad + bs * 2 + ds, sizeof(void *)); in hmac_init() [all …]
|
D | xts.c | 99 const int bs = crypto_cipher_blocksize(ctx->child); in crypt() local 129 wsrc += bs; in crypt() 130 wdst += bs; in crypt() 131 } while ((avail -= bs) >= bs); in crypt()
|
D | lrw.c | 137 const int bs = crypto_cipher_blocksize(ctx->child); in crypt() local 172 wsrc += bs; in crypt() 173 wdst += bs; in crypt() 174 } while ((avail -= bs) >= bs); in crypt()
|
D | ccm.c | 167 unsigned int bs = 16; in compute_mac() local 175 getlen = bs - pctx->ilen; in compute_mac() 178 crypto_xor(odata, idata, bs); in compute_mac() 186 while (datalen >= bs) { in compute_mac() 187 crypto_xor(odata, data, bs); in compute_mac() 190 datalen -= bs; in compute_mac() 191 data += bs; in compute_mac()
|
D | blkcipher.c | 282 unsigned bs = walk->blocksize; in blkcipher_copy_iv() local 284 unsigned aligned_bs = ALIGN(bs, alignmask + 1); in blkcipher_copy_iv() 295 iv = blkcipher_get_spot(iv, bs) + aligned_bs; in blkcipher_copy_iv() 296 iv = blkcipher_get_spot(iv, bs) + aligned_bs; in blkcipher_copy_iv()
|