mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-09 04:40:06 +00:00
aes2501: Fix endianness of instogram
This commit is contained in:
@@ -213,9 +213,8 @@ sum_histogram_values (unsigned char *data, guint8 threshold)
|
||||
if (threshold > 0x0f)
|
||||
return -1;
|
||||
|
||||
/* FIXME endianness */
|
||||
for (i = threshold; i < 16; i++)
|
||||
r += histogram[i];
|
||||
r += GUINT16_FROM_LE (histogram[i]);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ drivers_info = {
|
||||
'aes1610': { 'helper': ['aeslib'] },
|
||||
'aes1660': { 'helper': ['aeslib', 'aesx660'] },
|
||||
'aes2660': { 'helper': ['aeslib', 'aesx660'] },
|
||||
'aes2501': { 'helper': ['aeslib'], 'endian_dependent': true },
|
||||
'aes2501': { 'helper': ['aeslib'] },
|
||||
'aes2550': { 'helper': ['aeslib'] },
|
||||
'vfs101': {},
|
||||
'vfs301': { 'endian_dependent': true },
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ installed_tests_testdir = datadir / 'installed-tests' / versioned_libname
|
||||
installed_tests_libdir = libdir
|
||||
|
||||
drivers_tests = {
|
||||
'aes2501': {},
|
||||
'aes2501': { 'timeout': 20 },
|
||||
'aes3500': {},
|
||||
'elan': {},
|
||||
'elan-cobo': {},
|
||||
|
||||
Reference in New Issue
Block a user