openSSL crypto library:

Example:

The modes of operation currently available are: