Lines Matching refs:encrypted
355 int encrypted;
373 ret->encrypted = 0;
422 if (!strcmp(p, "ENCRYPTED\n"))
423 ret->encrypted = 1;
467 if (ret->encrypted && ret->keyblob_len % 8 != 0) {
468 errmsg = "Encrypted key blob is not a multiple of cipher block size";
501 ret = key->encrypted;
529 if (key->encrypted) {
530 errmsg = "encrypted keys not supported currently";
930 fprintf(stderr, "Encrypted keys aren't supported currently\n");
987 * - string cipher-type (tells you if key is encrypted)
988 * - string encrypted-blob
995 * The encrypted blob, once decrypted, contains a single string
1076 0 != strcmp(buffer, "---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----\n")) {
1087 if (!strcmp(buffer, "---- END SSH2 ENCRYPTED PRIVATE KEY ----\n"))
1263 int encrypted;
1312 encrypted = 0;
1314 encrypted = 1;
1322 * Get hold of the encrypted part of the key.
1339 if (encrypted) {
1352 errmsg = "Encrypted part of key is not a multiple of cipher block"
1382 if (encrypted)
1586 pos += 4; /* encrypted-blob size */
1587 pos += 4; /* encrypted-payload size */
1595 /* Now wrap up the encrypted payload. */
1597 /* Pad encrypted blob to a multiple of cipher block size. */
1606 /* Wrap up the encrypted blob string. */
1655 fputs("---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----\n", fp);
1674 fputs("---- END SSH2 ENCRYPTED PRIVATE KEY ----\n", fp);