Lines Matching refs:hash
3 * sun4i-ss-hash.c - hardware cryptographic accelerator for Allwinner A20 SoC
27 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash);
56 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash);
74 octx->hash[i] = op->hash[i];
76 octx->hash[0] = SHA1_H0;
77 octx->hash[1] = SHA1_H1;
78 octx->hash[2] = SHA1_H2;
79 octx->hash[3] = SHA1_H3;
99 op->hash[i] = ictx->hash[i];
116 octx->state[i] = op->hash[i];
142 op->hash[i] = ictx->state[i];
151 * sun4i_hash_update: update hash engine
156 * Since we cannot leave partial data and hash state in the engine,
157 * we need to get the hash state at the end of this function.
158 * We can get the hash state every 64 bytes
207 op->len, op->hash[0]);
230 * we need to restore the partial hash state
235 writel(op->hash[i], ss->base + SS_IV0 + i * 4);
357 * If not, store the partial hash
370 "ERROR: hash end timeout %d>%d ctl=%x len=%u\n",
386 op->hash[i] = readl(ss->base + SS_MD0 + i * 4);
404 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash);
460 * Wait for SS to finish the hash.
471 "ERROR: hash end timeout %d>%d ctl=%x len=%u\n",
486 /* Get the hash from the device */