turncate hashSigAlgoSz to max buffer size