Lines Matching defs:keyfile
992 * If the remaining section of code didn't also check for secure keyfile
1000 die(gettext("open of keyfile (%s) failed"), pathname);
1003 die(gettext("fstat of keyfile (%s) failed"), pathname);
1007 die(gettext("insecure permissions on keyfile %s\n"),
1054 token_spec_t *token, const char *keyfile, mech_alias_t *cipher,
1108 * If no keyfile was given, then the token key is secret key to
1109 * be used for encryption/decryption. Otherwise, the keyfile
1113 if (keyfile == NULL) {
1163 * No keyfile means when token key is found, convert it to raw key,
1167 if (keyfile == NULL) {
1177 getkeyfromfile(keyfile, cipher, &rkey, &rksz);
1191 die(gettext("failed to unwrap key in keyfile %s,"
1192 " %s\n"), keyfile, pkcs11_strerror(rv));
1199 " key in keyfile %s, %s\n"), keyfile,
1206 warn(gettext("%s: invalid keysize: %d\n"), keyfile, (int)rksz);
1235 * -T tok:mfr:ser:lab -k keyfile
1236 * -c cipher -T tok:mfr:ser:lab -k keyfile
1237 * the given cipher or the default cipher apply to keyfile,
1887 const char *keyfile = NULL;
1950 keyfile = optarg;
1999 if (ephflag && (keyfile != NULL || token != NULL)) {
2000 die(gettext("ephemeral key cannot be used with keyfile"
2096 getkeyfromtoken(sess, token, keyfile, cipher,
2100 getkeyfromfile(keyfile, cipher, &rkey, &rksz);