Skip to content

Commit ece2760

Browse files
devgianlupbrw
authored andcommitted
LibWeb: Remove spec error comments for RSAOAEP
The spec has been fixed since w3c/webcrypto#391.
1 parent 5c33e8c commit ece2760

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Libraries/LibWeb/Crypto/CryptoAlgorithms.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -986,12 +986,10 @@ WebIDL::ExceptionOr<GC::Ref<CryptoKey>> RSAOAEP::import_key(Web::Crypto::Algorit
986986
if (!meets_requirements)
987987
return WebIDL::DataError::create(m_realm, "Invalid JWK private key"_string);
988988

989-
// FIXME: Spec error, it should say 'the RSA private key identified by interpreting jwk according to section 6.3.2'
990-
// 2. Let privateKey represent the RSA public key identified by interpreting jwk according to Section 6.3.1 of JSON Web Algorithms [JWA].
989+
// 2. Let privateKey represent the RSA private key identified by interpreting jwk according to Section 6.3.2 of JSON Web Algorithms [JWA].
991990
auto private_key = TRY(parse_jwk_rsa_private_key(realm, jwk));
992991

993-
// FIXME: Spec error, it should say 'not to be a valid RSA private key'
994-
// 3. If privateKey can be determined to not be a valid RSA public key according to [RFC3447], then throw a DataError.
992+
// 3. If privateKey can be determined to not be a valid RSA private key according to [RFC3447], then throw a DataError.
995993
// FIXME: Validate the private key
996994

997995
// 4. Let key be a new CryptoKey representing privateKey.

0 commit comments

Comments
 (0)