mbedtls_sha512_context::state field
The intermediate digest state.
![]()
uint64_t MBEDTLS_PRIVATE(state)[8]; ![]()
uint64_t state[8]; ![]()
ctx->state[0] = UL64(0x6A09E667F3BCC908);![]()
ctx->state[1] = UL64(0xBB67AE8584CAA73B);![]()
ctx->state[2] = UL64(0x3C6EF372FE94F82B);![]()
ctx->state[3] = UL64(0xA54FF53A5F1D36F1);![]()
ctx->state[4] = UL64(0x510E527FADE682D1);![]()
ctx->state[5] = UL64(0x9B05688C2B3E6C1F);![]()
ctx->state[6] = UL64(0x1F83D9ABFB41BD6B);![]()
ctx->state[7] = UL64(0x5BE0CD19137E2179);![]()
ctx->state[0] = UL64(0xCBBB9D5DC1059ED8);![]()
ctx->state[1] = UL64(0x629A292A367CD507);![]()
ctx->state[2] = UL64(0x9159015A3070DD17);![]()
ctx->state[3] = UL64(0x152FECD8F70E5939);![]()
ctx->state[4] = UL64(0x67332667FFC00B31);![]()
ctx->state[5] = UL64(0x8EB44A8768581511);![]()
ctx->state[6] = UL64(0xDB0C2E0D64F98FA7);![]()
ctx->state[7] = UL64(0x47B5481DBEFA4FA4);![]()
A = ctx->state[0];![]()
B = ctx->state[1];![]()
C = ctx->state[2];![]()
D = ctx->state[3];![]()
E = ctx->state[4];![]()
F = ctx->state[5];![]()
G = ctx->state[6];![]()
H = ctx->state[7];![]()
ctx->state[0] += A;![]()
ctx->state[1] += B;![]()
ctx->state[2] += C;![]()
ctx->state[3] += D;![]()
ctx->state[4] += E;![]()
ctx->state[5] += F;![]()
ctx->state[6] += G;![]()
ctx->state[7] += H;![]()
ctx->state[0] = UL64(0x6A09E667F3BCC908);![]()
ctx->state[1] = UL64(0xBB67AE8584CAA73B);![]()
ctx->state[2] = UL64(0x3C6EF372FE94F82B);![]()
ctx->state[3] = UL64(0xA54FF53A5F1D36F1);![]()
ctx->state[4] = UL64(0x510E527FADE682D1);![]()
ctx->state[5] = UL64(0x9B05688C2B3E6C1F);![]()
ctx->state[6] = UL64(0x1F83D9ABFB41BD6B);![]()
ctx->state[7] = UL64(0x5BE0CD19137E2179);![]()
ctx->state[0] = UL64(0xCBBB9D5DC1059ED8);![]()
ctx->state[1] = UL64(0x629A292A367CD507);![]()
ctx->state[2] = UL64(0x9159015A3070DD17);![]()
ctx->state[3] = UL64(0x152FECD8F70E5939);![]()
ctx->state[4] = UL64(0x67332667FFC00B31);![]()
ctx->state[5] = UL64(0x8EB44A8768581511);![]()
ctx->state[6] = UL64(0xDB0C2E0D64F98FA7);![]()
ctx->state[7] = UL64(0x47B5481DBEFA4FA4);![]()
local.A[i] = ctx->state[i];![]()
ctx->state[i] += local.A[i];![]()
sha512_put_uint64_be(ctx->state[0], output, 0);![]()
sha512_put_uint64_be(ctx->state[1], output, 8);![]()
sha512_put_uint64_be(ctx->state[2], output, 16);![]()
sha512_put_uint64_be(ctx->state[3], output, 24);![]()
sha512_put_uint64_be(ctx->state[4], output, 32);![]()
sha512_put_uint64_be(ctx->state[5], output, 40);![]()
sha512_put_uint64_be(ctx->state[6], output, 48);![]()
sha512_put_uint64_be(ctx->state[7], output, 56);
mbedtls_sha512_context::state is read by 7 functions:
![]()
mbedtls_sha512_context::state