diff options
author | James Walker <walkah@walkah.net> | 2010-03-12 19:42:48 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-03-12 19:42:48 -0500 |
commit | c5bb41176ee246369e05b932f031f40e38087f23 (patch) | |
tree | c8810a4b846da963bc48a9e67c9ed8d8d3b22fa6 /plugins/OStatus/classes | |
parent | 23d44c7d5980fb096aeec62c600b71cfb9fac167 (diff) |
converted toString to new crypt library
Diffstat (limited to 'plugins/OStatus/classes')
-rw-r--r-- | plugins/OStatus/classes/Magicsig.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/OStatus/classes/Magicsig.php b/plugins/OStatus/classes/Magicsig.php index d25b150e8..d1d6a6d45 100644 --- a/plugins/OStatus/classes/Magicsig.php +++ b/plugins/OStatus/classes/Magicsig.php @@ -110,14 +110,11 @@ class Magicsig extends Memcached_DataObject public function toString($full_pair = true) { - $public_key = $this->_rsa->_public_key; - $private_key = $this->_rsa->_private_key; - - $mod = base64_url_encode($public_key->getModulus()); - $exp = base64_url_encode($public_key->getExponent()); + $mod = base64_url_encode($this->publicKey->modulus->toBytes()); + $exp = base64_url_encode($this->publicKey->exponent->toBytes()); $private_exp = ''; if ($full_pair && $private_key->getExponent()) { - $private_exp = '.' . base64_url_encode($private_key->getExponent()); + $private_exp = '.' . base64_url_encode($this->privateKey->exponent->toBytes()); } return 'RSA.' . $mod . '.' . $exp . $private_exp; |