mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
allow 1024 bit key signatures
This commit is contained in:
parent
da66d1443f
commit
c7b0f77c9b
@ -369,9 +369,8 @@ public class NfcActivity extends ActionBarActivity {
|
||||
}
|
||||
|
||||
// Make sure the signature we received is actually the expected number of bytes long!
|
||||
// TODO this is only right for RSA 2048 bit keys. Do we support anything else right now?
|
||||
if (signature.length() != 512) {
|
||||
toast("Bad signature length! Expected 256 bytes, got " + signature.length() / 2);
|
||||
if (signature.length() != 256 && signature.length() != 512) {
|
||||
toast("Bad signature length! Expected 128 or 256 bytes, got " + signature.length() / 2);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user