Lines Matching refs:buf

35 	uint8_t buf[SM2_INT_SIZE_BYTES] = { };  in sm2_kep_compute_Z()  local
65 mres = mbedtls_mpi_write_binary(&grp->A, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
70 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
74 mres = mbedtls_mpi_write_binary(&grp->B, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
79 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
83 mres = mbedtls_mpi_write_binary(&grp->G.X, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
88 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
92 mres = mbedtls_mpi_write_binary(&grp->G.Y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
97 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
101 mres = mbedtls_mpi_write_binary(key->x, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
106 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
110 mres = mbedtls_mpi_write_binary(key->y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
115 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
141 uint8_t buf[SM2_INT_SIZE_BYTES]; in sm2_kep_compute_S() local
159 mres = mbedtls_mpi_write_binary(&UV->X, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
164 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
174 mres = mbedtls_mpi_write_binary(initiator_eph_key->x, buf, in sm2_kep_compute_S()
180 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
185 mres = mbedtls_mpi_write_binary(initiator_eph_key->y, buf, in sm2_kep_compute_S()
191 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
196 mres = mbedtls_mpi_write_binary(responder_eph_key->x, buf, in sm2_kep_compute_S()
202 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
207 mres = mbedtls_mpi_write_binary(responder_eph_key->y, buf, in sm2_kep_compute_S()
213 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
233 mres = mbedtls_mpi_write_binary(&UV->Y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
238 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()