Both those song use what is called a 1-4-5 chord progression, with slightly different rhythms. This is one of the simplest rock n' roll song structures, and one of the most popular. Other classic songs that use this progression include:
Eddie Cochran - Summertime Blues
The Troggs - Wild Thing
The Kingsmen - Louie Louie
Elvis - Heartbreak Hotel, All Shook Up