Lines Matching defs:blob

855 		/* Use the existing blob */
951 u_char *blob = NULL, *ret = NULL;
963 if ((r = to_blob(k, &blob, &blob_len, 1, SSHKEY_SERIALIZE_DEFAULT))
970 if ((r = ssh_digest_memory(dgst_alg, blob, blob_len,
983 if (blob != NULL)
984 freezero(blob, blob_len);
1277 struct sshbuf *blob;
1299 if ((blob = sshbuf_new()) == NULL)
1305 sshbuf_free(blob);
1308 if ((r = sshbuf_b64tod(blob, blobcopy)) != 0) {
1310 sshbuf_free(blob);
1314 if ((r = sshkey_fromb(blob, &k)) != 0) {
1315 sshbuf_free(blob);
1318 sshbuf_free(blob);
1324 /* ensure type of blob matches type at start of line */
1762 /* check size of shielded key blob */
1835 /* Copy the entire key blob for verification and later serialisation */
2029 sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp)
2034 if ((b = sshbuf_from(blob, blen)) == NULL)
2130 * Verifies that the signature algorithm appearing inside the signature blob
2800 sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob,
2901 sshbuf_reset(blob);
2904 if ((r = sshbuf_put(blob, MARK_BEGIN, MARK_BEGIN_LEN)) != 0 ||
2905 (r = sshbuf_dtob64(encoded, blob, 1)) != 0 ||
2906 (r = sshbuf_put(blob, MARK_END, MARK_END_LEN)) != 0)
2926 private2_uudecode(struct sshbuf *blob, struct sshbuf **decodedp)
2934 if (blob == NULL || decodedp == NULL)
2946 cp = sshbuf_ptr(blob);
2947 encoded_len = sshbuf_len(blob);
3062 /* check size of encrypted key blob */
3148 sshkey_parse_private2(struct sshbuf *blob, int type, const char *passphrase,
3162 if ((r = private2_uudecode(blob, &decoded)) != 0 ||
3208 sshkey_parse_private2_pubkey(struct sshbuf *blob, int type,
3219 if ((r = private2_uudecode(blob, &decoded)) != 0)
3270 struct sshbuf *blob;
3275 if ((blob = sshbuf_new()) == NULL)
3340 if ((r = sshbuf_put(blob, bptr, blen)) != 0)
3347 r = sshbuf_putb(buf, blob);
3350 sshbuf_free(blob);
3356 /* Serialise "key" to buffer "blob" */
3358 sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob,
3377 return sshkey_private_to_blob2(key, blob, passphrase,
3386 return sshkey_private_to_blob2(key, blob, passphrase,
3390 return sshkey_private_to_blob_pem_pkcs8(key, blob,
3460 sshkey_parse_private_pem_fileblob(struct sshbuf *blob, int type,
3473 if ((bio = BIO_new(BIO_s_mem())) == NULL || sshbuf_len(blob) > INT_MAX)
3475 if (BIO_write(bio, sshbuf_ptr(blob), sshbuf_len(blob)) !=
3476 (int)sshbuf_len(blob)) {
3612 sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type,
3625 return sshkey_parse_private2(blob, type, passphrase,
3628 r = sshkey_parse_private2(blob, type, passphrase, keyp,
3634 return sshkey_parse_private_pem_fileblob(blob, type,
3662 sshkey_parse_pubkey_from_private_fileblob_type(struct sshbuf *blob, int type,
3670 if ((r = sshkey_parse_private2_pubkey(blob, type, pubkeyp)) != 0)