What's 2*80 in Hexa?

Discussion in 'Other IT Security Certification' started by shivaji, Aug 26, 2022.

  1. shivaji

    shivaji Bit Poster

    20
    0
    2
    The result is shown to be 1B. How did we get this value?


    So, this looks like a case of carry in hexa addition, so how'd we do this calculation?


    [​IMG]

    I'm asking this question because of this. Here' for j=8, Round Constant is 80. The formula to find next round constant is to multiply the current round constant with 2. So, it's 2*80 and should be 100. But it's not the case. So, I want to know how is it done?
     
  2. dmarsh
    Honorary Member 500 Likes Award

    dmarsh Petabyte Poster

    4,305
    503
    259
    They look like powers of 2.
    power of 2 = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
    value in decimal = 1, 2, 4, 8,16,32,64,128,256,512
    value in hex = 1, 2, 4, 8,10,20,40, 80,100,200

    hex 80 in decimal = 8x16 + 0x1 = 8x16 = 128
    decimal 128x2 = 256
    256 in hex = 256/16 power 2, therfore 1 in third column = 100

    No idea why table is like that, it indeed looks wrong.

    1B = 16 + 11 = 27
    36 = 3x16+6 = 54

    Seems they are wrong to me, these values in no way are r[j-1]*2
     
  3. shivaji

    shivaji Bit Poster

    20
    0
    2
    that's a special case. if the previous RC is greater than 80, they add 11B or sth.
     

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.