Lines Matching refs:encrypted
3056 struct sshbuf *encoded = NULL, *encrypted = NULL, *kdf = NULL; in sshkey_private_to_blob2() local
3078 (encrypted = sshbuf_new()) == NULL) { in sshkey_private_to_blob2()
3122 if ((r = sshbuf_put_u32(encrypted, check)) != 0 || in sshkey_private_to_blob2()
3123 (r = sshbuf_put_u32(encrypted, check)) != 0) in sshkey_private_to_blob2()
3127 if ((r = sshkey_private_serialize(prv, encrypted)) != 0 || in sshkey_private_to_blob2()
3128 (r = sshbuf_put_cstring(encrypted, comment)) != 0) in sshkey_private_to_blob2()
3133 while (sshbuf_len(encrypted) % blocksize) { in sshkey_private_to_blob2()
3134 if ((r = sshbuf_put_u8(encrypted, ++i & 0xff)) != 0) in sshkey_private_to_blob2()
3139 if ((r = sshbuf_put_u32(encoded, sshbuf_len(encrypted))) != 0) in sshkey_private_to_blob2()
3144 sshbuf_len(encrypted) + authlen, &cp)) != 0) in sshkey_private_to_blob2()
3147 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2()
3177 sshbuf_free(encrypted); in sshkey_private_to_blob2()
3419 struct sshbuf *buffer = NULL, *encrypted = NULL; in sshkey_private_rsa1_to_blob() local
3463 if ((encrypted = sshbuf_new()) == NULL) { in sshkey_private_rsa1_to_blob()
3469 if ((r = sshbuf_put(encrypted, LEGACY_BEGIN, in sshkey_private_rsa1_to_blob()
3474 if ((r = sshbuf_put_u8(encrypted, cipher_num)) != 0 || in sshkey_private_rsa1_to_blob()
3475 (r = sshbuf_put_u32(encrypted, 0)) != 0) in sshkey_private_rsa1_to_blob()
3479 if ((r = sshbuf_put_u32(encrypted, BN_num_bits(key->rsa->n))) != 0 || in sshkey_private_rsa1_to_blob()
3480 (r = sshbuf_put_bignum1(encrypted, key->rsa->n) != 0) || in sshkey_private_rsa1_to_blob()
3481 (r = sshbuf_put_bignum1(encrypted, key->rsa->e) != 0) || in sshkey_private_rsa1_to_blob()
3482 (r = sshbuf_put_cstring(encrypted, comment) != 0)) in sshkey_private_rsa1_to_blob()
3486 if ((r = sshbuf_reserve(encrypted, sshbuf_len(buffer), &cp)) != 0) in sshkey_private_rsa1_to_blob()
3498 r = sshbuf_putb(blob, encrypted); in sshkey_private_rsa1_to_blob()
3505 if (encrypted != NULL) in sshkey_private_rsa1_to_blob()
3506 sshbuf_free(encrypted); in sshkey_private_rsa1_to_blob()