mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-09-10 13:00:08 +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)
|
if (threshold > 0x0f)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* FIXME endianness */
|
|
||||||
for (i = threshold; i < 16; i++)
|
for (i = threshold; i < 16; i++)
|
||||||
r += histogram[i];
|
r += GUINT16_FROM_LE (histogram[i]);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -119,7 +119,7 @@ drivers_info = {
|
|||||||
'aes1610': { 'helper': ['aeslib'] },
|
'aes1610': { 'helper': ['aeslib'] },
|
||||||
'aes1660': { 'helper': ['aeslib', 'aesx660'] },
|
'aes1660': { 'helper': ['aeslib', 'aesx660'] },
|
||||||
'aes2660': { 'helper': ['aeslib', 'aesx660'] },
|
'aes2660': { 'helper': ['aeslib', 'aesx660'] },
|
||||||
'aes2501': { 'helper': ['aeslib'], 'endian_dependent': true },
|
'aes2501': { 'helper': ['aeslib'] },
|
||||||
'aes2550': { 'helper': ['aeslib'] },
|
'aes2550': { 'helper': ['aeslib'] },
|
||||||
'vfs101': {},
|
'vfs101': {},
|
||||||
'vfs301': { 'endian_dependent': true },
|
'vfs301': { 'endian_dependent': true },
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ installed_tests_testdir = datadir / 'installed-tests' / versioned_libname
|
|||||||
installed_tests_libdir = libdir
|
installed_tests_libdir = libdir
|
||||||
|
|
||||||
drivers_tests = {
|
drivers_tests = {
|
||||||
'aes2501': {},
|
'aes2501': { 'timeout': 20 },
|
||||||
'aes3500': {},
|
'aes3500': {},
|
||||||
'elan': {},
|
'elan': {},
|
||||||
'elan-cobo': {},
|
'elan-cobo': {},
|
||||||
|
|||||||
Reference in New Issue
Block a user