1 # Written by Simon Josefsson <simon@yubico.com>.
2 # Copyright (c) 2008-2012 Yubico AB
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are
9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
12 # * Redistributions in binary form must reproduce the above
13 # copyright notice, this list of conditions and the following
14 # disclaimer in the documentation and/or other materials provided
15 # with the distribution.
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 yk_check_firmware_version;
55 ykp_AES_key_from_passphrase;
63 ykp_set_cfgflag_ALLOW_HIDTRIG;
64 ykp_set_cfgflag_MAN_UPDATE;
65 ykp_set_cfgflag_PACING_10MS;
66 ykp_set_cfgflag_PACING_20MS;
67 ykp_set_cfgflag_SEND_REF;
68 ykp_set_cfgflag_SHORT_TICKET;
69 ykp_set_cfgflag_STATIC_TICKET;
70 ykp_set_cfgflag_STRONG_PW1;
71 ykp_set_cfgflag_STRONG_PW2;
72 ykp_set_cfgflag_TICKET_FIRST;
73 ykp_set_cfgflag_OATH_HOTP8;
74 ykp_set_cfgflag_OATH_FIXED_MODHEX1;
75 ykp_set_cfgflag_OATH_FIXED_MODHEX2;
76 ykp_set_cfgflag_OATH_FIXED_MODHEX;
78 ykp_set_tktflag_APPEND_CR;
79 ykp_set_tktflag_APPEND_DELAY1;
80 ykp_set_tktflag_APPEND_DELAY2;
81 ykp_set_tktflag_APPEND_TAB1;
82 ykp_set_tktflag_APPEND_TAB2;
83 ykp_set_tktflag_PROTECT_CFG2;
84 ykp_set_tktflag_TAB_FIRST;
85 ykp_set_tktflag_OATH_HOTP;
101 ykp_HMAC_key_from_hex;
102 ykp_set_tktflag_CHAL_RESP;
103 ykp_set_cfgflag_CHAL_YUBICO;
104 ykp_set_cfgflag_CHAL_HMAC;
105 ykp_set_cfgflag_HMAC_LT64;
106 ykp_set_cfgflag_CHAL_BTN_TRIG;
107 ykp_set_extflag_SERIAL_BTN_VISIBLE;
108 ykp_set_extflag_SERIAL_USB_VISIBLE;
109 ykp_set_extflag_SERIAL_API_VISIBLE;
116 yk_wait_for_key_status;
117 yk_read_response_from_key;