Lines Matching refs:octx
50 struct md5_state *octx = out; in sun4i_hash_export_md5() local
53 octx->byte_count = op->byte_count + op->len; in sun4i_hash_export_md5()
55 memcpy(octx->block, op->buf, op->len); in sun4i_hash_export_md5()
59 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5()
61 octx->hash[0] = SHA1_H0; in sun4i_hash_export_md5()
62 octx->hash[1] = SHA1_H1; in sun4i_hash_export_md5()
63 octx->hash[2] = SHA1_H2; in sun4i_hash_export_md5()
64 octx->hash[3] = SHA1_H3; in sun4i_hash_export_md5()
92 struct sha1_state *octx = out; in sun4i_hash_export_sha1() local
95 octx->count = op->byte_count + op->len; in sun4i_hash_export_sha1()
97 memcpy(octx->buffer, op->buf, op->len); in sun4i_hash_export_sha1()
101 octx->state[i] = op->hash[i]; in sun4i_hash_export_sha1()
103 octx->state[0] = SHA1_H0; in sun4i_hash_export_sha1()
104 octx->state[1] = SHA1_H1; in sun4i_hash_export_sha1()
105 octx->state[2] = SHA1_H2; in sun4i_hash_export_sha1()
106 octx->state[3] = SHA1_H3; in sun4i_hash_export_sha1()
107 octx->state[4] = SHA1_H4; in sun4i_hash_export_sha1()