Key version

Hog can be calculated. The correctness remians to be tested.