Lines Matching refs:blob

855 	u_char *blob = NULL, *ret = NULL;  in sshkey_fingerprint_raw()  local
867 if ((r = to_blob(k, &blob, &blob_len, 1, SSHKEY_SERIALIZE_DEFAULT)) in sshkey_fingerprint_raw()
874 if ((r = ssh_digest_memory(dgst_alg, blob, blob_len, in sshkey_fingerprint_raw()
887 if (blob != NULL) in sshkey_fingerprint_raw()
888 freezero(blob, blob_len); in sshkey_fingerprint_raw()
1181 struct sshbuf *blob; in sshkey_read() local
1203 if ((blob = sshbuf_new()) == NULL) in sshkey_read()
1209 sshbuf_free(blob); in sshkey_read()
1212 if ((r = sshbuf_b64tod(blob, blobcopy)) != 0) { in sshkey_read()
1214 sshbuf_free(blob); in sshkey_read()
1218 if ((r = sshkey_fromb(blob, &k)) != 0) { in sshkey_read()
1219 sshbuf_free(blob); in sshkey_read()
1222 sshbuf_free(blob); in sshkey_read()
1964 sshkey_from_blob(const u_char *blob, size_t blen, struct sshkey **keyp) in sshkey_from_blob() argument
1969 if ((b = sshbuf_from(blob, blen)) == NULL) in sshkey_from_blob()
2748 sshkey_private_to_blob2(struct sshkey *prv, struct sshbuf *blob, in sshkey_private_to_blob2() argument
2849 sshbuf_reset(blob); in sshkey_private_to_blob2()
2852 if ((r = sshbuf_put(blob, MARK_BEGIN, MARK_BEGIN_LEN)) != 0 || in sshkey_private_to_blob2()
2853 (r = sshbuf_dtob64(encoded, blob, 1)) != 0 || in sshkey_private_to_blob2()
2854 (r = sshbuf_put(blob, MARK_END, MARK_END_LEN)) != 0) in sshkey_private_to_blob2()
2874 private2_uudecode(struct sshbuf *blob, struct sshbuf **decodedp) in private2_uudecode() argument
2882 if (blob == NULL || decodedp == NULL) in private2_uudecode()
2894 cp = sshbuf_ptr(blob); in private2_uudecode()
2895 encoded_len = sshbuf_len(blob); in private2_uudecode()
3096 sshkey_parse_private2(struct sshbuf *blob, int type, const char *passphrase, in sshkey_parse_private2() argument
3110 if ((r = private2_uudecode(blob, &decoded)) != 0 || in sshkey_parse_private2()
3156 sshkey_parse_private2_pubkey(struct sshbuf *blob, int type, in sshkey_parse_private2_pubkey() argument
3167 if ((r = private2_uudecode(blob, &decoded)) != 0) in sshkey_parse_private2_pubkey()
3218 struct sshbuf *blob; in sshkey_private_to_blob_pem_pkcs8() local
3223 if ((blob = sshbuf_new()) == NULL) in sshkey_private_to_blob_pem_pkcs8()
3284 if ((r = sshbuf_put(blob, bptr, blen)) != 0) in sshkey_private_to_blob_pem_pkcs8()
3291 r = sshbuf_putb(buf, blob); in sshkey_private_to_blob_pem_pkcs8()
3294 sshbuf_free(blob); in sshkey_private_to_blob_pem_pkcs8()
3302 sshkey_private_to_fileblob(struct sshkey *key, struct sshbuf *blob, in sshkey_private_to_fileblob() argument
3321 return sshkey_private_to_blob2(key, blob, passphrase, in sshkey_private_to_fileblob()
3330 return sshkey_private_to_blob2(key, blob, passphrase, in sshkey_private_to_fileblob()
3334 return sshkey_private_to_blob_pem_pkcs8(key, blob, in sshkey_private_to_fileblob()
3424 sshkey_parse_private_pem_fileblob(struct sshbuf *blob, int type, in sshkey_parse_private_pem_fileblob() argument
3435 if ((bio = BIO_new(BIO_s_mem())) == NULL || sshbuf_len(blob) > INT_MAX) in sshkey_parse_private_pem_fileblob()
3437 if (BIO_write(bio, sshbuf_ptr(blob), sshbuf_len(blob)) != in sshkey_parse_private_pem_fileblob()
3438 (int)sshbuf_len(blob)) { in sshkey_parse_private_pem_fileblob()
3566 sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type, in sshkey_parse_private_fileblob_type() argument
3579 return sshkey_parse_private2(blob, type, passphrase, in sshkey_parse_private_fileblob_type()
3582 r = sshkey_parse_private2(blob, type, passphrase, keyp, in sshkey_parse_private_fileblob_type()
3588 return sshkey_parse_private_pem_fileblob(blob, type, in sshkey_parse_private_fileblob_type()
3616 sshkey_parse_pubkey_from_private_fileblob_type(struct sshbuf *blob, int type, in sshkey_parse_pubkey_from_private_fileblob_type() argument
3624 if ((r = sshkey_parse_private2_pubkey(blob, type, pubkeyp)) != 0) in sshkey_parse_pubkey_from_private_fileblob_type()