This implements the CryptoComponent methods necessary for BQP.
CryptoComponent
Part of #117 (closed).