Exemplo n.º 1
0
        public override byte[] Encrypt(byte[] inputData)
        {
            cryptoAES.GenerateNewKey();
            currentSymKey = cryptoAES.CurrentKey;
            currentSymIV  = cryptoAES.CurrentIV;

            currentEnvelopeData = cryptoAES.Encrypt(inputData);

            currentEnvelopeCryptKeySize = cryptoRSA.CurrentKeySize;
            currentEnvelopeCryptKey     = cryptoRSA.Encrypt(currentSymKey);
            currentEnvelopeCryptIV      = cryptoRSA.Encrypt(currentSymIV);

            return(currentEnvelopeData);
        }