// ------------------------------------------------ public penCipher() { desEngine = Cipher.getInstance(Cipher.ALG_DES_ECB_NOPAD, false); desKey = KeyBuilder.buildKey(KeyBuilder.TYPE_DES, KeyBuilder.LENGTH_DES, false); des3Key = KeyBuilder.buildKey(KeyBuilder.TYPE_DES, KeyBuilder.LENGTH_DES3_2KEY, false); tbuf1 = JCSystem.makeTransientByteArray((short) 8, JCSystem.CLEAR_ON_DESELECT); tbuf2 = JCSystem.makeTransientByteArray((short) 8, JCSystem.CLEAR_ON_DESELECT); }
private ConnectionManager(byte[] bArray, short bOffset, byte bLength) { // The connection manager keeps track of the area where the // device is operating. Since the area changes as the user moves, // we keep track of the area by setting a variable in Transient // Clear-On-Deselect memory. activeAreaCode = JCSystem.makeTransientShortArray((short) 1, JCSystem.CLEAR_ON_DESELECT); activeAreaCode[0] = INACTIVE_AREA; connectionStatus = JCSystem.makeTransientByteArray((short) 1, JCSystem.CLEAR_ON_DESELECT); register(); }