private static WinCrypt.DATA_BLOB prepareInput(byte[] data) {
    Memory input = new Memory(data.length);
    input.write(0, data, 0, data.length);
    WinCrypt.DATA_BLOB in = new WinCrypt.DATA_BLOB.ByReference();
    in.cbData = data.length;
    in.pbData = input;
    return in;
  }
private static WinCrypt.DATA_BLOB prepareInput(byte[] data)