Lines Matching refs:hash_ctx
2056 SHA256_CTX hash_ctx; in HRSS_encap() local
2057 SHA256_Init(&hash_ctx); in HRSS_encap()
2058 SHA256_Update(&hash_ctx, kSharedKey, sizeof(kSharedKey)); in HRSS_encap()
2059 SHA256_Update(&hash_ctx, m_bytes, sizeof(m_bytes)); in HRSS_encap()
2060 SHA256_Update(&hash_ctx, r_bytes, sizeof(r_bytes)); in HRSS_encap()
2061 SHA256_Update(&hash_ctx, out_ciphertext, POLY_BYTES); in HRSS_encap()
2062 SHA256_Final(out_shared_key, &hash_ctx); in HRSS_encap()
2083 SHA256_CTX hash_ctx; in HRSS_decap() local
2084 SHA256_Init(&hash_ctx); in HRSS_decap()
2085 SHA256_Update(&hash_ctx, masked_key, sizeof(masked_key)); in HRSS_decap()
2086 SHA256_Update(&hash_ctx, ciphertext, ciphertext_len); in HRSS_decap()
2088 SHA256_Final(inner_digest, &hash_ctx); in HRSS_decap()
2096 SHA256_Init(&hash_ctx); in HRSS_decap()
2097 SHA256_Update(&hash_ctx, masked_key, sizeof(masked_key)); in HRSS_decap()
2098 SHA256_Update(&hash_ctx, inner_digest, sizeof(inner_digest)); in HRSS_decap()
2101 SHA256_Final(out_shared_key, &hash_ctx); in HRSS_decap()
2173 SHA256_Init(&hash_ctx); in HRSS_decap()
2174 SHA256_Update(&hash_ctx, kSharedKey, sizeof(kSharedKey)); in HRSS_decap()
2175 SHA256_Update(&hash_ctx, m_bytes, sizeof(m_bytes)); in HRSS_decap()
2176 SHA256_Update(&hash_ctx, r_bytes, sizeof(r_bytes)); in HRSS_decap()
2177 SHA256_Update(&hash_ctx, expected_ciphertext, sizeof(expected_ciphertext)); in HRSS_decap()
2178 SHA256_Final(shared_key, &hash_ctx); in HRSS_decap()