Lines Matching refs:keyfile
996 * If the remaining section of code didn't also check for secure keyfile
1004 die(gettext("open of keyfile (%s) failed"), pathname);
1007 die(gettext("fstat of keyfile (%s) failed"), pathname);
1011 die(gettext("insecure permissions on keyfile %s\n"),
1058 token_spec_t *token, const char *keyfile, mech_alias_t *cipher,
1112 * If no keyfile was given, then the token key is secret key to
1113 * be used for encryption/decryption. Otherwise, the keyfile
1117 if (keyfile == NULL) {
1167 * No keyfile means when token key is found, convert it to raw key,
1171 if (keyfile == NULL) {
1181 getkeyfromfile(keyfile, cipher, &rkey, &rksz);
1195 die(gettext("failed to unwrap key in keyfile %s,"
1196 " %s\n"), keyfile, pkcs11_strerror(rv));
1203 " key in keyfile %s, %s\n"), keyfile,
1210 warn(gettext("%s: invalid keysize: %d\n"), keyfile, (int)rksz);
1239 * -T tok:mfr:ser:lab -k keyfile
1240 * -c cipher -T tok:mfr:ser:lab -k keyfile
1241 * the given cipher or the default cipher apply to keyfile,
1926 const char *keyfile = NULL;
1989 keyfile = optarg;
2038 if (ephflag && (keyfile != NULL || token != NULL)) {
2039 die(gettext("ephemeral key cannot be used with keyfile"
2136 getkeyfromtoken(sess, token, keyfile, cipher,
2140 getkeyfromfile(keyfile, cipher, &rkey, &rksz);