Implemented key schedule computation.