This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A Rust implementation of the ChaCha20-Poly1305 algorithm in RFC 7539 https://www.rfc-editor.org/rfc/rfc7539 | |
fn from_le_bytes(x: &[u8]) -> u32 { | |
u32::from_le_bytes([x[0], x[1], x[2], x[3]]) | |
} | |
fn pad16(data: &[u8]) -> Vec<u8> { | |
return vec![0; 16 - (data.len() % 16)]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: For Windows | |
tsc %1 | |
node %1 | |
del %1 |