Lines Matching refs:precomputed
385 ALIGN64 P256_POINT precomputed[16]; in ecp_sm2p256_point_P_mul_by_scalar() local
393 memcpy(precomputed[1].X, P.X, 32); in ecp_sm2p256_point_P_mul_by_scalar()
394 memcpy(precomputed[1].Y, P.Y, 32); in ecp_sm2p256_point_P_mul_by_scalar()
395 precomputed[1].Z[0] = 1; in ecp_sm2p256_point_P_mul_by_scalar()
396 precomputed[1].Z[1] = 0; in ecp_sm2p256_point_P_mul_by_scalar()
397 precomputed[1].Z[2] = 0; in ecp_sm2p256_point_P_mul_by_scalar()
398 precomputed[1].Z[3] = 0; in ecp_sm2p256_point_P_mul_by_scalar()
401 ecp_sm2p256_point_double(&precomputed[2], &precomputed[1]); in ecp_sm2p256_point_P_mul_by_scalar()
405 ecp_sm2p256_point_add_affine(&precomputed[i], &precomputed[i - 1], &P); in ecp_sm2p256_point_P_mul_by_scalar()
412 memcpy(R, &precomputed[index], sizeof(P256_POINT)); in ecp_sm2p256_point_P_mul_by_scalar()
421 ecp_sm2p256_point_add(R, R, &precomputed[index]); in ecp_sm2p256_point_P_mul_by_scalar()