OFB and CTR mode encryption using SHA hash function