diff options
| author | Leonidas Da Silva Barbosa <[email protected]> | 2015-08-14 13:14:16 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2015-08-18 02:30:36 +0000 |
| commit | 3c5f0ed78e976be705218cad62acf6a68e9d121e (patch) | |
| tree | c6095373c863c1da23a2b316bbb8bfa7daf3b02a /lib/mpi/mpicoder.c | |
| parent | crypto: vmx - Fixing AES-CTR counter bug (diff) | |
| download | kernel-3c5f0ed78e976be705218cad62acf6a68e9d121e.tar.gz kernel-3c5f0ed78e976be705218cad62acf6a68e9d121e.zip | |
crypto: vmx - Fixing GHASH Key issue on little endian
GHASH table algorithm is using a big endian key.
In little endian machines key will be LE ordered.
After a lxvd2x instruction key is loaded as it is,
LE/BE order, in first case it'll generate a wrong
table resulting in wrong hashes from the algorithm.
Bug affects only LE machines.
In order to fix it we do a swap for loaded key.
Cc: [email protected]
Signed-off-by: Leonidas S Barbosa <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
