Lines Matching refs:sctx
296 struct sha1_state *sctx = shash_desc_ctx(desc); in padlock_sha1_init_nano() local
298 *sctx = (struct sha1_state){ in padlock_sha1_init_nano()
308 struct sha1_state *sctx = shash_desc_ctx(desc); in padlock_sha1_update_nano() local
317 partial = sctx->count & 0x3f; in padlock_sha1_update_nano()
318 sctx->count += len; in padlock_sha1_update_nano()
321 memcpy(dst, (u8 *)(sctx->state), SHA1_DIGEST_SIZE); in padlock_sha1_update_nano()
328 memcpy(sctx->buffer + partial, data, in padlock_sha1_update_nano()
330 src = sctx->buffer; in padlock_sha1_update_nano()
353 memcpy((u8 *)(sctx->state), dst, SHA1_DIGEST_SIZE); in padlock_sha1_update_nano()
354 memcpy(sctx->buffer + partial, src, len - done); in padlock_sha1_update_nano()
384 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_init_nano() local
386 *sctx = (struct sha256_state){ in padlock_sha256_init_nano()
397 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_update_nano() local
406 partial = sctx->count & 0x3f; in padlock_sha256_update_nano()
407 sctx->count += len; in padlock_sha256_update_nano()
410 memcpy(dst, (u8 *)(sctx->state), SHA256_DIGEST_SIZE); in padlock_sha256_update_nano()
417 memcpy(sctx->buf + partial, data, in padlock_sha256_update_nano()
419 src = sctx->buf; in padlock_sha256_update_nano()
442 memcpy((u8 *)(sctx->state), dst, SHA256_DIGEST_SIZE); in padlock_sha256_update_nano()
443 memcpy(sctx->buf + partial, src, len - done); in padlock_sha256_update_nano()
476 void *sctx = shash_desc_ctx(desc); in padlock_sha_export_nano() local
478 memcpy(out, sctx, statesize); in padlock_sha_export_nano()
486 void *sctx = shash_desc_ctx(desc); in padlock_sha_import_nano() local
488 memcpy(sctx, in, statesize); in padlock_sha_import_nano()