1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

LibCrypto: Use BitmapView instead of Bitmap::wrap()

This commit is contained in:
Andreas Kling 2021-03-04 10:59:00 +01:00
parent a1d1a3b50b
commit ed9ab38b3b
3 changed files with 5 additions and 6 deletions

View file

@ -209,7 +209,7 @@ RSA::KeyPairType RSA::parse_rsa_key(ReadonlyBytes der)
return keypair;
// Now we have a bit string, which contains the PKCS#1 encoded public key.
auto data_result = decoder.read<Bitmap>();
auto data_result = decoder.read<BitmapView>();
if (data_result.is_error()) {
dbgln_if(RSA_PARSE_DEBUG, "RSA PKCS#8 public key parse failed: {}", data_result.error());
return keypair;