zabbix-agent2/src/libs/zbxcrypto/sha512crypt.c
/* Initialize structure containing state of computation.
(FIPS 180-2:5.3.3)  */
Initialize structure containing state of computation.
Initialize structure containing state of computation .
static void
sha512_init_ctx (struct sha512_ctx *ctx)
{
	ctx->H[0] = UINT64_C (0x6a09e667f3bcc908);
	ctx->H[1] = UINT64_C (0xbb67ae8584caa73b);
	ctx->H[2] = UINT64_C (0x3c6ef372fe94f82b);
	ctx->H[3] = UINT64_C (0xa54ff53a5f1d36f1);
	ctx->H[4] = UINT64_C (0x510e527fade682d1);
	ctx->H[5] = UINT64_C (0x9b05688c2b3e6c1f);
	ctx->H[6] = UINT64_C (0x1f83d9abfb41bd6b);
	ctx->H[7] = UINT64_C (0x5be0cd19137e2179);
	ctx->total[0] = ctx->total[1] = 0;
	ctx->buflen = 0;
}
static void sha512_init_ctx ( struct sha512_ctx * ctx ) { ctx -> H [ 0 ] = UINT64_C ( 0x6a09e667f3bcc908 ) ; ctx -> H [ 1 ] = UINT64_C ( 0xbb67ae8584caa73b ) ; ctx -> H [ 2 ] = UINT64_C ( 0x3c6ef372fe94f82b ) ; ctx -> H [ 3 ] = UINT64_C ( 0xa54ff53a5f1d36f1 ) ; ctx -> H [ 4 ] = UINT64_C ( 0x510e527fade682d1 ) ; ctx -> H [ 5 ] = UINT64_C ( 0x9b05688c2b3e6c1f ) ; ctx -> H [ 6 ] = UINT64_C ( 0x1f83d9abfb41bd6b ) ; ctx -> H [ 7 ] = UINT64_C ( 0x5be0cd19137e2179 ) ; ctx -> total [ 0 ] = ctx -> total [ 1 ] = 0 ; ctx -> buflen = 0 ; }
Initialize structure containing state of computation.
Initialize structure containing state of computation .