signed/unsigned compare in cipher/rijndael.c

Toomas Soome tsoome at
Mon Apr 13 19:31:24 CEST 2015


do_setkey() in cipher/rijndael.c has argument unsigned keylen which is compared in for loop with int i - and making compilers to spit warning about comparing signed with unsigned. since i is only used in this loop (line #350) and using positive values, its safe to declare i as unsigned as well (line #217). could you please fix it?:)


More information about the Gcrypt-devel mailing list