cac-aca.h 987 Bytes
Newer Older
Jakub Jelen's avatar
Jakub Jelen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * implement the ACA applet for the CAC card.
 *
 * Adaptation to GSC-IS 2.1:
 * https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir6887e2003.pdf
 *
 * Copyright 2018 Red Hat, Inc.
 *
 * Author: Jakub Jelen <jjelen@redhat.com>
 *
 * This code is licensed under the GNU LGPL, version 2.1 or later.
 * See the COPYING file in the top-level directory.
 */

#include "glib-compat.h"
#include "card_7816t.h"
#include "cac.h"

#include <string.h>

VCardResponse *
22
cac_aca_get_acr_response(VCard *card, int Le, unsigned char *acrid, int format);
Jakub Jelen's avatar
Jakub Jelen committed
23 24

VCardResponse *
25
cac_aca_get_applet_acr_response(VCard *card, int Le, unsigned int pki_applets,
Jakub Jelen's avatar
Jakub Jelen committed
26
                                unsigned char *aid, unsigned int aid_len,
27
                                unsigned char *coid, int format);
Jakub Jelen's avatar
Jakub Jelen committed
28
VCardResponse *
29
cac_aca_get_amp_response(VCard *card, int Le, int format);
Jakub Jelen's avatar
Jakub Jelen committed
30 31

VCardResponse *
32 33
cac_aca_get_service_response(VCard *card, int Le, unsigned int pki_applets,
                             int format);