Patent ID: 8831221

Claim:
A crypto function unit (CFU), the CFU comprising: an input buffer configured to receive crypto-function data for one or more transactions from a host; a wrapped cipher/hasher module configured to apply a crypto-function algorithm to the crypto-function data corresponding to each transaction based on a playing card template associated with each transaction; and a switch configured to transfer of the crypto-function data for each transaction between the input buffer and the wrapped cipher/hasher module based on control signals exchanged between the switch and the wrapped cipher/hasher module, wherein the wrapped cipher/hasher module provides processed crypto data for each transaction based on the crypto-function data in accordance with the applied crypto-function algorithm, wherein the wrapped cipher/hasher module comprises: a cipher/hasher core module configured to apply the crypto-function algorithm to the crypto-function data for a transaction based on the playing card template associated with the transaction, and the cipher/hasher core module is configured to be bypassed by the unpack module by a selection through a bypass channel to the pack module, an unpack module configured to translate/reformat the crypto-function data between a first format of the crypto-function data to a second format of the cipher/hasher core module; a pack module configured to translate/reformat the processed crypto data of the second format of the cipher/hasher core module to the first format; and a cipher/hasher core module configured to apply the crypto-function algorithm to the crypto-function data for a transaction based on the playing card template associated with the transaction, wherein the cipher/hasher core module is configured to be bypassed by the unpack module by a selection through a bypass channel to the pack module, wherein the cipher/hasher module comprises: a finite state machine (FSM) cipher/hasher controller, coupled to the cipher/hasher core module, configured to initialize the cipher/hasher core module for the crypto-function algorithm associated with the playing card identifier, wherein the FSM cipher/hasher controller is configured to (i) verify the playing card template associated with the transaction and, if the playing card template is valid, (ii) begin processing of the crypto-function data for the transaction by the cipher/hasher core module.