RSA: misc fixes to select plugins

This commit is contained in:
terrafrost 2015-10-21 09:44:39 -05:00
parent 6eb5ea3ef7
commit e2fcd9d951
4 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
<?php
/**
* BLOB Formatted RSA Key Handler
* Miccrosoft BLOB Formatted RSA Key Handler
*
* More info:
*
@ -21,13 +21,13 @@ namespace phpseclib\Crypt\RSA;
use phpseclib\Math\BigInteger;
/**
* BLOB Formatted RSA Key Handler
* Microsoft BLOB Formatted RSA Key Handler
*
* @package RSA
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class BLOB
class MSBLOB
{
/**#@+
* @access private

View File

@ -19,7 +19,7 @@ namespace phpseclib\Crypt\RSA;
use phpseclib\Math\BigInteger;
/**
* XML Formatted RSA Key Handler
* OpenSSH Formatted RSA Key Handler
*
* @package RSA
* @author Jim Wigginton <terrafrost@php.net>
@ -41,9 +41,9 @@ class OpenSSH
* @access public
* @param string $comment
*/
static function setEncryptionAlgorithm($comment)
static function setComment($comment)
{
self::$comment = $comment;
self::$comment = str_replace(array("\r", "\n"), '', $comment);
}
/**

View File

@ -41,9 +41,9 @@ class PuTTY
* @access public
* @param string $comment
*/
static function setEncryptionAlgorithm($comment)
static function setComment($comment)
{
self::$comment = $comment;
self::$comment = str_replace(array("\r", "\n"), '', $comment);
}
/**

View File

@ -431,7 +431,7 @@ Private-MAC: 35134b7434bf828b21404099861d455e660e8740';
$this->assertGreaterThanOrEqual(1, strlen("$privKey"));
$pubKey = new RSA();
$pubKey->load($privKey->getPublicKey('blob'));
$pubKey->load($privKey->getPublicKey('msblob'));
$this->assertGreaterThanOrEqual(1, strlen("$pubKey"));