Fixed some interfaces for encryption.