new SimpleMsg("parameter", "PIN under Derived Unique Key", pinUnderDuk), new SimpleMsg("parameter",
"Key Serial Number", ksn), new SimpleMsg("parameter", "Base Derivation Key",
bdk), new SimpleMsg("parameter", "Data Key 2", kd2), new SimpleMsg("parameter",
"Destination PIN Block Format", destinationPINBlockFormat)
};
LogEvent evt = new LogEvent(this, "s-m-operation");
evt.addMessage(new SimpleMsg("command", "Translate PIN", cmdParameters));
EncryptedPIN result = null;
try {
result = translatePINImpl(pinUnderDuk, ksn, bdk, kd2, destinationPINBlockFormat);
evt.addMessage(new SimpleMsg("result", "PIN under Data Key 2", result));
} catch (Exception e) {
evt.addMessage(e);
throw e instanceof SMException ? (SMException) e : new SMException(e);
} finally {
Logger.log(evt);
}
return result;