core: Add extended versions of the encrypt functions.