CryptoKeyRSAOpenSSL.cpp [plain text]
#include "config.h"
#include "CryptoKeyRSA.h"
#if ENABLE(WEB_CRYPTO)
#include "CryptoKeyRSAComponents.h"
#include "NotImplemented.h"
namespace WebCore {
RefPtr<CryptoKeyRSA> CryptoKeyRSA::create(CryptoAlgorithmIdentifier, CryptoAlgorithmIdentifier hash, bool hasHash, const CryptoKeyRSAComponents&, bool extractable, CryptoKeyUsageBitmap)
{
notImplemented();
return nullptr;
}
bool CryptoKeyRSA::isRestrictedToHash(CryptoAlgorithmIdentifier&) const
{
notImplemented();
return true;
}
size_t CryptoKeyRSA::keySizeInBits() const
{
notImplemented();
return 0;
}
void CryptoKeyRSA::generatePair(CryptoAlgorithmIdentifier, CryptoAlgorithmIdentifier hash, bool hasHash, unsigned modulusLength, const Vector<uint8_t>& publicExponent, bool extractable, CryptoKeyUsageBitmap, KeyPairCallback&&, VoidCallback&& failureCallback, ScriptExecutionContext*)
{
notImplemented();
}
RefPtr<CryptoKeyRSA> CryptoKeyRSA::importSpki(CryptoAlgorithmIdentifier, Optional<CryptoAlgorithmIdentifier> hash, Vector<uint8_t>&&, bool extractable, CryptoKeyUsageBitmap)
{
notImplemented();
return nullptr;
}
RefPtr<CryptoKeyRSA> CryptoKeyRSA::importPkcs8(CryptoAlgorithmIdentifier, Optional<CryptoAlgorithmIdentifier> hash, Vector<uint8_t>&&, bool extractable, CryptoKeyUsageBitmap)
{
notImplemented();
return nullptr;
}
ExceptionOr<Vector<uint8_t>> CryptoKeyRSA::exportSpki() const
{
notImplemented();
return Exception { NotSupportedError };
}
ExceptionOr<Vector<uint8_t>> CryptoKeyRSA::exportPkcs8() const
{
notImplemented();
return Exception { NotSupportedError };
}
std::unique_ptr<CryptoKeyRSAComponents> CryptoKeyRSA::exportData() const
{
notImplemented();
return nullptr;
}
}
#endif // ENABLE(WEB_CRYPTO)