public OneWayCodec createDecoder() throws Exception
{
final Signature signature = Signature.getInstance(signatureAlgorithmName);
signature.initVerify(keyPair.getPublic());
return new OneWayCodec()
{
public byte[] code(byte[] data) throws Exception
{
int dataLen = data.length - signatureLength;