Add comments and LICENSE
This commit is contained in:
@@ -109,8 +109,8 @@ mod tests {
|
||||
fn test_parse_empty() {
|
||||
setup();
|
||||
let buffer = [
|
||||
0x00, 0x17, // Secp256r1
|
||||
0x00, 0x00, // key_exchange length = 0 bytes
|
||||
0x00, 0x17,
|
||||
0x00, 0x00,
|
||||
];
|
||||
let result = KeyShareEntry::parse(&mut ParseBuffer::new(&buffer)).unwrap();
|
||||
|
||||
@@ -122,8 +122,8 @@ mod tests {
|
||||
fn test_parse() {
|
||||
setup();
|
||||
let buffer = [
|
||||
0x00, 0x17, // Secp256r1
|
||||
0x00, 0x02, // key_exchange length = 2 bytes
|
||||
0x00, 0x17,
|
||||
0x00, 0x02,
|
||||
0xAA, 0xBB,
|
||||
];
|
||||
let result = KeyShareEntry::parse(&mut ParseBuffer::new(&buffer)).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user