129130131132133134135136137138139
eng.setPadBits(4); try { data = eng.processBlock(msg1, 0, msg1.length); } catch (Exception e) { return new SimpleTestResult(false, "ISO9796: failed - exception " + e.toString()); }
145146147148149150151152153154155
return new SimpleTestResult(false, "ISO9796: failed ISO9796-1 generation Test 1"); } try { data = eng.processBlock(data, 0, data.length); } catch (Exception e) { return new SimpleTestResult(false, "ISO9796: failed - exception " + e.toString()); }
176177178179180181182183184185186
eng.init(true, privParameters); try { data = eng.processBlock(msg2, 0, msg2.length); } catch (Exception e) { return new SimpleTestResult(false, "ISO9796: failed - exception " + e.toString()); }
192193194195196197198199200201202
return new SimpleTestResult(false, "ISO9796: failed ISO9796-1 generation Test 2"); } try { data = eng.processBlock(data, 0, data.length); } catch (Exception e) { return new SimpleTestResult(false, "ISO9796: failed - exception " + e.toString()); }
225226227228229230231232233234235
eng.setPadBits(4); try { data = eng.processBlock(msg3, 0, msg3.length); } catch (Exception e) { return new SimpleTestResult(false, "ISO9796: failed - exception " + e.toString()); }
241242243244245246247248249250251
return new SimpleTestResult(false, "ISO9796: failed ISO9796-1 generation Test 3"); } try { data = eng.processBlock(data, 0, data.length); } catch (Exception e) { return new SimpleTestResult(false, "ISO9796: failed - exception " + e.toString()); }