2026-05-02 11:24 ftp://ftp.de.debian.org/debian/pool/main/h/haskell-cipher-aes128/haskell-cipher-aes128_0.7.0.6.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 23 23 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: cipher-aes128-0.7.0.6/cbits/block128.h:80:10: style: Condition '++v==0' is always false [knownConditionTrueFalse] cipher-aes128-0.7.0.6/cbits/aes.c:239:31: warning: Function 'tmd_aes_initkey' argument order different: declaration 'ctx, key, size' definition 'key, origkey, size' [funcArgOrderDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:69:31: note: Function 'tmd_aes_initkey' argument order different: declaration 'ctx, key, size' definition 'key, origkey, size' cipher-aes128-0.7.0.6/cbits/aes.c:239:31: note: Function 'tmd_aes_initkey' argument order different: declaration 'ctx, key, size' definition 'key, origkey, size' cipher-aes128-0.7.0.6/cbits/aes.c:295:60: style:inconclusive: Function 'tmd_aes_encrypt_xts' argument 2 names different: declaration 'key' definition 'k1'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:83:60: note: Function 'tmd_aes_encrypt_xts' argument 2 names different: declaration 'key' definition 'k1'. cipher-aes128-0.7.0.6/cbits/aes.c:295:60: note: Function 'tmd_aes_encrypt_xts' argument 2 names different: declaration 'key' definition 'k1'. cipher-aes128-0.7.0.6/cbits/aes.c:295:73: style:inconclusive: Function 'tmd_aes_encrypt_xts' argument 3 names different: declaration 'key2' definition 'k2'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:83:74: note: Function 'tmd_aes_encrypt_xts' argument 3 names different: declaration 'key2' definition 'k2'. cipher-aes128-0.7.0.6/cbits/aes.c:295:73: note: Function 'tmd_aes_encrypt_xts' argument 3 names different: declaration 'key2' definition 'k2'. cipher-aes128-0.7.0.6/cbits/aes.c:295:88: style:inconclusive: Function 'tmd_aes_encrypt_xts' argument 4 names different: declaration 'sector' definition 'dataunit'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:83:91: note: Function 'tmd_aes_encrypt_xts' argument 4 names different: declaration 'sector' definition 'dataunit'. cipher-aes128-0.7.0.6/cbits/aes.c:295:88: note: Function 'tmd_aes_encrypt_xts' argument 4 names different: declaration 'sector' definition 'dataunit'. cipher-aes128-0.7.0.6/cbits/aes.c:302:60: style:inconclusive: Function 'tmd_aes_decrypt_xts' argument 2 names different: declaration 'key' definition 'k1'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:85:60: note: Function 'tmd_aes_decrypt_xts' argument 2 names different: declaration 'key' definition 'k1'. cipher-aes128-0.7.0.6/cbits/aes.c:302:60: note: Function 'tmd_aes_decrypt_xts' argument 2 names different: declaration 'key' definition 'k1'. cipher-aes128-0.7.0.6/cbits/aes.c:302:73: style:inconclusive: Function 'tmd_aes_decrypt_xts' argument 3 names different: declaration 'key2' definition 'k2'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:85:74: note: Function 'tmd_aes_decrypt_xts' argument 3 names different: declaration 'key2' definition 'k2'. cipher-aes128-0.7.0.6/cbits/aes.c:302:73: note: Function 'tmd_aes_decrypt_xts' argument 3 names different: declaration 'key2' definition 'k2'. cipher-aes128-0.7.0.6/cbits/aes.c:302:88: style:inconclusive: Function 'tmd_aes_decrypt_xts' argument 4 names different: declaration 'sector' definition 'dataunit'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.h:85:91: note: Function 'tmd_aes_decrypt_xts' argument 4 names different: declaration 'sector' definition 'dataunit'. cipher-aes128-0.7.0.6/cbits/aes.c:302:88: note: Function 'tmd_aes_decrypt_xts' argument 4 names different: declaration 'sector' definition 'dataunit'. cipher-aes128-0.7.0.6/cbits/aes.c:464:141: style:inconclusive: Function 'tmd_aes_generic_encrypt_ctr' argument 6 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] cipher-aes128-0.7.0.6/cbits/aes.c:46:141: note: Function 'tmd_aes_generic_encrypt_ctr' argument 6 names different: declaration 'length' definition 'len'. cipher-aes128-0.7.0.6/cbits/aes.c:464:141: note: Function 'tmd_aes_generic_encrypt_ctr' argument 6 names different: declaration 'length' definition 'len'. cipher-aes128-0.7.0.6/cbits/aes.c:277:72: style: Parameter 'iv' can be declared as pointer to const [constParameterPointer] cipher-aes128-0.7.0.6/cbits/aes.c:490:81: style: Parameter 'k2' can be declared as pointer to const. However it seems that 'tmd_aes_generic_encrypt_xts' is a callback function, if 'k2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cipher-aes128-0.7.0.6/cbits/aes.c:298:19: note: You might need to cast the function pointer here cipher-aes128-0.7.0.6/cbits/aes.c:490:81: note: Parameter 'k2' can be declared as pointer to const cipher-aes128-0.7.0.6/cbits/aes.c:490:96: style: Parameter 'dataunit' can be declared as pointer to const. However it seems that 'tmd_aes_generic_encrypt_xts' is a callback function, if 'dataunit' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cipher-aes128-0.7.0.6/cbits/aes.c:298:19: note: You might need to cast the function pointer here cipher-aes128-0.7.0.6/cbits/aes.c:490:96: note: Parameter 'dataunit' can be declared as pointer to const cipher-aes128-0.7.0.6/cbits/aes.c:510:81: style: Parameter 'k2' can be declared as pointer to const. However it seems that 'tmd_aes_generic_decrypt_xts' is a callback function, if 'k2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cipher-aes128-0.7.0.6/cbits/aes.c:112:31: note: You might need to cast the function pointer here cipher-aes128-0.7.0.6/cbits/aes.c:510:81: note: Parameter 'k2' can be declared as pointer to const cipher-aes128-0.7.0.6/cbits/aes.c:510:96: style: Parameter 'dataunit' can be declared as pointer to const. However it seems that 'tmd_aes_generic_decrypt_xts' is a callback function, if 'dataunit' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cipher-aes128-0.7.0.6/cbits/aes.c:112:31: note: You might need to cast the function pointer here cipher-aes128-0.7.0.6/cbits/aes.c:510:96: note: Parameter 'dataunit' can be declared as pointer to const cipher-aes128-0.7.0.6/cbits/bitfn.h:107:56: style: Parameter 's' can be declared as pointer to const [constParameterPointer] cipher-aes128-0.7.0.6/cbits/bitfn.h:123:56: style: Parameter 's' can be declared as pointer to const [constParameterPointer] cipher-aes128-0.7.0.6/cbits/bitfn.h:148:56: style: Parameter 's' can be declared as pointer to const [constParameterPointer] cipher-aes128-0.7.0.6/cbits/bitfn.h:155:56: style: Parameter 's' can be declared as pointer to const [constParameterPointer] cipher-aes128-0.7.0.6/cbits/aes_generic.c:281:18: style: Variable 'r32' can be declared as pointer to const [constVariablePointer] cipher-aes128-0.7.0.6/cbits/aes_generic.c:409:11: style: Variable 'iptr' can be declared as pointer to const [constVariablePointer] cipher-aes128-0.7.0.6/cbits/aes_generic.c:421:11: style: Variable 'iptr' can be declared as pointer to const [constVariablePointer] cipher-aes128-0.7.0.6/cbits/aes_x86ni_impl.c:31:6: error: There is an unknown macro here somewhere. Configuration is required. If SIZED is a macro then please configure it. [unknownMacro] cipher-aes128-0.7.0.6/cbits/gf.c:69:12: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] diff: DONE