Generate subKeys should be working, close to python implementation, but returning incorrect values,