Optimized ARM RWSEM Algorithm and AES/SHA1 Routines