@@ 512-518 (lines=7) @@ | ||
509 | $resY = gmp_strval($y[0], 16); |
|
510 | if(gmp_strval(gmp_mod($y[1], gmp_init(2, 10)), 10) === '0') |
|
511 | $resY = gmp_strval($y[1], 16); |
|
512 | if($resY !== null) |
|
513 | { |
|
514 | while(strlen($resY) < 64) |
|
515 | { |
|
516 | $resY = '0' . $resY; |
|
517 | } |
|
518 | } |
|
519 | return $resY; |
|
520 | } |
|
521 | else if($derEvenOrOddCode === '03') // odd |
|
@@ 528-534 (lines=7) @@ | ||
525 | $resY = gmp_strval($y[0], 16); |
|
526 | if(gmp_strval(gmp_mod($y[1], gmp_init(2, 10)), 10) === '1') |
|
527 | $resY = gmp_strval($y[1], 16); |
|
528 | if($resY !== null) |
|
529 | { |
|
530 | while(strlen($resY) < 64) |
|
531 | { |
|
532 | $resY = '0' . $resY; |
|
533 | } |
|
534 | } |
|
535 | return $resY; |
|
536 | } |
|
537 |