Lines Matching refs:octx
65 struct md5_state *octx = out; in sun4i_hash_export_md5() local
68 octx->byte_count = op->byte_count + op->len; in sun4i_hash_export_md5()
70 memcpy(octx->block, op->buf, op->len); in sun4i_hash_export_md5()
74 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5()
76 octx->hash[0] = SHA1_H0; in sun4i_hash_export_md5()
77 octx->hash[1] = SHA1_H1; in sun4i_hash_export_md5()
78 octx->hash[2] = SHA1_H2; in sun4i_hash_export_md5()
79 octx->hash[3] = SHA1_H3; in sun4i_hash_export_md5()
107 struct sha1_state *octx = out; in sun4i_hash_export_sha1() local
110 octx->count = op->byte_count + op->len; in sun4i_hash_export_sha1()
112 memcpy(octx->buffer, op->buf, op->len); in sun4i_hash_export_sha1()
116 octx->state[i] = op->hash[i]; in sun4i_hash_export_sha1()
118 octx->state[0] = SHA1_H0; in sun4i_hash_export_sha1()
119 octx->state[1] = SHA1_H1; in sun4i_hash_export_sha1()
120 octx->state[2] = SHA1_H2; in sun4i_hash_export_sha1()
121 octx->state[3] = SHA1_H3; in sun4i_hash_export_sha1()
122 octx->state[4] = SHA1_H4; in sun4i_hash_export_sha1()