sizeof(array_arg) doesn't work as expected so use digest length macros