private IBlockCipher GetCipher(BlockCiphers RngEngine) { try { return(BlockCipherFromName.GetInstance(RngEngine)); } catch (Exception Ex) { throw new CryptoRandomException("CTRPrng:GetCipher", "The cipher could not be initialized!", Ex); } }
private IBlockCipher GetBlockCipher(BlockCiphers EngineType, int BlockSize, int RoundCount, Digests KdfEngine) { try { return(BlockCipherFromName.GetInstance(EngineType, BlockSize, RoundCount, KdfEngine)); } catch (Exception Ex) { throw new CryptoRandomException("CTRPrng:GetCipher", "The cipher could not be initialized!", Ex); } }