reset password
Author Message
ljuster2
Posts: 19
Posted 14:48 May 09, 2015 |

    +-----+---------------------------------+-------------------+
   |   n    |            data bytes              |    checksum     |
   +-----+---------------------------------+-------------------+ 

   |<-1->|<------- ndatabytes -------- >|<- ncheckbytes->|

 

where n is the number of actual data bytes used in the data bytes field and is one byte long. 

 

I read the information above, and look at the picture, and it sounds like "n=1, therefore the data bytes field is one byte long"

 

I think I am confused?

schacha
Posts: 8
Posted 15:17 May 09, 2015 |

Hey what I have understood is ndatabytes is the size of the chunk you chop the actual message into . You're suppose to take the input for ndatabytes from the user . In our case for reference we're suppose to take 13. So, basically n is the number of useful bytes in the ndatabytes. 

hpguo
Posts: 139
Posted 12:47 May 11, 2015 |

Correct! Thanks for helping me clarify this.

Dr. Guo