Lines Matching refs:out_pos
91 uint8_t* out_pos = out_tmp.get(); in AES_gcm_encrypt() local
94 EVP_EncryptUpdate(ctx.get(), out_pos, &out_len, in, len); in AES_gcm_encrypt()
95 out_pos += out_len; in AES_gcm_encrypt()
96 EVP_EncryptFinal_ex(ctx.get(), out_pos, &out_len); in AES_gcm_encrypt()
97 out_pos += out_len; in AES_gcm_encrypt()
98 if (out_pos - out_tmp.get() != static_cast<ssize_t>(len)) { in AES_gcm_encrypt()
100 out_pos - out_tmp.get()); in AES_gcm_encrypt()
104 std::copy(out_tmp.get(), out_pos, out); in AES_gcm_encrypt()
130 uint8_t* out_pos = out_tmp.get(); in AES_gcm_decrypt() local
133 EVP_DecryptUpdate(ctx.get(), out_pos, &out_len, in, len); in AES_gcm_decrypt()
134 out_pos += out_len; in AES_gcm_decrypt()
135 if (!EVP_DecryptFinal_ex(ctx.get(), out_pos, &out_len)) { in AES_gcm_decrypt()
139 out_pos += out_len; in AES_gcm_decrypt()
140 if (out_pos - out_tmp.get() != static_cast<ssize_t>(len)) { in AES_gcm_decrypt()
142 out_pos - out_tmp.get()); in AES_gcm_decrypt()
146 std::copy(out_tmp.get(), out_pos, out); in AES_gcm_decrypt()