Searched refs:sctx (Results 1 – 1 of 1) sorted by relevance
/lib/crypto/ |
D | sha256.c | 209 int sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha256_update() argument 214 partial = sctx->count & 0x3f; in sha256_update() 215 sctx->count += len; in sha256_update() 222 memcpy(sctx->buf + partial, data, done + 64); in sha256_update() 223 src = sctx->buf; in sha256_update() 227 sha256_transform(sctx->state, src); in sha256_update() 234 memcpy(sctx->buf + partial, src, len - done); in sha256_update() 240 int sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha224_update() argument 242 return sha256_update(sctx, data, len); in sha224_update() 246 static int __sha256_final(struct sha256_state *sctx, u8 *out, int digest_words) in __sha256_final() argument [all …]
|