Lines Matching refs:blockhash
236 static void fill_first_blocks(uint8_t *blockhash, const KDF_ARGON2 *ctx);
259 static void initial_hash(uint8_t *blockhash, KDF_ARGON2 *ctx);
347 static void fill_first_blocks(uint8_t *blockhash, const KDF_ARGON2 *ctx) in fill_first_blocks() argument
357 store32(blockhash + ARGON2_PREHASH_DIGEST_LENGTH, 0); in fill_first_blocks()
358 store32(blockhash + ARGON2_PREHASH_DIGEST_LENGTH + 4, l); in fill_first_blocks()
360 blockhash, ARGON2_PREHASH_SEED_LENGTH); in fill_first_blocks()
363 store32(blockhash + ARGON2_PREHASH_DIGEST_LENGTH, 1); in fill_first_blocks()
365 blockhash, ARGON2_PREHASH_SEED_LENGTH); in fill_first_blocks()
650 static void initial_hash(uint8_t *blockhash, KDF_ARGON2 *ctx) in initial_hash() argument
657 if (ctx == NULL || blockhash == NULL) in initial_hash()
718 if (EVP_DigestFinal_ex(mdctx, blockhash, &tmp) != 1) in initial_hash()
727 uint8_t blockhash[ARGON2_PREHASH_SEED_LENGTH]; in initialize() local
748 initial_hash(blockhash, ctx); in initialize()
749 OPENSSL_cleanse(blockhash + ARGON2_PREHASH_DIGEST_LENGTH, in initialize()
751 fill_first_blocks(blockhash, ctx); in initialize()
752 OPENSSL_cleanse(blockhash, ARGON2_PREHASH_SEED_LENGTH); in initialize()
759 BLOCK blockhash; in finalize() local
767 copy_block(&blockhash, ctx->memory + ctx->lane_length - 1); in finalize()
772 xor_block(&blockhash, ctx->memory + last_block_in_lane); in finalize()
776 store_block(blockhash_bytes, &blockhash); in finalize()
779 OPENSSL_cleanse(blockhash.v, ARGON2_BLOCK_SIZE); in finalize()