src/com/makina/security/OpenFIPS201/OpenFIPS201.java
private void processPIV_GENERAL_AUTHENTICATE(APDU apdu) {

        byte[] buffer = apdu.getBuffer();
        short length = (short)(buffer[ISO7816.OFFSET_LC] & 0xFF);

        /*
         * PRE-CONDITIONS
         */

        // NONE

        /*
         * EXECUTION STEPS
         */

        // STEP 1 - Call the PIV GENERAL AUTHENTICATE method
        length = piv.generalAuthenticate(buffer, ISO7816.OFFSET_CDATA, length);

        // STEP 2 - Process the first frame of the chainBuffer for this response, if any
        if (length != 0) chainBuffer.processOutgoing(apdu);
    }
/**
     * Process the PIV 'GENERAL AUTHENTICATE' command
     *
     * @param apdu The incoming APDU object
     */
Process the PIV 'GENERAL AUTHENTICATE' command
@param apdu The incoming APDU object
Process the PIV ' GENERAL AUTHENTICATE ' command @param apdu The incoming APDU object
private void processPIV_GENERAL_AUTHENTICATE(APDU apdu) {
        byte[] buffer = apdu.getBuffer();
        short length = (short)(buffer[ISO7816.OFFSET_LC] & 0xFF);
        /*
         * PRE-CONDITIONS
         */
        /*
         * EXECUTION STEPS
         */
        length = piv.generalAuthenticate(buffer, ISO7816.OFFSET_CDATA, length);
        if (length != 0) chainBuffer.processOutgoing(apdu);
    }
private void processPIV_GENERAL_AUTHENTICATE ( APDU apdu ) { byte [ ] buffer = apdu . getBuffer ( ) ; short length = ( short ) ( buffer [ ISO7816 . OFFSET_LC ] & 0xFF ) ; /*
         * PRE-CONDITIONS
         */ /*
         * EXECUTION STEPS
         */ length = piv . generalAuthenticate ( buffer , ISO7816 . OFFSET_CDATA , length ) ; if ( length != 0 ) chainBuffer . processOutgoing ( apdu ) ; }
Process the PIV 'GENERAL AUTHENTICATE' command
 @param apdu The incoming APDU object
Process the PIV ' GENERAL AUTHENTICATE ' command @param apdu The incoming APDU object
// NONE // STEP 1 - Call the PIV GENERAL AUTHENTICATE method // STEP 2 - Process the first frame of the chainBuffer for this response, if any