Algorithms and Architectures for Secure Embedded Multimedia Systems