Home
last modified time | relevance | path

Searched refs:sctx (Results 1 – 1 of 1) sorted by relevance

/crypto/
Dsha3_generic.c163 struct sha3_state *sctx = shash_desc_ctx(desc); in crypto_sha3_init() local
166 sctx->rsiz = 200 - 2 * digest_size; in crypto_sha3_init()
167 sctx->rsizw = sctx->rsiz / 8; in crypto_sha3_init()
168 sctx->partial = 0; in crypto_sha3_init()
170 memset(sctx->st, 0, sizeof(sctx->st)); in crypto_sha3_init()
178 struct sha3_state *sctx = shash_desc_ctx(desc); in crypto_sha3_update() local
185 if ((sctx->partial + len) > (sctx->rsiz - 1)) { in crypto_sha3_update()
186 if (sctx->partial) { in crypto_sha3_update()
187 done = -sctx->partial; in crypto_sha3_update()
188 memcpy(sctx->buf + sctx->partial, data, in crypto_sha3_update()
[all …]