Lines Matching refs:buf

30 	uint8_t buf[SM2_INT_SIZE_BYTES];  in sm2_kep_compute_Z()  local
59 mp_to_unsigned_bin2(key->dp.A, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
60 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
64 mp_to_unsigned_bin2(key->dp.B, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
65 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
69 mp_to_unsigned_bin2(key->dp.base.x, 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 mp_to_unsigned_bin2(key->dp.base.y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
75 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
79 mp_to_unsigned_bin2(key->pubkey.x, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
80 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
84 mp_to_unsigned_bin2(key->pubkey.y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_Z()
85 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_Z()
110 uint8_t buf[SM2_INT_SIZE_BYTES]; in sm2_kep_compute_S() local
127 mp_to_unsigned_bin2(UV->x, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
128 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
138 mp_to_unsigned_bin2(initiator_eph_key->pubkey.x, buf, in sm2_kep_compute_S()
140 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
145 mp_to_unsigned_bin2(initiator_eph_key->pubkey.y, buf, in sm2_kep_compute_S()
147 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
152 mp_to_unsigned_bin2(responder_eph_key->pubkey.x, buf, in sm2_kep_compute_S()
154 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
159 mp_to_unsigned_bin2(responder_eph_key->pubkey.y, buf, in sm2_kep_compute_S()
161 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()
181 mp_to_unsigned_bin2(UV->y, buf, SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
182 res = crypto_hash_update(ctx, buf, sizeof(buf)); in sm2_kep_compute_S()