Code style

This commit is contained in:
Arnaud Fontaine
2017-07-07 10:20:24 +02:00
parent 47b0763f9f
commit f554548a14

View File

@@ -358,8 +358,10 @@ class SCP11bSecureMessaging implements SecureMessaging {
throw new SecureMessagingException("No key in token for secure messaging");
}
final int fieldSize = pkcard.getParams().getCurve().getField().getFieldSize();
final EllipticCurve curve = pkcard.getParams().getCurve();
final int fieldSize = curve.getField().getFieldSize();
int keySize;
if(fieldSize < 512) {
keySize = 16;
} else {