pssht  latest
SSH server library written in PHP
DHGroup1SHA1.php
1 <?php
2 
3 /*
4 * This file is part of pssht.
5 *
6 * (c) François Poirotte <clicky@erebot.net>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 
12 namespace fpoirotte\Pssht\KEX;
13 
20 {
21  public static function getName()
22  {
23  return 'diffie-hellman-group1-sha1';
24  }
25 
26  public static function getGenerator()
27  {
28  return 2;
29  }
30 
31  public static function getPrime()
32  {
33  return str_replace(
34  "\r\n ",
35  '',
36  '
37  FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1
38  29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD
39  EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245
40  E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED
41  EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381
42  FFFFFFFF FFFFFFFF'
43  );
44  }
45 }
static getName()
Return the name of the algorithm.