Skip to content

Instantly share code, notes, and snippets.

View Gilmor's full-sized avatar

Tomáš Jačko Gilmor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gilmor on github.
  • I am gilmor (https://keybase.io/gilmor) on keybase.
  • I have a public key ASAP2c9TEoFN8b8YrlWTj4UUTFULI5YTXyJmAG2FJFc2Vgo

To claim this, I am signing this object:

@Gilmor
Gilmor / Iso9797Alg3MacTest.java
Created January 25, 2016 13:10
Iso9797Alg3 - Retail MAC Calculation in Java
package cz.monetplus.mac;
import static org.assertj.core.api.Assertions.assertThat;
import org.apache.commons.codec.binary.Hex;
import org.bouncycastle.crypto.BlockCipher;
import org.bouncycastle.crypto.Mac;
import org.bouncycastle.crypto.engines.DESEngine;
import org.bouncycastle.crypto.macs.ISO9797Alg3Mac;
import org.bouncycastle.crypto.params.KeyParameter;
@Gilmor
Gilmor / PinblockTool.java
Created January 5, 2016 09:58
Pinblock ISO 9564 format 0
package cz.monetplus.mnsp.tools.misc;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.lang.StringUtils;
/**
* Tools for encoding a decoding pinblock
*
* @author Tomas Jacko <tomas.jacko [at] monetplus.cz>