Fix hash buffer size in pkey programs

backport from 102a620
8 files changed