Searched refs:blockhash (Results 1 - 6 of 6) sorted by relevance

/netbsd-current/external/apache2/argon2/dist/phc-winner-argon2/src/
H A Dgenkat.h25 * @param blockhash Array that contains pre-hashing digest
28 * @pre blockhash must point to INPUT_INITIAL_HASH_LENGTH bytes
32 void initial_kat(const uint8_t *blockhash, const argon2_context *context,
H A Dcore.c161 block blockhash; local
164 copy_block(&blockhash, instance->memory + instance->lane_length - 1);
170 xor_block(&blockhash, instance->memory + last_block_in_lane);
176 store_block(blockhash_bytes, &blockhash);
179 /* clear blockhash and blockhash_bytes */
180 clear_internal_memory(blockhash.v, ARGON2_BLOCK_SIZE);
519 void fill_first_blocks(uint8_t *blockhash, const argon2_instance_t *instance) { argument
526 store32(blockhash + ARGON2_PREHASH_DIGEST_LENGTH, 0);
527 store32(blockhash + ARGON2_PREHASH_DIGEST_LENGTH + 4, l);
528 blake2b_long(blockhash_bytes, ARGON2_BLOCK_SIZE, blockhash,
542 initial_hash(uint8_t *blockhash, argon2_context *context, argon2_type type) argument
617 uint8_t blockhash[ARGON2_PREHASH_SEED_LENGTH]; local
[all...]
H A Dcore.h164 * Hashes all the inputs into @a blockhash[PREHASH_DIGEST_LENGTH], clears
168 * @param blockhash Buffer for pre-hashing digest
170 * @pre @a blockhash must have at least @a PREHASH_DIGEST_LENGTH bytes
173 void initial_hash(uint8_t *blockhash, argon2_context *context,
179 * @param blockhash Pointer to the pre-hashing digest
180 * @pre blockhash must point to @a PREHASH_SEED_LENGTH allocated values
182 void fill_first_blocks(uint8_t *blockhash, const argon2_instance_t *instance);
H A Dgenkat.c24 void initial_kat(const uint8_t *blockhash, const argon2_context *context, argument
28 if (blockhash != NULL && context != NULL) {
85 printf("%2.2x ", ((unsigned char *)blockhash)[i]);
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/argon2/
H A Dargon2-core.c190 block blockhash; local
193 copy_block(&blockhash,
200 xor_block(&blockhash,
207 store_block(blockhash_bytes, &blockhash);
210 sodium_memzero(blockhash.v,
211 ARGON2_BLOCK_SIZE); /* clear blockhash */
368 fill_first_blocks(uint8_t *blockhash, const argon2_instance_t *instance) argument
375 STORE32_LE(blockhash + ARGON2_PREHASH_DIGEST_LENGTH, 0);
376 STORE32_LE(blockhash + ARGON2_PREHASH_DIGEST_LENGTH + 4, l);
377 blake2b_long(blockhash_bytes, ARGON2_BLOCK_SIZE, blockhash,
392 initial_hash(uint8_t *blockhash, argon2_context *context, argon2_type type) argument
477 uint8_t blockhash[ARGON2_PREHASH_SEED_LENGTH]; local
[all...]
H A Dargon2-core.h220 * Hashes all the inputs into @a blockhash[PREHASH_DIGEST_LENGTH], clears
224 * @param blockhash Buffer for pre-hashing digest
226 * @pre @a blockhash must have at least @a PREHASH_DIGEST_LENGTH bytes
229 void initial_hash(uint8_t *blockhash, argon2_context *context,
235 * @param blockhash Pointer to the pre-hashing digest
236 * @pre blockhash must point to @a PREHASH_SEED_LENGTH allocated values
238 void fill_first_blocks(uint8_t *blockhash, const argon2_instance_t *instance);

Completed in 204 milliseconds