예제 #1
0
파일: CTRPrng.cs 프로젝트: todoasap/CEX-NET
 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);
     }
 }
예제 #2
0
 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);
     }
 }