Stub out ChaCha20 non-HMAC encryption/decryption in fuzztarget
[rust-lightning] / src / ln / channelmanager.rs
index 76272d4e6973a651935a829deeee7fcd2cf03687..29d260ba6886c8826ff4510f8215a3c097e27d2e 100644 (file)
@@ -19,13 +19,13 @@ use ln::msgs;
 use ln::msgs::{HandleError,ChannelMessageHandler,MsgEncodable,MsgDecodable};
 use util::{byte_utils, events, internal_traits, rng};
 use util::sha2::Sha256;
+use util::chacha20poly1305rfc::ChaCha20;
 
 use crypto;
 use crypto::mac::{Mac,MacResult};
 use crypto::hmac::Hmac;
 use crypto::digest::Digest;
 use crypto::symmetriccipher::SynchronousStreamCipher;
-use crypto::chacha20::ChaCha20;
 
 use std::{ptr, mem};
 use std::collections::HashMap;