Rework our smb signing code again, this factors out some of the common