Skip to content

Commit

Permalink
Check
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Feb 5, 2025
1 parent 64efd6a commit d359e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/crypto/ecdsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ load_public_key(rnp::botan::Pubkey &pubkey, const ec::Key &keydata)
RNP_LOG("unknown curve");
return false;
}
RNP_LOG("Botan curve name: %s", curve->botan_name);
if (!keydata.p.bytes() || (keydata.p.mpi[0] != 0x04)) {
RNP_LOG("Failed to load public key: %02x", keydata.p.mpi[0]);
return false;
Expand Down

0 comments on commit d359e0f

Please sign in to comment.