protected override Aes OnGet(Aes.CipherMode cipherMode, Aes.PaddingMode paddingMode)
 {
     return(new DefaultAes
     {
         Cipher = cipherMode,
         Padding = paddingMode
     });
 }
Exemplo n.º 2
0
        public Aes Get(Aes.CipherMode cipherMode, Aes.PaddingMode paddingMode)
        {
            Aes result = null;

            try
            {
                result = OnGet(cipherMode, paddingMode);
            }
            catch (Exception e)
            {
                Logger.GetInstance(typeof(AesFactory)).Error(e.ToString());
            }
            return(result);
        }
Exemplo n.º 3
0
 protected abstract Aes OnGet(Aes.CipherMode cipherMode, Aes.PaddingMode paddingMode);