1. A method in a data processing system for executing cryptographic operations, the method comprising: responsive to a request to perform a cryptographic operation, selecting one of a software process and a hardware process for performing the cryptographic operation based on a policy which process results in a available resources to perform the cryptographic operation to form a selected process; and performing the cryptographic operation using the selected process.