crypto: convert xts_mult_x to use xts_uint128 type
commit7dac0dd67426753646df0c23c819609b9e704f59
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 9 Oct 2018 09:55:14 +0000 (9 10:55 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 24 Oct 2018 18:03:37 +0000 (24 19:03 +0100)
treefcc651ece50f8882c24eb5aeb6503f4f7a1dbe78
parentdb217c69f0849add67cfa2cd6601c329398be12c
crypto: convert xts_mult_x to use xts_uint128 type

Using 64-bit arithmetic increases the performance for xts-aes-128
when built with gcrypt:

  Encrypt: 355 MB/s -> 545 MB/s
  Decrypt: 362 MB/s -> 568 MB/s

Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/xts.c