change digest context size to right value, get rid of the segfault