Lines Matching defs:key
1 /* opiepasswd.c: Add/change an OTP password in the key database.
17 Modified by cmetz for OPIE 2.4. Use struct opie_key for key blocks.
31 Use opiepasswd() to update key file. Error if we can't
32 write to the key file. Check for minimum seed length.
100 printf("OTP key is %d %s\n", opie.opie_n, opie.opie_seed);
102 struct opie_otpkey key;
104 if (!opieatob8(&key, opie.opie_val)) {
105 fprintf(stderr, "Error verifying key -- possible database corruption.\n");
108 printf("%s\n", opiebtoe(buf, &key));
200 fprintf(stderr, "Error: Can't update key database.\n");
203 fprintf(stderr, "Error reading key database\n");
328 fprintf(stderr, "Error updating key database.\n");
361 struct opie_otpkey key;
364 if (opiekeycrunch(MDX, &key, opie.opie_seed, passwd) != 0) {
365 fprintf(stderr, "%s: key crunch failed. Secret pass phrase unchanged\n", argv[0]);
371 opiehash(&key, MDX);
372 opiebtoe(tbuf, &key);
411 fprintf(stderr, "Error updating key database.\n");
434 fprintf(stderr, "Error updating key database.\n");