Home | History | Annotate | Download | only in cipher

Lines Matching refs:in_len

255                       const uint8_t *in, int in_len) {
259 i = ctx->cipher->cipher(ctx, out, in, in_len);
268 if (in_len <= 0) {
270 return in_len == 0;
273 if (ctx->buf_len == 0 && (in_len & ctx->block_mask) == 0) {
274 if (ctx->cipher->cipher(ctx, out, in, in_len)) {
275 *out_len = in_len;
287 if (i + in_len < bl) {
288 memcpy(&ctx->buf[i], in, in_len);
289 ctx->buf_len += in_len;
298 in_len -= j;
307 i = in_len & ctx->block_mask;
308 in_len -= i;
309 if (in_len > 0) {
310 if (!ctx->cipher->cipher(ctx, out, in, in_len)) {
313 *out_len += in_len;
317 memcpy(ctx->buf, &in[in_len], i);
368 const uint8_t *in, int in_len) {
373 int r = ctx->cipher->cipher(ctx, out, in, in_len);
383 if (in_len <= 0) {
385 return in_len == 0;
389 return EVP_EncryptUpdate(ctx, out, out_len, in, in_len);
403 if (!EVP_EncryptUpdate(ctx, out, out_len, in, in_len)) {
484 size_t in_len) {
485 return ctx->cipher->cipher(ctx, out, in, in_len);
489 const uint8_t *in, int in_len) {
491 return EVP_EncryptUpdate(ctx, out, out_len, in, in_len);
493 return EVP_DecryptUpdate(ctx, out, out_len, in, in_len);