In the Army, we say that the tradition certainly ... that is very similar to this medieval era days of knights. I would say those are the two most common origin stories of the salute.