Lines Matching defs:out
45 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
241 static int from_hex(uint8_t *out, char in) {
243 *out = in - '0';
247 *out = in - 'a' + 10;
251 *out = in - 'A' + 10;
258 static int decode_hex(uint8_t **out, size_t *out_len, const char *in,
264 *out = NULL;
292 *out = buf;
305 *nonce = NULL, *ciphertext = NULL, *tag = NULL, *out = NULL;
319 goto out;
325 goto out;
330 goto out;
335 goto out;
338 out = OPENSSL_malloc(plaintext_len);
339 if (out == NULL) {
340 goto out;
344 goto out;
349 memset(out, 0, plaintext_len);
354 CRYPTO_gcm128_encrypt(&ctx, &aes_key, plaintext, out, plaintext_len);
357 (ciphertext && memcmp(out, ciphertext, plaintext_len) != 0)) {
359 hexdump(stderr, "got :", out, plaintext_len);
361 goto out;
365 memset(out, 0, plaintext_len);
370 CRYPTO_gcm128_decrypt(&ctx, &aes_key, ciphertext, out, plaintext_len);
374 goto out;
376 if (plaintext && memcmp(out, plaintext, plaintext_len)) {
378 goto out;
383 out:
390 OPENSSL_free(out);