fix nonce size (24 to 12)
@@ -128,7 +128,7 @@ impl CryptCcm {
return Err(ERR_NOT_ENOUGH_ROOM_FOR_NONCE.clone());
}
- let mut nonce = vec![0u8; CRYPTO_CCM_NONCE_LENGTH];
+ let mut nonce = vec![];
nonce.extend_from_slice(&self.remote_write_iv[..4]);
nonce.extend_from_slice(&r[RECORD_LAYER_HEADER_SIZE..RECORD_LAYER_HEADER_SIZE + 8]);
let nonce = GenericArray::from_slice(&nonce);
