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); }