using CryptoBase;

namespace Shadowsocks.Protocol.Shadowsocks.Crypto
{
    public class AeadXChaCha20Poly1305Crypto : AeadCrypto
    {
        public AeadXChaCha20Poly1305Crypto(CryptoParameter parameter) : base(parameter)
        {
        }

        public override void Init(byte[] key, byte[] iv) => crypto = AEADCryptoCreate.XChaCha20Poly1305(key);
    }
}
