Skip to main content

build_shadow_frame

Function build_shadow_frame 

Source
pub fn build_shadow_frame(
    plaintext_len: usize,
    salt: &[u8; 16],
    nonce: &[u8; 12],
    ciphertext: &[u8],
) -> Vec<u8> 
Expand description

Build the shadow inner frame (before RS encoding).

Layout: [plaintext_len: 2B] [salt: 16B] [nonce: 12B] [ciphertext: N+16B]