Lines Matching refs:outlen
61 int outlen, tmplen; in aes_wrap_encrypt() local
86 if (!EVP_EncryptUpdate(ctx, outbuf, &outlen, wrap_pt, sizeof(wrap_pt))) in aes_wrap_encrypt()
90 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aes_wrap_encrypt()
92 outlen += tmplen; in aes_wrap_encrypt()
95 printf("Ciphertext (outlen:%d):\n", outlen); in aes_wrap_encrypt()
96 BIO_dump_fp(stdout, outbuf, outlen); in aes_wrap_encrypt()
98 if (sizeof(wrap_ct) == outlen && !CRYPTO_memcmp(outbuf, wrap_ct, outlen)) in aes_wrap_encrypt()
119 int outlen, tmplen; in aes_wrap_decrypt() local
143 if (!EVP_DecryptUpdate(ctx, outbuf, &outlen, wrap_ct, sizeof(wrap_ct))) in aes_wrap_decrypt()
147 if (!EVP_DecryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aes_wrap_decrypt()
149 outlen += tmplen; in aes_wrap_decrypt()
152 printf("Plaintext (outlen:%d):\n", outlen); in aes_wrap_decrypt()
153 BIO_dump_fp(stdout, outbuf, outlen); in aes_wrap_decrypt()
155 if (sizeof(wrap_pt) == outlen && !CRYPTO_memcmp(outbuf, wrap_pt, outlen)) in aes_wrap_decrypt()