if(ParagonIE_Sodium_Core_Util::strlen($keypair) !== self::CRYPTO_KX_KEYPAIRBYTES){ thrownewSodiumException('keypair should be SODIUM_CRYPTO_KX_KEYPAIRBYTES bytes'); } if(ParagonIE_Sodium_Core_Util::strlen($serverPublicKey) !== self::CRYPTO_KX_PUBLICKEYBYTES){ thrownewSodiumException('public keys must be SODIUM_CRYPTO_KX_PUBLICKEYBYTES bytes'); }