Reduce internal buffer size by 330 bytes

This sets the value to hold only rsa 2048 length (949) + 1 bytes
This commit is contained in:
c0de 2023-10-04 13:47:21 -05:00
parent 604de144c6
commit e9584d79b8

View File

@ -25,8 +25,8 @@ import javacard.framework.*;
public final class Constants { public final class Constants {
protected static final short INTERNAL_BUFFER_MAX_LENGTH = /* 0x3b6 for rsa 2048; 0x50f for rsa 3072; 0x66d for rsa 4096 */
(short)0x500; protected static final short INTERNAL_BUFFER_MAX_LENGTH = (short)0x3b6; // Max size of key in bytes
protected static final short APDU_MAX_LENGTH = (short)0x400; protected static final short APDU_MAX_LENGTH = (short)0x400;