Lines Matching refs:pointQ
88 const SECItem *pointP, SECItem *pointQ, int kmflag) in ec_points_mul() argument
206 pointQ->data[0] = EC_POINT_FORM_UNCOMPRESSED; in ec_points_mul()
207 CHECK_MPI_OK( mp_to_fixlen_octets(&Qx, pointQ->data + 1, in ec_points_mul()
209 CHECK_MPI_OK( mp_to_fixlen_octets(&Qy, pointQ->data + 1 + len, in ec_points_mul()
215 printf("ec_points_mul: pointQ [len=%d]:", pointQ->len); in ec_points_mul()
216 for (i = 0; i < pointQ->len; i++) in ec_points_mul()
217 printf("%02x:", pointQ->data[i]); in ec_points_mul()
564 SECItem pointQ = {siBuffer, NULL, 0}; in ECDH_Derive() local
580 pointQ.len = 2*len + 1; in ECDH_Derive()
581 if ((pointQ.data = PORT_Alloc(2*len + 1, kmflag)) == NULL) goto cleanup; in ECDH_Derive()
597 if ((ec_points_mul(ecParams, NULL, &k, publicValue, &pointQ, kmflag) != SECSuccess) || in ECDH_Derive()
598 ec_point_at_infinity(&pointQ)) in ECDH_Derive()
605 memcpy(derivedSecret->data, pointQ.data + 1, len); in ECDH_Derive()
619 if (pointQ.data) { in ECDH_Derive()
620 PORT_ZFree(pointQ.data, 2*len + 1); in ECDH_Derive()