Lines Matching refs:hash_ctx
1955 SHA256_CTX hash_ctx; in HRSS_encap() local
1956 SHA256_Init(&hash_ctx); in HRSS_encap()
1957 SHA256_Update(&hash_ctx, kSharedKey, sizeof(kSharedKey)); in HRSS_encap()
1958 SHA256_Update(&hash_ctx, m_bytes, sizeof(m_bytes)); in HRSS_encap()
1959 SHA256_Update(&hash_ctx, r_bytes, sizeof(r_bytes)); in HRSS_encap()
1960 SHA256_Update(&hash_ctx, out_ciphertext, POLY_BYTES); in HRSS_encap()
1961 SHA256_Final(out_shared_key, &hash_ctx); in HRSS_encap()
1982 SHA256_CTX hash_ctx; in HRSS_decap() local
1983 SHA256_Init(&hash_ctx); in HRSS_decap()
1984 SHA256_Update(&hash_ctx, masked_key, sizeof(masked_key)); in HRSS_decap()
1985 SHA256_Update(&hash_ctx, ciphertext, ciphertext_len); in HRSS_decap()
1987 SHA256_Final(inner_digest, &hash_ctx); in HRSS_decap()
1995 SHA256_Init(&hash_ctx); in HRSS_decap()
1996 SHA256_Update(&hash_ctx, masked_key, sizeof(masked_key)); in HRSS_decap()
1997 SHA256_Update(&hash_ctx, inner_digest, sizeof(inner_digest)); in HRSS_decap()
2000 SHA256_Final(out_shared_key, &hash_ctx); in HRSS_decap()
2072 SHA256_Init(&hash_ctx); in HRSS_decap()
2073 SHA256_Update(&hash_ctx, kSharedKey, sizeof(kSharedKey)); in HRSS_decap()
2074 SHA256_Update(&hash_ctx, m_bytes, sizeof(m_bytes)); in HRSS_decap()
2075 SHA256_Update(&hash_ctx, r_bytes, sizeof(r_bytes)); in HRSS_decap()
2076 SHA256_Update(&hash_ctx, expected_ciphertext, sizeof(expected_ciphertext)); in HRSS_decap()
2077 SHA256_Final(shared_key, &hash_ctx); in HRSS_decap()