]>
Commit | Line | Data |
---|---|---|
1 | /* $OpenBSD: scard.c,v 1.35 2006/08/03 03:34:42 deraadt Exp $ */ | |
2 | /* | |
3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms, with or without | |
6 | * modification, are permitted provided that the following conditions | |
7 | * are met: | |
8 | * 1. Redistributions of source code must retain the above copyright | |
9 | * notice, this list of conditions and the following disclaimer. | |
10 | * 2. Redistributions in binary form must reproduce the above copyright | |
11 | * notice, this list of conditions and the following disclaimer in the | |
12 | * documentation and/or other materials provided with the distribution. | |
13 | * | |
14 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
15 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
16 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
17 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
18 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
19 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
20 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
21 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
23 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | */ | |
25 | ||
26 | #include "includes.h" | |
27 | #if defined(SMARTCARD) && defined(USE_SECTOK) | |
28 | ||
29 | #include <sys/types.h> | |
30 | ||
31 | #include <sectok.h> | |
32 | #include <stdarg.h> | |
33 | #include <string.h> | |
34 | ||
35 | #include <openssl/evp.h> | |
36 | ||
37 | #include "xmalloc.h" | |
38 | #include "key.h" | |
39 | #include "log.h" | |
40 | #include "misc.h" | |
41 | #include "scard.h" | |
42 | ||
43 | #if OPENSSL_VERSION_NUMBER < 0x00907000L | |
44 | #define USE_ENGINE | |
45 | #define RSA_get_default_method RSA_get_default_openssl_method | |
46 | #else | |
47 | #endif | |
48 | ||
49 | #ifdef USE_ENGINE | |
50 | #include <openssl/engine.h> | |
51 | #define sc_get_rsa sc_get_engine | |
52 | #else | |
53 | #define sc_get_rsa sc_get_rsa_method | |
54 | #endif | |
55 | ||
56 | #define CLA_SSH 0x05 | |
57 | #define INS_DECRYPT 0x10 | |
58 | #define INS_GET_KEYLENGTH 0x20 | |
59 | #define INS_GET_PUBKEY 0x30 | |
60 | #define INS_GET_RESPONSE 0xc0 | |
61 | ||
62 | #define MAX_BUF_SIZE 256 | |
63 | ||
64 | u_char DEFAUT0[] = {0xad, 0x9f, 0x61, 0xfe, 0xfa, 0x20, 0xce, 0x63}; | |
65 | ||
66 | static int sc_fd = -1; | |
67 | static char *sc_reader_id = NULL; | |
68 | static char *sc_pin = NULL; | |
69 | static int cla = 0x00; /* class */ | |
70 | ||
71 | static void sc_mk_digest(const char *pin, u_char *digest); | |
72 | static int get_AUT0(u_char *aut0); | |
73 | static int try_AUT0(void); | |
74 | ||
75 | /* interface to libsectok */ | |
76 | ||
77 | static int | |
78 | sc_open(void) | |
79 | { | |
80 | int sw; | |
81 | ||
82 | if (sc_fd >= 0) | |
83 | return sc_fd; | |
84 | ||
85 | sc_fd = sectok_friendly_open(sc_reader_id, STONOWAIT, &sw); | |
86 | if (sc_fd < 0) { | |
87 | error("sectok_open failed: %s", sectok_get_sw(sw)); | |
88 | return SCARD_ERROR_FAIL; | |
89 | } | |
90 | if (! sectok_cardpresent(sc_fd)) { | |
91 | debug("smartcard in reader %s not present, skipping", | |
92 | sc_reader_id); | |
93 | sc_close(); | |
94 | return SCARD_ERROR_NOCARD; | |
95 | } | |
96 | if (sectok_reset(sc_fd, 0, NULL, &sw) <= 0) { | |
97 | error("sectok_reset failed: %s", sectok_get_sw(sw)); | |
98 | sc_fd = -1; | |
99 | return SCARD_ERROR_FAIL; | |
100 | } | |
101 | if ((cla = cyberflex_inq_class(sc_fd)) < 0) | |
102 | cla = 0; | |
103 | ||
104 | debug("sc_open ok %d", sc_fd); | |
105 | return sc_fd; | |
106 | } | |
107 | ||
108 | static int | |
109 | sc_enable_applet(void) | |
110 | { | |
111 | static u_char aid[] = {0xfc, 0x53, 0x73, 0x68, 0x2e, 0x62, 0x69, 0x6e}; | |
112 | int sw = 0; | |
113 | ||
114 | /* select applet id */ | |
115 | sectok_apdu(sc_fd, cla, 0xa4, 0x04, 0, sizeof aid, aid, 0, NULL, &sw); | |
116 | if (!sectok_swOK(sw)) { | |
117 | error("sectok_apdu failed: %s", sectok_get_sw(sw)); | |
118 | sc_close(); | |
119 | return -1; | |
120 | } | |
121 | return 0; | |
122 | } | |
123 | ||
124 | static int | |
125 | sc_init(void) | |
126 | { | |
127 | int status; | |
128 | ||
129 | status = sc_open(); | |
130 | if (status == SCARD_ERROR_NOCARD) { | |
131 | return SCARD_ERROR_NOCARD; | |
132 | } | |
133 | if (status < 0) { | |
134 | error("sc_open failed"); | |
135 | return status; | |
136 | } | |
137 | if (sc_enable_applet() < 0) { | |
138 | error("sc_enable_applet failed"); | |
139 | return SCARD_ERROR_APPLET; | |
140 | } | |
141 | return 0; | |
142 | } | |
143 | ||
144 | static int | |
145 | sc_read_pubkey(Key * k) | |
146 | { | |
147 | u_char buf[2], *n; | |
148 | char *p; | |
149 | int len, sw, status = -1; | |
150 | ||
151 | len = sw = 0; | |
152 | n = NULL; | |
153 | ||
154 | if (sc_fd < 0) { | |
155 | if (sc_init() < 0) | |
156 | goto err; | |
157 | } | |
158 | ||
159 | /* get key size */ | |
160 | sectok_apdu(sc_fd, CLA_SSH, INS_GET_KEYLENGTH, 0, 0, 0, NULL, | |
161 | sizeof(buf), buf, &sw); | |
162 | if (!sectok_swOK(sw)) { | |
163 | error("could not obtain key length: %s", sectok_get_sw(sw)); | |
164 | goto err; | |
165 | } | |
166 | len = (buf[0] << 8) | buf[1]; | |
167 | len /= 8; | |
168 | debug("INS_GET_KEYLENGTH: len %d sw %s", len, sectok_get_sw(sw)); | |
169 | ||
170 | n = xmalloc(len); | |
171 | /* get n */ | |
172 | sectok_apdu(sc_fd, CLA_SSH, INS_GET_PUBKEY, 0, 0, 0, NULL, len, n, &sw); | |
173 | ||
174 | if (sw == 0x6982) { | |
175 | if (try_AUT0() < 0) | |
176 | goto err; | |
177 | sectok_apdu(sc_fd, CLA_SSH, INS_GET_PUBKEY, 0, 0, 0, NULL, len, n, &sw); | |
178 | } | |
179 | if (!sectok_swOK(sw)) { | |
180 | error("could not obtain public key: %s", sectok_get_sw(sw)); | |
181 | goto err; | |
182 | } | |
183 | ||
184 | debug("INS_GET_KEYLENGTH: sw %s", sectok_get_sw(sw)); | |
185 | ||
186 | if (BN_bin2bn(n, len, k->rsa->n) == NULL) { | |
187 | error("c_read_pubkey: BN_bin2bn failed"); | |
188 | goto err; | |
189 | } | |
190 | ||
191 | /* currently the java applet just stores 'n' */ | |
192 | if (!BN_set_word(k->rsa->e, 35)) { | |
193 | error("c_read_pubkey: BN_set_word(e, 35) failed"); | |
194 | goto err; | |
195 | } | |
196 | ||
197 | status = 0; | |
198 | p = key_fingerprint(k, SSH_FP_MD5, SSH_FP_HEX); | |
199 | debug("fingerprint %u %s", key_size(k), p); | |
200 | xfree(p); | |
201 | ||
202 | err: | |
203 | if (n != NULL) | |
204 | xfree(n); | |
205 | sc_close(); | |
206 | return status; | |
207 | } | |
208 | ||
209 | /* private key operations */ | |
210 | ||
211 | static int | |
212 | sc_private_decrypt(int flen, u_char *from, u_char *to, RSA *rsa, | |
213 | int padding) | |
214 | { | |
215 | u_char *padded = NULL; | |
216 | int sw, len, olen, status = -1; | |
217 | ||
218 | debug("sc_private_decrypt called"); | |
219 | ||
220 | olen = len = sw = 0; | |
221 | if (sc_fd < 0) { | |
222 | status = sc_init(); | |
223 | if (status < 0) | |
224 | goto err; | |
225 | } | |
226 | if (padding != RSA_PKCS1_PADDING) | |
227 | goto err; | |
228 | ||
229 | len = BN_num_bytes(rsa->n); | |
230 | padded = xmalloc(len); | |
231 | ||
232 | sectok_apdu(sc_fd, CLA_SSH, INS_DECRYPT, 0, 0, len, from, len, padded, &sw); | |
233 | ||
234 | if (sw == 0x6982) { | |
235 | if (try_AUT0() < 0) | |
236 | goto err; | |
237 | sectok_apdu(sc_fd, CLA_SSH, INS_DECRYPT, 0, 0, len, from, len, padded, &sw); | |
238 | } | |
239 | if (!sectok_swOK(sw)) { | |
240 | error("sc_private_decrypt: INS_DECRYPT failed: %s", | |
241 | sectok_get_sw(sw)); | |
242 | goto err; | |
243 | } | |
244 | olen = RSA_padding_check_PKCS1_type_2(to, len, padded + 1, len - 1, | |
245 | len); | |
246 | err: | |
247 | if (padded) | |
248 | xfree(padded); | |
249 | sc_close(); | |
250 | return (olen >= 0 ? olen : status); | |
251 | } | |
252 | ||
253 | static int | |
254 | sc_private_encrypt(int flen, u_char *from, u_char *to, RSA *rsa, | |
255 | int padding) | |
256 | { | |
257 | u_char *padded = NULL; | |
258 | int sw, len, status = -1; | |
259 | ||
260 | len = sw = 0; | |
261 | if (sc_fd < 0) { | |
262 | status = sc_init(); | |
263 | if (status < 0) | |
264 | goto err; | |
265 | } | |
266 | if (padding != RSA_PKCS1_PADDING) | |
267 | goto err; | |
268 | ||
269 | debug("sc_private_encrypt called"); | |
270 | len = BN_num_bytes(rsa->n); | |
271 | padded = xmalloc(len); | |
272 | ||
273 | if (RSA_padding_add_PKCS1_type_1(padded, len, (u_char *)from, flen) <= 0) { | |
274 | error("RSA_padding_add_PKCS1_type_1 failed"); | |
275 | goto err; | |
276 | } | |
277 | sectok_apdu(sc_fd, CLA_SSH, INS_DECRYPT, 0, 0, len, padded, len, to, &sw); | |
278 | if (sw == 0x6982) { | |
279 | if (try_AUT0() < 0) | |
280 | goto err; | |
281 | sectok_apdu(sc_fd, CLA_SSH, INS_DECRYPT, 0, 0, len, padded, len, to, &sw); | |
282 | } | |
283 | if (!sectok_swOK(sw)) { | |
284 | error("sc_private_encrypt: INS_DECRYPT failed: %s", | |
285 | sectok_get_sw(sw)); | |
286 | goto err; | |
287 | } | |
288 | err: | |
289 | if (padded) | |
290 | xfree(padded); | |
291 | sc_close(); | |
292 | return (len >= 0 ? len : status); | |
293 | } | |
294 | ||
295 | /* called on free */ | |
296 | ||
297 | static int (*orig_finish)(RSA *rsa) = NULL; | |
298 | ||
299 | static int | |
300 | sc_finish(RSA *rsa) | |
301 | { | |
302 | if (orig_finish) | |
303 | orig_finish(rsa); | |
304 | sc_close(); | |
305 | return 1; | |
306 | } | |
307 | ||
308 | /* engine for overloading private key operations */ | |
309 | ||
310 | static RSA_METHOD * | |
311 | sc_get_rsa_method(void) | |
312 | { | |
313 | static RSA_METHOD smart_rsa; | |
314 | const RSA_METHOD *def = RSA_get_default_method(); | |
315 | ||
316 | /* use the OpenSSL version */ | |
317 | memcpy(&smart_rsa, def, sizeof(smart_rsa)); | |
318 | ||
319 | smart_rsa.name = "sectok"; | |
320 | ||
321 | /* overload */ | |
322 | smart_rsa.rsa_priv_enc = sc_private_encrypt; | |
323 | smart_rsa.rsa_priv_dec = sc_private_decrypt; | |
324 | ||
325 | /* save original */ | |
326 | orig_finish = def->finish; | |
327 | smart_rsa.finish = sc_finish; | |
328 | ||
329 | return &smart_rsa; | |
330 | } | |
331 | ||
332 | #ifdef USE_ENGINE | |
333 | static ENGINE * | |
334 | sc_get_engine(void) | |
335 | { | |
336 | static ENGINE *smart_engine = NULL; | |
337 | ||
338 | if ((smart_engine = ENGINE_new()) == NULL) | |
339 | fatal("ENGINE_new failed"); | |
340 | ||
341 | ENGINE_set_id(smart_engine, "sectok"); | |
342 | ENGINE_set_name(smart_engine, "libsectok"); | |
343 | ||
344 | ENGINE_set_RSA(smart_engine, sc_get_rsa_method()); | |
345 | ENGINE_set_DSA(smart_engine, DSA_get_default_openssl_method()); | |
346 | ENGINE_set_DH(smart_engine, DH_get_default_openssl_method()); | |
347 | ENGINE_set_RAND(smart_engine, RAND_SSLeay()); | |
348 | ENGINE_set_BN_mod_exp(smart_engine, BN_mod_exp); | |
349 | ||
350 | return smart_engine; | |
351 | } | |
352 | #endif | |
353 | ||
354 | void | |
355 | sc_close(void) | |
356 | { | |
357 | if (sc_fd >= 0) { | |
358 | sectok_close(sc_fd); | |
359 | sc_fd = -1; | |
360 | } | |
361 | } | |
362 | ||
363 | Key ** | |
364 | sc_get_keys(const char *id, const char *pin) | |
365 | { | |
366 | Key *k, *n, **keys; | |
367 | int status, nkeys = 2; | |
368 | ||
369 | if (sc_reader_id != NULL) | |
370 | xfree(sc_reader_id); | |
371 | sc_reader_id = xstrdup(id); | |
372 | ||
373 | if (sc_pin != NULL) | |
374 | xfree(sc_pin); | |
375 | sc_pin = (pin == NULL) ? NULL : xstrdup(pin); | |
376 | ||
377 | k = key_new(KEY_RSA); | |
378 | if (k == NULL) { | |
379 | return NULL; | |
380 | } | |
381 | status = sc_read_pubkey(k); | |
382 | if (status == SCARD_ERROR_NOCARD) { | |
383 | key_free(k); | |
384 | return NULL; | |
385 | } | |
386 | if (status < 0) { | |
387 | error("sc_read_pubkey failed"); | |
388 | key_free(k); | |
389 | return NULL; | |
390 | } | |
391 | keys = xcalloc((nkeys+1), sizeof(Key *)); | |
392 | ||
393 | n = key_new(KEY_RSA1); | |
394 | BN_copy(n->rsa->n, k->rsa->n); | |
395 | BN_copy(n->rsa->e, k->rsa->e); | |
396 | RSA_set_method(n->rsa, sc_get_rsa()); | |
397 | n->flags |= KEY_FLAG_EXT; | |
398 | keys[0] = n; | |
399 | ||
400 | n = key_new(KEY_RSA); | |
401 | BN_copy(n->rsa->n, k->rsa->n); | |
402 | BN_copy(n->rsa->e, k->rsa->e); | |
403 | RSA_set_method(n->rsa, sc_get_rsa()); | |
404 | n->flags |= KEY_FLAG_EXT; | |
405 | keys[1] = n; | |
406 | ||
407 | keys[2] = NULL; | |
408 | ||
409 | key_free(k); | |
410 | return keys; | |
411 | } | |
412 | ||
413 | #define NUM_RSA_KEY_ELEMENTS 5+1 | |
414 | #define COPY_RSA_KEY(x, i) \ | |
415 | do { \ | |
416 | len = BN_num_bytes(prv->rsa->x); \ | |
417 | elements[i] = xmalloc(len); \ | |
418 | debug("#bytes %d", len); \ | |
419 | if (BN_bn2bin(prv->rsa->x, elements[i]) < 0) \ | |
420 | goto done; \ | |
421 | } while (0) | |
422 | ||
423 | static void | |
424 | sc_mk_digest(const char *pin, u_char *digest) | |
425 | { | |
426 | const EVP_MD *evp_md = EVP_sha1(); | |
427 | EVP_MD_CTX md; | |
428 | ||
429 | EVP_DigestInit(&md, evp_md); | |
430 | EVP_DigestUpdate(&md, pin, strlen(pin)); | |
431 | EVP_DigestFinal(&md, digest, NULL); | |
432 | } | |
433 | ||
434 | static int | |
435 | get_AUT0(u_char *aut0) | |
436 | { | |
437 | char *pass; | |
438 | ||
439 | pass = read_passphrase("Enter passphrase for smartcard: ", RP_ALLOW_STDIN); | |
440 | if (pass == NULL) | |
441 | return -1; | |
442 | if (!strcmp(pass, "-")) { | |
443 | memcpy(aut0, DEFAUT0, sizeof DEFAUT0); | |
444 | return 0; | |
445 | } | |
446 | sc_mk_digest(pass, aut0); | |
447 | memset(pass, 0, strlen(pass)); | |
448 | xfree(pass); | |
449 | return 0; | |
450 | } | |
451 | ||
452 | static int | |
453 | try_AUT0(void) | |
454 | { | |
455 | u_char aut0[EVP_MAX_MD_SIZE]; | |
456 | ||
457 | /* permission denied; try PIN if provided */ | |
458 | if (sc_pin && strlen(sc_pin) > 0) { | |
459 | sc_mk_digest(sc_pin, aut0); | |
460 | if (cyberflex_verify_AUT0(sc_fd, cla, aut0, 8) < 0) { | |
461 | error("smartcard passphrase incorrect"); | |
462 | return (-1); | |
463 | } | |
464 | } else { | |
465 | /* try default AUT0 key */ | |
466 | if (cyberflex_verify_AUT0(sc_fd, cla, DEFAUT0, 8) < 0) { | |
467 | /* default AUT0 key failed; prompt for passphrase */ | |
468 | if (get_AUT0(aut0) < 0 || | |
469 | cyberflex_verify_AUT0(sc_fd, cla, aut0, 8) < 0) { | |
470 | error("smartcard passphrase incorrect"); | |
471 | return (-1); | |
472 | } | |
473 | } | |
474 | } | |
475 | return (0); | |
476 | } | |
477 | ||
478 | int | |
479 | sc_put_key(Key *prv, const char *id) | |
480 | { | |
481 | u_char *elements[NUM_RSA_KEY_ELEMENTS]; | |
482 | u_char key_fid[2]; | |
483 | u_char AUT0[EVP_MAX_MD_SIZE]; | |
484 | int len, status = -1, i, fd = -1, ret; | |
485 | int sw = 0, cla = 0x00; | |
486 | ||
487 | for (i = 0; i < NUM_RSA_KEY_ELEMENTS; i++) | |
488 | elements[i] = NULL; | |
489 | ||
490 | COPY_RSA_KEY(q, 0); | |
491 | COPY_RSA_KEY(p, 1); | |
492 | COPY_RSA_KEY(iqmp, 2); | |
493 | COPY_RSA_KEY(dmq1, 3); | |
494 | COPY_RSA_KEY(dmp1, 4); | |
495 | COPY_RSA_KEY(n, 5); | |
496 | len = BN_num_bytes(prv->rsa->n); | |
497 | fd = sectok_friendly_open(id, STONOWAIT, &sw); | |
498 | if (fd < 0) { | |
499 | error("sectok_open failed: %s", sectok_get_sw(sw)); | |
500 | goto done; | |
501 | } | |
502 | if (! sectok_cardpresent(fd)) { | |
503 | error("smartcard in reader %s not present", id); | |
504 | goto done; | |
505 | } | |
506 | ret = sectok_reset(fd, 0, NULL, &sw); | |
507 | if (ret <= 0) { | |
508 | error("sectok_reset failed: %s", sectok_get_sw(sw)); | |
509 | goto done; | |
510 | } | |
511 | if ((cla = cyberflex_inq_class(fd)) < 0) { | |
512 | error("cyberflex_inq_class failed"); | |
513 | goto done; | |
514 | } | |
515 | memcpy(AUT0, DEFAUT0, sizeof(DEFAUT0)); | |
516 | if (cyberflex_verify_AUT0(fd, cla, AUT0, sizeof(DEFAUT0)) < 0) { | |
517 | if (get_AUT0(AUT0) < 0 || | |
518 | cyberflex_verify_AUT0(fd, cla, AUT0, sizeof(DEFAUT0)) < 0) { | |
519 | memset(AUT0, 0, sizeof(DEFAUT0)); | |
520 | error("smartcard passphrase incorrect"); | |
521 | goto done; | |
522 | } | |
523 | } | |
524 | memset(AUT0, 0, sizeof(DEFAUT0)); | |
525 | key_fid[0] = 0x00; | |
526 | key_fid[1] = 0x12; | |
527 | if (cyberflex_load_rsa_priv(fd, cla, key_fid, 5, 8*len, elements, | |
528 | &sw) < 0) { | |
529 | error("cyberflex_load_rsa_priv failed: %s", sectok_get_sw(sw)); | |
530 | goto done; | |
531 | } | |
532 | if (!sectok_swOK(sw)) | |
533 | goto done; | |
534 | logit("cyberflex_load_rsa_priv done"); | |
535 | key_fid[0] = 0x73; | |
536 | key_fid[1] = 0x68; | |
537 | if (cyberflex_load_rsa_pub(fd, cla, key_fid, len, elements[5], | |
538 | &sw) < 0) { | |
539 | error("cyberflex_load_rsa_pub failed: %s", sectok_get_sw(sw)); | |
540 | goto done; | |
541 | } | |
542 | if (!sectok_swOK(sw)) | |
543 | goto done; | |
544 | logit("cyberflex_load_rsa_pub done"); | |
545 | status = 0; | |
546 | ||
547 | done: | |
548 | memset(elements[0], '\0', BN_num_bytes(prv->rsa->q)); | |
549 | memset(elements[1], '\0', BN_num_bytes(prv->rsa->p)); | |
550 | memset(elements[2], '\0', BN_num_bytes(prv->rsa->iqmp)); | |
551 | memset(elements[3], '\0', BN_num_bytes(prv->rsa->dmq1)); | |
552 | memset(elements[4], '\0', BN_num_bytes(prv->rsa->dmp1)); | |
553 | memset(elements[5], '\0', BN_num_bytes(prv->rsa->n)); | |
554 | ||
555 | for (i = 0; i < NUM_RSA_KEY_ELEMENTS; i++) | |
556 | if (elements[i]) | |
557 | xfree(elements[i]); | |
558 | if (fd != -1) | |
559 | sectok_close(fd); | |
560 | return (status); | |
561 | } | |
562 | ||
563 | char * | |
564 | sc_get_key_label(Key *key) | |
565 | { | |
566 | return xstrdup("smartcard key"); | |
567 | } | |
568 | ||
569 | #endif /* SMARTCARD && USE_SECTOK */ |