Add crypto implementations for PolarSSL and OpenSSL.

TODO: Updating key schedules. Had to comment them out for now because
the places where they were used, it was not clear whether the keys
were going to be used for encryption or decryption. OpenSSL does not
seem to care how they're used, but PolarSSL does.