@@ -56,7 +56,7 @@ public function buildKeyPair($bits){
5656 $ this ->rsa_imp ->setPublicKeyFormat (RSA ::PUBLIC_FORMAT_PKCS1 );
5757
5858 $ list = $ this ->rsa_imp ->createKey ($ bits );
59- return new KeyPair ( new _RSAPublicKeyPEMFornat ($ list ['publickey ' ]), new _RSAPrivateKeyPEMFornat ($ list ['privatekey ' ]));
59+ return new KeyPair ( new _RSAPublicKeyPEMFormat ($ list ['publickey ' ]), new _RSAPrivateKeyPEMFormat ($ list ['privatekey ' ]));
6060 }
6161
6262 /**
@@ -66,7 +66,7 @@ public function buildKeyPair($bits){
6666 */
6767 public function buildPublicKey (BigInteger $ n , BigInteger $ e ){
6868 $ public_key_pem = $ this ->rsa_imp ->_convertPublicKey ($ n , $ e );
69- return new _RSAPublicKeyPEMFornat ($ public_key_pem );
69+ return new _RSAPublicKeyPEMFormat ($ public_key_pem );
7070 }
7171
7272 /**
@@ -78,7 +78,7 @@ public function buildMinimalPrivateKey(\Math_BigInteger $n, \Math_BigInteger $d)
7878 $ this ->rsa_imp ->modulus = $ n ;
7979 $ this ->rsa_imp ->exponent = $ d ;
8080 $ private_key_pem = $ this ->rsa_imp ->_getPrivatePublicKey ();
81- return new _RSAPrivateKeyPEMFornat ($ private_key_pem );
81+ return new _RSAPrivateKeyPEMFormat ($ private_key_pem );
8282 }
8383
8484 /**
@@ -109,7 +109,7 @@ public function buildPrivateKey(BigInteger $n,
109109 array ($ dp , $ dq ),
110110 array ($ qi , $ qi )
111111 );
112- return new _RSAPrivateKeyPEMFornat ($ private_key_pem );
112+ return new _RSAPrivateKeyPEMFormat ($ private_key_pem );
113113 }
114114
115115 /**
@@ -119,7 +119,7 @@ public function buildPrivateKey(BigInteger $n,
119119 * @throws RSABadPEMFormat
120120 */
121121 public function buildPrivateKeyFromPEM ($ private_key_pem , $ password = null ){
122- return new _RSAPrivateKeyPEMFornat ($ private_key_pem , $ password );
122+ return new _RSAPrivateKeyPEMFormat ($ private_key_pem , $ password );
123123 }
124124
125125 /**
@@ -128,7 +128,7 @@ public function buildPrivateKeyFromPEM($private_key_pem, $password = null){
128128 * @throws RSABadPEMFormat
129129 */
130130 public function buildPublicKeyFromPEM ($ public_key_pem ){
131- return new _RSAPublicKeyPEMFornat ($ public_key_pem );
131+ return new _RSAPublicKeyPEMFormat ($ public_key_pem );
132132 }
133133
134134}
0 commit comments