Cryptographic primitives are used in implementing a variety of secure protocols in different applications.