HomeSort by: relevance | last modified time | path
    Searched defs:passphrase (Results 1 - 25 of 54) sorted by relevancy

1 2 3

  /src/crypto/external/bsd/netpgp/dist/src/librsa/
rsastubs.c 41 char *passphrase; local
45 snprintf(prompt, sizeof(prompt), "\"%s\" passphrase: ", (char *)u);
46 if ((passphrase = getpass(prompt)) == NULL) {
49 (void) memcpy(buf, passphrase, (size_t)size);
50 return (int)strlen(passphrase);
rsastubs.c 41 char *passphrase; local
45 snprintf(prompt, sizeof(prompt), "\"%s\" passphrase: ", (char *)u);
46 if ((passphrase = getpass(prompt)) == NULL) {
49 (void) memcpy(buf, passphrase, (size_t)size);
50 return (int)strlen(passphrase);
  /src/external/bsd/wpa/dist/wpa_supplicant/
wpa_passphrase.c 2 * WPA Supplicant - ASCII passphrase to WPA PSK tool
21 char *ssid, *passphrase, buf[64], *pos; local
25 printf("usage: wpa_passphrase <ssid> [passphrase]\n"
26 "\nIf passphrase is left out, it will be read from "
34 passphrase = argv[2];
38 fprintf(stderr, "# reading passphrase from stdin\n");
50 fprintf(stderr, "Failed to read passphrase\n");
67 passphrase = buf;
70 len = os_strlen(passphrase);
72 fprintf(stderr, "Passphrase must be 8..63 characters\n")
    [all...]
wpa_passphrase.c 2 * WPA Supplicant - ASCII passphrase to WPA PSK tool
21 char *ssid, *passphrase, buf[64], *pos; local
25 printf("usage: wpa_passphrase <ssid> [passphrase]\n"
26 "\nIf passphrase is left out, it will be read from "
34 passphrase = argv[2];
38 fprintf(stderr, "# reading passphrase from stdin\n");
50 fprintf(stderr, "Failed to read passphrase\n");
67 passphrase = buf;
70 len = os_strlen(passphrase);
72 fprintf(stderr, "Passphrase must be 8..63 characters\n")
    [all...]
  /src/crypto/external/bsd/heimdal/dist/lib/otp/
otptest.c 72 char *passphrase; member in struct:test
127 if(alg->init (key, t->passphrase, t->seed))
otptest.c 72 char *passphrase; member in struct:test
127 if(alg->init (key, t->passphrase, t->seed))
  /src/external/bsd/libarchive/dist/libarchive/
archive_read_add_passphrase.c 66 new_read_passphrase(struct archive_read *a, const char *passphrase)
76 p->passphrase = strdup(passphrase);
77 if (p->passphrase == NULL) {
87 archive_read_add_passphrase(struct archive *_a, const char *passphrase)
95 if (passphrase == NULL || passphrase[0] == '\0') {
97 "Empty passphrase is unacceptable");
101 p = new_read_passphrase(a, passphrase);
124 * Call this in advance when you start to get a passphrase for decryptio
141 const char *passphrase; local
    [all...]
archive_read_add_passphrase.c 66 new_read_passphrase(struct archive_read *a, const char *passphrase)
76 p->passphrase = strdup(passphrase);
77 if (p->passphrase == NULL) {
87 archive_read_add_passphrase(struct archive *_a, const char *passphrase)
95 if (passphrase == NULL || passphrase[0] == '\0') {
97 "Empty passphrase is unacceptable");
101 p = new_read_passphrase(a, passphrase);
124 * Call this in advance when you start to get a passphrase for decryptio
141 const char *passphrase; local
    [all...]
archive_write_private.h 128 * Encryption passphrase.
130 char *passphrase; member in struct:archive_write
161 * Get an encryption passphrase.
archive_write_private.h 128 * Encryption passphrase.
130 char *passphrase; member in struct:archive_write
161 * Get an encryption passphrase.
archive_read_private.h 146 char *passphrase; member in struct:archive_read_passphrase
218 * Decryption passphrase.
261 * Get a decryption passphrase.
archive_read_private.h 146 char *passphrase; member in struct:archive_read_passphrase
218 * Decryption passphrase.
261 * Get a decryption passphrase.
  /src/lib/libpam/modules/pam_ssh/
pam_ssh.c 80 static const char *pam_ssh_prompt = "SSH passphrase: ";
97 * directory, using the specified passphrase. If successful, returns a
101 pam_ssh_load_key(const char *dir, const char *kfn, const char *passphrase,
114 * If the key is unencrypted, OpenSSL ignores the passphrase, so
116 * a user to circumvent nullok by providing a dummy passphrase.
118 * with an empty passphrase, and if the key is not encrypted,
119 * accept only an empty passphrase.
122 if (r == 0 && !(*passphrase == '\0' && nullok)) {
129 r = sshkey_load_private(fn, passphrase, &key, &comment);
167 const char **kfn, *passphrase, *user local
    [all...]
pam_ssh.c 80 static const char *pam_ssh_prompt = "SSH passphrase: ";
97 * directory, using the specified passphrase. If successful, returns a
101 pam_ssh_load_key(const char *dir, const char *kfn, const char *passphrase,
114 * If the key is unencrypted, OpenSSL ignores the passphrase, so
116 * a user to circumvent nullok by providing a dummy passphrase.
118 * with an empty passphrase, and if the key is not encrypted,
119 * accept only an empty passphrase.
122 if (r == 0 && !(*passphrase == '\0' && nullok)) {
129 r = sshkey_load_private(fn, passphrase, &key, &comment);
167 const char **kfn, *passphrase, *user local
    [all...]
  /src/crypto/external/apache2/openssl/dist/test/
provider_pkey_test.c 436 const char *passphrase = FAKE_PASSPHRASE; local
439 UI_set_result(ui, uis, passphrase);
provider_pkey_test.c 436 const char *passphrase = FAKE_PASSPHRASE; local
439 UI_set_result(ui, uis, passphrase);
  /src/external/bsd/wpa/dist/src/ap/
ieee802_11_auth.c 417 char *passphrase; local
425 passphrase = radius_msg_get_tunnel_password(
429 * Passphrase is NULL iff there is no i-th Tunnel-Password
432 if (!passphrase)
445 * passphrase does not contain the NULL termination.
451 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) {
459 os_memcpy(psk->passphrase, passphrase,
470 os_free(passphrase);
ieee802_11_auth.c 417 char *passphrase; local
425 passphrase = radius_msg_get_tunnel_password(
429 * Passphrase is NULL iff there is no i-th Tunnel-Password
432 if (!passphrase)
445 * passphrase does not contain the NULL termination.
451 (hexstr2bin(passphrase, psk->psk, PMK_LEN) < 0)) {
459 os_memcpy(psk->passphrase, passphrase,
470 os_free(passphrase);
  /src/external/bsd/libarchive/dist/cpio/
cpio.h 56 const char *passphrase; member in struct:cpio
cpio.h 56 const char *passphrase; member in struct:cpio
  /src/crypto/external/bsd/netpgp/dist/src/lib/
crypto.h 248 char *passphrase; member in struct:pgp_cryptinfo_t
263 void *passfp; /* fp for passphrase input */
267 int numtries; /* # of passphrase attempts */
268 int gotpass; /* when passphrase entered */
crypto.h 248 char *passphrase; member in struct:pgp_cryptinfo_t
263 void *passfp; /* fp for passphrase input */
267 int numtries; /* # of passphrase attempts */
268 int gotpass; /* when passphrase entered */
keyring.c 225 char *passphrase; member in struct:__anon990
250 *content->skey_passphrase.passphrase = netpgp_strdup(pass);
257 /* Generally this means a bad passphrase */
258 fprintf(stderr, "Bad passphrase!\n");
304 *content->skey_passphrase.passphrase = netpgp_strdup("");
313 \brief Decrypts secret key from given keydata with given passphrase
315 \param passphrase Passphrase to use to decrypt secret key
325 /* XXX first try with an empty passphrase */
336 /* ask for a passphrase */
    [all...]
keyring.c 225 char *passphrase; member in struct:__anon990
250 *content->skey_passphrase.passphrase = netpgp_strdup(pass);
257 /* Generally this means a bad passphrase */
258 fprintf(stderr, "Bad passphrase!\n");
304 *content->skey_passphrase.passphrase = netpgp_strdup("");
313 \brief Decrypts secret key from given keydata with given passphrase
315 \param passphrase Passphrase to use to decrypt secret key
325 /* XXX first try with an empty passphrase */
336 /* ask for a passphrase */
    [all...]
netpgp.c 313 writekeyring(netpgp_t *netpgp, const char *name, pgp_keyring_t *keyring, uint8_t *passphrase)
319 if (!pgp_keyring_filewrite(keyring, noarmor, filename, passphrase)) {
752 /* get the passphrase from the user */
754 find_passphrase(FILE *passfp, const char *id, char *passphrase, size_t size, int attempts)
763 if (fgets(passphrase, (int)size, passfp) == NULL) {
766 return (int)strlen(passphrase);
769 (void) snprintf(prompt, sizeof(prompt), "Enter passphrase for %.16s: ", id);
774 (void) snprintf(prompt, sizeof(prompt), "Repeat passphrase for %.16s: ", id);
778 cc = snprintf(passphrase, size, "%s", cp);
779 if (strcmp(buf, passphrase) == 0)
1239 char passphrase[128]; local
    [all...]

Completed in 72 milliseconds

1 2 3