aes2501: Fix endianness of instogram

This commit is contained in:
Marco Trevisan (Treviño)
2026-07-02 02:14:37 +02:00
parent 141a63b0a4
commit 72188c0eb8
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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': {},