private static byte[] DecryptPackagePayload(Package package) { AESEncryptor decrypt = new AESEncryptor(); return(decrypt.DecryptData(package.Payload, package.EncryptedKey, package.EncryptedIV)); }
private byte[] DecrypData(byte[] encryptedData, byte[] key, byte[] IV) { AESEncryptor decryptor = new AESEncryptor(); return(decryptor.DecryptData(encryptedData, key, IV)); }