An Implementation of Security Extensions for Data Integrity and Confidentiality in Soft-Core Processors