fix digest sizes in internal.h