actually the error is  98 62 which is invalid mac.

i have checked tha apdu and it is correct (as the 31.102 describes).

the MAC as i read is produced y the f1.

MAC = f1K (SQN || RAND || AMF)

i think that the SQN i import is the problem then

On 11/19/2012 01:00 PM, simtrace-request@lists.osmocom.org wrote:
Send simtrace mailing list submissions to
	simtrace@lists.osmocom.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.osmocom.org/mailman/listinfo/simtrace
or, via email, send a message with subject or body 'help' to
	simtrace-request@lists.osmocom.org

You can reach the person managing the list at
	simtrace-owner@lists.osmocom.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of simtrace digest..."


Today's Topics:

   1. Re: osmo-sim-auth (Harald Welte)
   2. Re: osmo-sim-auth (Stefanos Malliaros)
   3. Re: osmo-sim-auth (benoit michau)


----------------------------------------------------------------------

Message: 1
Date: Sun, 18 Nov 2012 12:08:33 +0100
From: Harald Welte <laforge@gnumonks.org>
To: Stefanos Malliaros <stefmalli89@gmail.com>
Cc: simtrace@lists.osmocom.org
Subject: Re: osmo-sim-auth
Message-ID: <20121118110832.GP8595@prithivi.gnumonks.org>
Content-Type: text/plain; charset=us-ascii

On Fri, Nov 16, 2012 at 01:08:18PM +0200, Stefanos Malliaros wrote:
/and i get as response the number 152 which in hex is 98.
98xx is a security related parameter.  Did you make sure to disable the
PIN?  osmo-sim-auth does not support cards with active PIN.