implement session and mac key if shared key is shorter than 64 bytes