Lines Matching refs:ipad

125 			memcpy(ctx->base.ctxr->data, &ctx->base.ipad, ctx->key_sz);  in safexcel_context_control()
382 u32 *ipad = ctx->base.ipad.word; in safexcel_ahash_send_req() local
385 x = ipad[i] ^ ipad[i + 4]; in safexcel_ahash_send_req()
808 memcpy(areq->result, &ctx->base.ipad, sizeof(u32)); in safexcel_ahash_final()
824 result[i] = swab32(ctx->base.ipad.word[i + 4]); in safexcel_ahash_final()
1020 memcpy(req->state, &ctx->base.ipad, SHA1_DIGEST_SIZE); in safexcel_hmac_sha1_init()
1063 unsigned int keylen, u8 *ipad, u8 *opad) in safexcel_hmac_init_pad() argument
1071 memcpy(ipad, key, keylen); in safexcel_hmac_init_pad()
1080 ahash_request_set_crypt(areq, &sg, ipad, keylen); in safexcel_hmac_init_pad()
1098 memset(ipad + keylen, 0, blocksize - keylen); in safexcel_hmac_init_pad()
1099 memcpy(opad, ipad, blocksize); in safexcel_hmac_init_pad()
1102 ipad[i] ^= HMAC_IPAD_VALUE; in safexcel_hmac_init_pad()
1149 u8 *ipad, *opad; in __safexcel_hmac_setkey() local
1165 ipad = kcalloc(2, blocksize, GFP_KERNEL); in __safexcel_hmac_setkey()
1166 if (!ipad) { in __safexcel_hmac_setkey()
1171 opad = ipad + blocksize; in __safexcel_hmac_setkey()
1173 ret = safexcel_hmac_init_pad(areq, blocksize, key, keylen, ipad, opad); in __safexcel_hmac_setkey()
1177 ret = safexcel_hmac_init_iv(areq, blocksize, ipad, istate); in __safexcel_hmac_setkey()
1184 kfree(ipad); in __safexcel_hmac_setkey()
1206 (memcmp(&base->ipad, istate.state, state_sz) || in safexcel_hmac_setkey()
1210 memcpy(&base->ipad, &istate.state, state_sz); in safexcel_hmac_setkey()
1393 memcpy(req->state, &ctx->base.ipad, SHA256_DIGEST_SIZE); in safexcel_hmac_sha224_init()
1465 memcpy(req->state, &ctx->base.ipad, SHA256_DIGEST_SIZE); in safexcel_hmac_sha256_init()
1651 memcpy(req->state, &ctx->base.ipad, SHA512_DIGEST_SIZE); in safexcel_hmac_sha512_init()
1723 memcpy(req->state, &ctx->base.ipad, SHA512_DIGEST_SIZE); in safexcel_hmac_sha384_init()
1845 memcpy(req->state, &ctx->base.ipad, MD5_DIGEST_SIZE); in safexcel_hmac_md5_init()
1916 memset(&ctx->base.ipad, 0, sizeof(u32)); in safexcel_crc32_cra_init()
1928 req->state[0] = cpu_to_le32(~ctx->base.ipad.word[0]); in safexcel_crc32_init()
1950 memcpy(&ctx->base.ipad, key, sizeof(u32)); in safexcel_crc32_setkey()
2000 memcpy(req->state, &ctx->base.ipad, ctx->key_sz); in safexcel_cbcmac_init()
2025 memset(&ctx->base.ipad, 0, 2 * AES_BLOCK_SIZE); in safexcel_cbcmac_setkey()
2027 ctx->base.ipad.be[i + 8] = cpu_to_be32(aes.key_enc[i]); in safexcel_cbcmac_setkey()
2101 ctx->base.ipad.word[i] = swab32(key_tmp[i]); in safexcel_xcbcmac_setkey()
2180 ctx->base.ipad.word[i + 8] = swab32(ctx->aes->key_enc[i]); in safexcel_cmac_setkey()
2203 ctx->base.ipad.be[i] = cpu_to_be32(((u32 *)consts)[i]); in safexcel_cmac_setkey()
2324 memcpy(req->state, &ctx->base.ipad, SM3_DIGEST_SIZE); in safexcel_hmac_sm3_init()
2417 memcpy(key, &ctx->base.ipad, in safexcel_sha3_fbcheck()
2794 ctx->base.ipad.byte); in safexcel_hmac_sha3_setkey()
2804 ctx->base.ipad.byte + in safexcel_hmac_sha3_setkey()
2814 memcpy(&ctx->base.ipad, key, keylen); in safexcel_hmac_sha3_setkey()
2816 memcpy(&ctx->base.ipad, key, in safexcel_hmac_sha3_setkey()
2826 memset(ctx->base.ipad.byte + keylen, 0, in safexcel_hmac_sha3_setkey()
2849 memcpy(req->state, &ctx->base.ipad, SHA3_224_BLOCK_SIZE / 2); in safexcel_hmac_sha3_224_init()
2920 memcpy(req->state, &ctx->base.ipad, SHA3_256_BLOCK_SIZE / 2); in safexcel_hmac_sha3_256_init()
2991 memcpy(req->state, &ctx->base.ipad, SHA3_384_BLOCK_SIZE / 2); in safexcel_hmac_sha3_384_init()
3062 memcpy(req->state, &ctx->base.ipad, SHA3_512_BLOCK_SIZE / 2); in safexcel_hmac_sha3_512_init()