post master key session key calculate