Fixed signature version 3 calculation