Lines Matching refs:iv_offset
508 int rc, iv_offset = 0; in tls_do_encryption() local
514 iv_offset = 1; in tls_do_encryption()
518 iv_offset = 1; in tls_do_encryption()
522 memcpy(&rec->iv_data[iv_offset], tls_ctx->tx.iv, in tls_do_encryption()
525 tls_xor_iv_with_seq(prot, rec->iv_data + iv_offset, in tls_do_encryption()
1459 int iv_offset = 0; in tls_decrypt_sg() local
1512 iv_offset = 1; in tls_decrypt_sg()
1516 iv_offset = 1; in tls_decrypt_sg()
1523 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, in tls_decrypt_sg()
1527 &dctx->iv[iv_offset] + prot->salt_size, in tls_decrypt_sg()
1531 memcpy(&dctx->iv[iv_offset], tls_ctx->rx.iv, prot->salt_size); in tls_decrypt_sg()
1533 tls_xor_iv_with_seq(prot, &dctx->iv[iv_offset], tls_ctx->rx.rec_seq); in tls_decrypt_sg()