Lines Matching refs:total
131 size_t total = 0; in aead_ssl3_seal() local
175 total = len; in aead_ssl3_seal()
178 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, out + total, &len, mac, in aead_ssl3_seal()
182 total += len; in aead_ssl3_seal()
194 if (!EVP_EncryptUpdate(&ssl3_ctx->cipher_ctx, out + total, &len, padding, in aead_ssl3_seal()
198 total += len; in aead_ssl3_seal()
201 if (!EVP_EncryptFinal_ex(&ssl3_ctx->cipher_ctx, out + total, &len)) { in aead_ssl3_seal()
204 total += len; in aead_ssl3_seal()
206 *out_len = total; in aead_ssl3_seal()
253 size_t total = 0; in aead_ssl3_open() local
258 total += len; in aead_ssl3_open()
259 if (!EVP_DecryptFinal_ex(&ssl3_ctx->cipher_ctx, out + total, &len)) { in aead_ssl3_open()
262 total += len; in aead_ssl3_open()
263 assert(total == in_len); in aead_ssl3_open()
270 unsigned padding_length = out[total - 1]; in aead_ssl3_open()
271 if (total < padding_length + 1 + mac_len) { in aead_ssl3_open()
280 data_len = total - padding_length - 1 - mac_len; in aead_ssl3_open()
282 data_len = total - mac_len; in aead_ssl3_open()