remove codec folder in nxrp

This commit is contained in:
2026-03-26 11:52:04 +07:00
parent 5ed50f6283
commit 6a0eafd2f5
14 changed files with 19 additions and 24 deletions
@@ -3,9 +3,9 @@ use bytes::{Bytes, BytesMut};
use crate::crypto::aead::AeadPacker;
use crate::crypto::chacha::ChaChaCipher;
use crate::crypto::session::SessionKeys;
use crate::nrxp::codec::bridge::TlsBridge;
use crate::nrxp::codec::frame::{Frame, FrameHeader, FrameType, Padding};
use crate::nrxp::bridge::TlsBridge;
use crate::nrxp::errors::{ErrorAction, ErrorStage, TlsError};
use crate::nrxp::frame::{Frame, FrameHeader, FrameType, Padding};
use crate::parser::Parser;
use crate::tlseng::profile::{BrowserProfile, ServerProfile};
-6
View File
@@ -1,6 +0,0 @@
mod bridge;
pub mod codec;
pub mod frame;
pub mod socks;
pub const MAX_PADDING_SIZE: u32 = 255;
@@ -2,13 +2,15 @@ use bytes::{Buf, BufMut, Bytes, BytesMut};
use rand::Rng;
use crate::{nrxp::codec::MAX_PADDING_SIZE, parser::Parser};
use crate::parser::Parser;
pub struct Padding {
pub len: u16,
pub data: Bytes,
}
pub const MAX_PADDING_SIZE: u32 = 255;
impl Padding {
pub fn generate_padding() -> Padding {
let mut rng = rand::rng();
+3
View File
@@ -1,2 +1,5 @@
mod bridge;
pub mod codec;
pub mod errors;
pub mod frame;
pub mod socks;