/** * __clone() magic method * * @access public */ function __clone() { $key = new RSA(); $key->loadKey($this); return $key; }