add note about ecdsa signature encoding in SecurityTokenHelper

This commit is contained in:
Vincent Breitmoser
2017-05-16 13:43:35 +02:00
parent 0b405575c8
commit c6bec99fe3

View File

@@ -698,6 +698,7 @@ public class SecurityTokenHelper {
break;
case ECKeyFormatType:
// "plain" encoding, see https://github.com/open-keychain/open-keychain/issues/2108
if (signature.length % 2 != 0) {
throw new IOException("Bad signature length!");
}