Lines Matching refs:digest
314 unsigned int len, unsigned char *digest) in sha256() argument
320 sha256_final(&ctx, digest); in sha256()
383 void sha256_final(struct sha256_ctx *ctx, unsigned char *digest) in sha256_final() argument
410 UNPACK32(ctx->h[i], &digest[i << 2]); in sha256_final()
412 UNPACK32(ctx->h[0], &digest[0]); in sha256_final()
413 UNPACK32(ctx->h[1], &digest[4]); in sha256_final()
414 UNPACK32(ctx->h[2], &digest[8]); in sha256_final()
415 UNPACK32(ctx->h[3], &digest[12]); in sha256_final()
416 UNPACK32(ctx->h[4], &digest[16]); in sha256_final()
417 UNPACK32(ctx->h[5], &digest[20]); in sha256_final()
418 UNPACK32(ctx->h[6], &digest[24]); in sha256_final()
419 UNPACK32(ctx->h[7], &digest[28]); in sha256_final()
425 unsigned char *digest) in sha224() argument
431 sha224_final(&ctx, digest); in sha224()
494 void sha224_final(struct sha224_ctx *ctx, unsigned char *digest) in sha224_final() argument
521 UNPACK32(ctx->h[i], &digest[i << 2]); in sha224_final()
523 UNPACK32(ctx->h[0], &digest[0]); in sha224_final()
524 UNPACK32(ctx->h[1], &digest[4]); in sha224_final()
525 UNPACK32(ctx->h[2], &digest[8]); in sha224_final()
526 UNPACK32(ctx->h[3], &digest[12]); in sha224_final()
527 UNPACK32(ctx->h[4], &digest[16]); in sha224_final()
528 UNPACK32(ctx->h[5], &digest[20]); in sha224_final()
529 UNPACK32(ctx->h[6], &digest[24]); in sha224_final()