Lines Matching refs:ciphertext
359 decode(const struct blob *ciphertext, const struct blob *nonce, in decode() argument
377 if (ciphertext->len > UINT_MAX || in decode()
378 ciphertext->len > SIZE_MAX - 16 || in decode()
379 ciphertext->len < 16) in decode()
381 plaintext.len = ciphertext->len - 16; in decode()
390 ciphertext->ptr + ciphertext->len - 16) == 0) in decode()
399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr, in decode()
417 try_rp(const fido_credman_rk_t *rk, const struct blob *ciphertext, in try_rp() argument
424 decode(ciphertext, nonce, origsiz, cred) == 0) in try_rp()
446 decode_blob_entry(const cbor_item_t *item, struct blob *ciphertext, in decode_blob_entry() argument
466 if (decode_cbor_blob(ciphertext, v[i].value) < 0) in decode_blob_entry()
480 if (ciphertext->ptr == NULL || nonce->ptr == NULL || *origsiz == 0) in decode_blob_entry()
489 struct blob ciphertext, nonce; in print_blob_entry() local
495 memset(&ciphertext, 0, sizeof(ciphertext)); in print_blob_entry()
498 if (decode_blob_entry(item, &ciphertext, &nonce, &origsiz) < 0) { in print_blob_entry()
503 if ((cred = try_rp(map->rk[i], &ciphertext, &nonce, in print_blob_entry()
524 printf("%02zu: %4zu %4zu %s %s\n", idx, ciphertext.len, in print_blob_entry()
527 free(ciphertext.ptr); in print_blob_entry()