This is a JavaCard library package that provides a stub implementation of big number modular arithmetic operations.
0xA0:0x00:0x00:0x08:0x04:0x00:0x02
im.status.keycard.math
1.0
BigNumberMath - Stub implementation that throws exceptions for all operations
modAdd(byte[] a, short aOff, short aLen, byte[] b, short bOff, short bLen, byte[] n, short nOff, short nLen)- Modular addition: a = (a + b) mod n - ImplementedmodMul(byte[] a, short aOff, short aLen, byte[] b, short bOff, short bLen, byte[] n, short nOff, short nLen)- Modular multiplication: a = (a * b) mod n - Throws ISOExceptionmodSub(byte[] a, short aOff, short aLen, byte[] b, short bOff, short bLen, byte[] n, short nOff, short nLen)- Modular subtraction: a = (a - b) mod n - ImplementedmodRed(byte[] a, short aOff, short aLen, byte[] n, short nOff, short nLen)- Modular reduction: a = a mod n - Throws ISOException
./gradlew build- None (pure JavaCard API)
This library package provides a software implementation for modular arithmetic. Just load it before Keycard's main package