Lines Matching refs:sha
460 static void update_with_length_prefix(SHA512_CTX *sha, const uint8_t *data, in update_with_length_prefix() argument
471 SHA512_Update(sha, len_le, sizeof(len_le)); in update_with_length_prefix()
472 SHA512_Update(sha, data, len); in update_with_length_prefix()
510 SHA512_CTX sha; in SPAKE2_process_msg() local
511 SHA512_Init(&sha); in SPAKE2_process_msg()
513 update_with_length_prefix(&sha, ctx->my_name, ctx->my_name_len); in SPAKE2_process_msg()
514 update_with_length_prefix(&sha, ctx->their_name, ctx->their_name_len); in SPAKE2_process_msg()
515 update_with_length_prefix(&sha, ctx->my_msg, sizeof(ctx->my_msg)); in SPAKE2_process_msg()
516 update_with_length_prefix(&sha, their_msg, 32); in SPAKE2_process_msg()
518 update_with_length_prefix(&sha, ctx->their_name, ctx->their_name_len); in SPAKE2_process_msg()
519 update_with_length_prefix(&sha, ctx->my_name, ctx->my_name_len); in SPAKE2_process_msg()
520 update_with_length_prefix(&sha, their_msg, 32); in SPAKE2_process_msg()
521 update_with_length_prefix(&sha, ctx->my_msg, sizeof(ctx->my_msg)); in SPAKE2_process_msg()
523 update_with_length_prefix(&sha, dh_shared_encoded, sizeof(dh_shared_encoded)); in SPAKE2_process_msg()
524 update_with_length_prefix(&sha, ctx->password_hash, in SPAKE2_process_msg()
528 SHA512_Final(key, &sha); in SPAKE2_process_msg()