Lines Matching full:blob
98 const struct blob *cred_id, char **pin, struct blob *key) in lookup_key()
147 warnx("%s: no associated blob key", __func__); in lookup_key()
166 const char *path, fido_dev_t *dev, char **pin, struct blob *key) in load_key()
168 struct blob cred_id; in load_key()
201 struct blob key, blob; in blob_set() local
207 memset(&blob, 0, sizeof(blob)); in blob_set()
209 if (read_file(blobf, &blob.ptr, &blob.len) < 0 || in blob_set()
212 if ((r = fido_dev_largeblob_set(dev, key.ptr, key.len, blob.ptr, in blob_set()
213 blob.len, pin)) != FIDO_OK && should_retry_with_pin(dev, r)) { in blob_set()
216 r = fido_dev_largeblob_set(dev, key.ptr, key.len, blob.ptr, in blob_set()
217 blob.len, pin); in blob_set()
227 freezero(blob.ptr, blob.len); in blob_set()
241 struct blob key, blob; in blob_get() local
247 memset(&blob, 0, sizeof(blob)); in blob_get()
251 if ((r = fido_dev_largeblob_get(dev, key.ptr, key.len, &blob.ptr, in blob_get()
252 &blob.len)) != FIDO_OK) { in blob_get()
256 if (write_file(blobf, blob.ptr, blob.len) < 0) in blob_get()
262 freezero(blob.ptr, blob.len); in blob_get()
276 struct blob key; in blob_delete()
308 try_decompress(const struct blob *in, uint64_t origsiz, int wbits) in try_decompress()
310 struct blob out; in try_decompress()
351 decompress(const struct blob *plaintext, uint64_t origsiz) in decompress()
359 decode(const struct blob *ciphertext, const struct blob *nonce, in decode()
365 struct blob plaintext; in decode()
417 try_rp(const fido_credman_rk_t *rk, const struct blob *ciphertext, in try_rp()
418 const struct blob *nonce, uint64_t origsiz) in try_rp()
431 decode_cbor_blob(struct blob *out, const cbor_item_t *item) in decode_cbor_blob()
446 decode_blob_entry(const cbor_item_t *item, struct blob *ciphertext, in decode_blob_entry()
447 struct blob *nonce, uint64_t *origsiz) in decode_blob_entry()
489 struct blob ciphertext, nonce; in print_blob_entry()