if keysize=0 then use GRST_KEYSIZE in appr. functions