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

This commit is contained in:
Andreas Kling 2021-03-04 10:59:00 +01:00
commit ed9ab38b3b
Notes: sideshowbarker 2024-07-18 21:43:19 +09:00
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;