|
@@ -197,6 +197,11 @@ public:
|
|
|
return WebIDL::NotSupportedError::create(m_realm, "exportKey is not supported"_fly_string);
|
|
|
}
|
|
|
|
|
|
+ virtual WebIDL::ExceptionOr<JS::Value> get_key_length(AlgorithmParams const&)
|
|
|
+ {
|
|
|
+ return WebIDL::NotSupportedError::create(m_realm, "getKeyLength is not supported"_fly_string);
|
|
|
+ }
|
|
|
+
|
|
|
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new AlgorithmMethods(realm)); }
|
|
|
|
|
|
protected:
|
|
@@ -231,6 +236,7 @@ class PBKDF2 : public AlgorithmMethods {
|
|
|
public:
|
|
|
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<CryptoKey>> import_key(AlgorithmParams const&, Bindings::KeyFormat, CryptoKey::InternalKeyData, bool, Vector<Bindings::KeyUsage> const&) override;
|
|
|
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::ArrayBuffer>> derive_bits(AlgorithmParams const&, JS::NonnullGCPtr<CryptoKey>, u32) override;
|
|
|
+ virtual WebIDL::ExceptionOr<JS::Value> get_key_length(AlgorithmParams const&) override;
|
|
|
|
|
|
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new PBKDF2(realm)); }
|
|
|
|