Lines Matching refs:b

41     BIO *b, *mem;  in do_bio_cipher()  local
53 b = BIO_new(BIO_f_cipher()); in do_bio_cipher()
54 if (!TEST_ptr(b)) in do_bio_cipher()
56 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) in do_bio_cipher()
61 BIO_push(b, mem); in do_bio_cipher()
62 lref = BIO_read(b, ref, sizeof(ref)); in do_bio_cipher()
63 BIO_free_all(b); in do_bio_cipher()
67 b = BIO_new(BIO_f_cipher()); in do_bio_cipher()
68 if (!TEST_ptr(b)) in do_bio_cipher()
70 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) { in do_bio_cipher()
77 BIO_push(b, mem); in do_bio_cipher()
80 tmplen = BIO_read(b, out, i); in do_bio_cipher()
89 tmplen = BIO_read(b, out + len, sizeof(out) - len); in do_bio_cipher()
94 BIO_free_all(b); in do_bio_cipher()
106 b = BIO_new(BIO_f_cipher()); in do_bio_cipher()
107 if (!TEST_ptr(b)) in do_bio_cipher()
109 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, ENCRYPT))) { in do_bio_cipher()
116 BIO_push(b, mem); in do_bio_cipher()
118 for (len = 0; (delta = BIO_read(b, out + len, i)); ) { in do_bio_cipher()
121 BIO_free_all(b); in do_bio_cipher()
132 b = BIO_new(BIO_f_cipher()); in do_bio_cipher()
133 if (!TEST_ptr(b)) in do_bio_cipher()
135 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) in do_bio_cipher()
141 BIO_push(b, mem); in do_bio_cipher()
142 (void)BIO_flush(b); in do_bio_cipher()
144 len = BIO_read(b, out, sizeof(out)); in do_bio_cipher()
145 BIO_free_all(b); in do_bio_cipher()
152 b = BIO_new(BIO_f_cipher()); in do_bio_cipher()
153 if (!TEST_ptr(b)) in do_bio_cipher()
155 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) { in do_bio_cipher()
162 BIO_push(b, mem); in do_bio_cipher()
165 len = BIO_read(b, out, i); in do_bio_cipher()
171 len += BIO_read(b, out + len, sizeof(out) - len); in do_bio_cipher()
172 BIO_free_all(b); in do_bio_cipher()
184 b = BIO_new(BIO_f_cipher()); in do_bio_cipher()
185 if (!TEST_ptr(b)) in do_bio_cipher()
187 if (!TEST_true(BIO_set_cipher(b, cipher, key, iv, DECRYPT))) { in do_bio_cipher()
194 BIO_push(b, mem); in do_bio_cipher()
196 for (len = 0; (delta = BIO_read(b, out + len, i)); ) { in do_bio_cipher()
199 BIO_free_all(b); in do_bio_cipher()
210 BIO_free_all(b); in do_bio_cipher()