OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Luciano da Silva Coelho (coelhoesec.com.br)
Date: Tue Jul 31 2001 - 12:04:44 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi Emiliano,

        Thanks by your tip.
        But, what I want to know is: The idea of Identities (AUT0, AUT1, etc)
    that exists en Cyberflex is also valid in the OCF context? Are there others
    cards that have the same concept the identities?
        For example, to download a Cardlet to my card I need before authenticate
    me with the card using for this, the AUT0 identity (In the CyberflexAccess
    is the Transport Key).

        Does anybody here use OCF to download applets to the CyberflexAccess?

        More one time thanks by the answers.
        [ ]´s
        Luciano da Silva Coelho
        coelhoesec.com.br
        Sun Certified Programmer for JAVA2
        Sun Certified Instructor for JAVA2
        Diretor de Tecnologia
        e-Sec Tecnologia em Segurança de Dados
        www.esec.com.br

    ----- Original Message -----
    From: "Emiliano Ida'" <idagalileo.iet.unipi.it>
    To: <sclinuxlinuxnet.com>
    Sent: Tuesday, July 31, 2001 5:07 AM
    Subject: Re: MUSCLE VerifyKey using OCF

    >
    > > Hi All,
    > >
    > > Does anybody here use Cyberflex Access cards with OCF?
    > >
    > > If so, could you help me with the doubt below?
    > >
    > > In the Cyberflex Access card we have the idea of identity such as
    AUT0,
    > > AUT1, etc. In OCF to verify a Card Holder we must use the
    sendVerifyCommand.
    > > Now what do I do to verify a identity using OCF?? In CyberflexAccess we
    have
    > > the VerifyKey command (00, 2A, 00, Key_NUMBER, Len, Key).
    >
    > Hi,
    > To do so, you can build a CardService containing these two functions:
    >
    >
    > private ResponseAPDU sendAPDU(byte apdu[]) throws CardTerminalException {
    > CommandAPDU commandAPDU = new CommandAPDU(apdu);
    > System.out.println(commandAPDU);
    > ResponseAPDU responseAPDU =
    getCardChannel().sendCommandAPDU(commandAPDU);
    > System.out.print("Status Word:" +
    Integer.toHexString(responseAPDU.sw())+"\n");
    > return (responseAPDU);
    > }
    >
    >
    > public void verifyKey() {
    > byte[] verapdu = file://a byte array containing (00, 2A, 00, Key_NUMBER,
    Len, Key)
    > ResponseAPDU resapdu;
    > try {
    > allocateCardChannel();
    > resapdu = sendAPDU(verapdu);
    >
    > } catch (Exception e) {e.printStackTrace();
    > } finally {releaseCardChannel();}
    > }
    >
    >
    > Hope this helps,
    > Emiliano Ida'
    > ***************************************************************
    > Linux Smart Card Developers - M.U.S.C.L.E.
    > (Movement for the Use of Smart Cards in a Linux Environment)
    > http://www.linuxnet.com/smartcard/index.html
    > ***************************************************************
    >

    ***************************************************************
    Linux Smart Card Developers - M.U.S.C.L.E.
    (Movement for the Use of Smart Cards in a Linux Environment)
    http://www.linuxnet.com/smartcard/index.html
    ***************************************************************