Fix file storage of GOST keys generated by Botan. Also use the correct mechanism when doing signing and hashing.