Lines Matching refs:ipad

124 			memcpy(ctx->base.ctxr->data, &ctx->base.ipad, ctx->key_sz);  in safexcel_context_control()
381 u32 *ipad = ctx->base.ipad.word; in safexcel_ahash_send_req() local
384 x = ipad[i] ^ ipad[i + 4]; in safexcel_ahash_send_req()
807 memcpy(areq->result, &ctx->base.ipad, sizeof(u32)); in safexcel_ahash_final()
823 result[i] = swab32(ctx->base.ipad.word[i + 4]); in safexcel_ahash_final()
1019 memcpy(req->state, &ctx->base.ipad, SHA1_DIGEST_SIZE); in safexcel_hmac_sha1_init()
1062 unsigned int keylen, u8 *ipad, u8 *opad) in safexcel_hmac_init_pad() argument
1070 memcpy(ipad, key, keylen); in safexcel_hmac_init_pad()
1079 ahash_request_set_crypt(areq, &sg, ipad, keylen); in safexcel_hmac_init_pad()
1097 memset(ipad + keylen, 0, blocksize - keylen); in safexcel_hmac_init_pad()
1098 memcpy(opad, ipad, blocksize); in safexcel_hmac_init_pad()
1101 ipad[i] ^= HMAC_IPAD_VALUE; in safexcel_hmac_init_pad()
1148 u8 *ipad, *opad; in __safexcel_hmac_setkey() local
1164 ipad = kcalloc(2, blocksize, GFP_KERNEL); in __safexcel_hmac_setkey()
1165 if (!ipad) { in __safexcel_hmac_setkey()
1170 opad = ipad + blocksize; in __safexcel_hmac_setkey()
1172 ret = safexcel_hmac_init_pad(areq, blocksize, key, keylen, ipad, opad); in __safexcel_hmac_setkey()
1176 ret = safexcel_hmac_init_iv(areq, blocksize, ipad, istate); in __safexcel_hmac_setkey()
1183 kfree(ipad); in __safexcel_hmac_setkey()
1205 (memcmp(&base->ipad, istate.state, state_sz) || in safexcel_hmac_setkey()
1209 memcpy(&base->ipad, &istate.state, state_sz); in safexcel_hmac_setkey()
1392 memcpy(req->state, &ctx->base.ipad, SHA256_DIGEST_SIZE); in safexcel_hmac_sha224_init()
1464 memcpy(req->state, &ctx->base.ipad, SHA256_DIGEST_SIZE); in safexcel_hmac_sha256_init()
1650 memcpy(req->state, &ctx->base.ipad, SHA512_DIGEST_SIZE); in safexcel_hmac_sha512_init()
1722 memcpy(req->state, &ctx->base.ipad, SHA512_DIGEST_SIZE); in safexcel_hmac_sha384_init()
1844 memcpy(req->state, &ctx->base.ipad, MD5_DIGEST_SIZE); in safexcel_hmac_md5_init()
1915 memset(&ctx->base.ipad, 0, sizeof(u32)); in safexcel_crc32_cra_init()
1927 req->state[0] = cpu_to_le32(~ctx->base.ipad.word[0]); in safexcel_crc32_init()
1949 memcpy(&ctx->base.ipad, key, sizeof(u32)); in safexcel_crc32_setkey()
1999 memcpy(req->state, &ctx->base.ipad, ctx->key_sz); in safexcel_cbcmac_init()
2024 memset(&ctx->base.ipad, 0, 2 * AES_BLOCK_SIZE); in safexcel_cbcmac_setkey()
2026 ctx->base.ipad.be[i + 8] = cpu_to_be32(aes.key_enc[i]); in safexcel_cbcmac_setkey()
2108 ctx->base.ipad.word[i] = swab32(key_tmp[i]); in safexcel_xcbcmac_setkey()
2191 ctx->base.ipad.word[i + 8] = swab32(aes.key_enc[i]); in safexcel_cmac_setkey()
2222 ctx->base.ipad.be[i] = cpu_to_be32(((u32 *)consts)[i]); in safexcel_cmac_setkey()
2344 memcpy(req->state, &ctx->base.ipad, SM3_DIGEST_SIZE); in safexcel_hmac_sm3_init()
2437 memcpy(key, &ctx->base.ipad, in safexcel_sha3_fbcheck()
2814 ctx->base.ipad.byte); in safexcel_hmac_sha3_setkey()
2824 ctx->base.ipad.byte + in safexcel_hmac_sha3_setkey()
2834 memcpy(&ctx->base.ipad, key, keylen); in safexcel_hmac_sha3_setkey()
2836 memcpy(&ctx->base.ipad, key, in safexcel_hmac_sha3_setkey()
2846 memset(ctx->base.ipad.byte + keylen, 0, in safexcel_hmac_sha3_setkey()
2869 memcpy(req->state, &ctx->base.ipad, SHA3_224_BLOCK_SIZE / 2); in safexcel_hmac_sha3_224_init()
2940 memcpy(req->state, &ctx->base.ipad, SHA3_256_BLOCK_SIZE / 2); in safexcel_hmac_sha3_256_init()
3011 memcpy(req->state, &ctx->base.ipad, SHA3_384_BLOCK_SIZE / 2); in safexcel_hmac_sha3_384_init()
3082 memcpy(req->state, &ctx->base.ipad, SHA3_512_BLOCK_SIZE / 2); in safexcel_hmac_sha3_512_init()