Commit 20ea892c authored by Josh Ji's avatar Josh Ji

change dataBuffer size to 1510

parent 698cd82e
......@@ -113,9 +113,9 @@ public class CTAP2 extends Applet implements ExtendedLength {
// 1210 bytes of a transient buffer for read-in and out
// We advertise 1200 bytes supported, but 10 bytes for protocol nonsense
try {
dataBuffer = JCSystem.makeTransientByteArray((short) 2010, JCSystem.CLEAR_ON_DESELECT);
dataBuffer = JCSystem.makeTransientByteArray((short) 1510, JCSystem.CLEAR_ON_DESELECT);
} catch (Exception e) {
dataBuffer = new byte[2010];
dataBuffer = new byte[1510];
}
try {
scratch = JCSystem.makeTransientByteArray((short) 512, JCSystem.CLEAR_ON_DESELECT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment