+ public function loadPublicKeyPKCS1($key)
+ {
+ $rsa = new Crypt_RSA();
+ if (!$rsa->setPublicKey($key, CRYPT_RSA_PUBLIC_FORMAT_PKCS1)) {
+ throw new ServerException('Could not load PKCS1 public key. We probably got this from a remote Diaspora node as the profile public key.');
+ }
+ $this->publicKey = $rsa;
+ }
+