@@ -10,7 +10,7 @@ use std::{
1010use tracing:: { debug, error, instrument, trace, warn} ;
1111
1212use crate :: {
13- crypto:: { DecryptCipher , Handshake , HandshakeResult , RawEncryptCipher } ,
13+ crypto:: { DecryptCipher , EncryptCipher , Handshake , HandshakeResult } ,
1414 Uint24LELengthPrefixedFraming ,
1515} ;
1616
@@ -27,8 +27,8 @@ pub fn encrypted_framed_message_channel<IO: AsyncWrite + AsyncRead + Send + Unpi
2727pub ( crate ) enum Step {
2828 NotInitialized ,
2929 Handshake ( Box < Handshake > ) ,
30- SecretStream ( ( RawEncryptCipher , HandshakeResult ) ) ,
31- Established ( ( RawEncryptCipher , DecryptCipher , HandshakeResult ) ) ,
30+ SecretStream ( ( EncryptCipher , HandshakeResult ) ) ,
31+ Established ( ( EncryptCipher , DecryptCipher , HandshakeResult ) ) ,
3232}
3333
3434impl Step {
@@ -458,7 +458,7 @@ fn poll_decrypt(
458458
459459#[ instrument( skip_all) ]
460460fn poll_encrypt (
461- encryptor : & mut RawEncryptCipher ,
461+ encryptor : & mut EncryptCipher ,
462462 encrypted_tx : & mut VecDeque < Vec < u8 > > ,
463463 plain_tx : & mut VecDeque < Vec < u8 > > ,
464464 is_initiator : bool ,
@@ -568,7 +568,7 @@ fn handle_setup_message(
568568 } ;
569569 // The cipher will be put to use to the writer only after the peer's answer has come
570570 let ( cipher, init_msg) =
571- match RawEncryptCipher :: from_handshake_tx ( handshake_result) {
571+ match EncryptCipher :: from_handshake_tx ( handshake_result) {
572572 Ok ( x) => x,
573573 Err ( e) => {
574574 error ! ( "from_handshake_tx error {e:?}" ) ;
0 commit comments