pulled out duplicated methods from blowfish/ghost/idea into BlockMethods module