index fix
Moved subkey calculation to host-side program (not needed in kernel program)