Results 1 to 4 of 4
Like Tree1Thanks
  • 1 Post By emakarov

Math Help - Please help me interpret this statement

  1. #1
    Newbie
    Joined
    Aug 2012
    From
    new york
    Posts
    3

    Please help me interpret this statement

    HMAC(K,C) = SHA1(K ⊕ 0x5c5c ∥ SHA1(K ⊕ 0x3636 ∥ C))

    The basic idea I get and I'm thinking means something like plus. What are the two vertical lines. (K is a pre-defined but arbitrary value and C is a counter.)

    The wikipedia math symbol page is helping much
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Apr 2005
    Posts
    15,987
    Thanks
    1650

    Re: Please help me interpret this statement

    I'm afraid you will need to give more information. What field is this equation from? What do "HMAC" and "SHA1" mean? Ox5c5c and Ox3636 are probably octal numbers. Is this a computer problem and "HMAC" is the data in an accumulator? "SHA1" might be a shift operation on a computer register. In that case, I would expect "//" to be a binary operation, perhaps an "OR" operation.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Aug 2012
    From
    new york
    Posts
    3

    Re: Please help me interpret this statement

    Thank you for the attention. HMAC is a specific construction for calculating a message authentication code (MAC) involving a cryptographic hash function in combination with a secret cryptographic key.(wikipedia)

    K is that key and a C is a counter that increments by one each time a message code is generated to ensure resulting codes are not the same.

    Any cryptographic hash function, such as MD5 or SHA-1, may be used in the calculation of an HMAC; the resulting MAC algorithm is termed HMAC-MD5 or HMAC-SHA1 accordingly (wikipedia)

    So I think were here dealing with HMAC-SHA1. The statement I'm trying to figure out appears in the beginning of this webpage: HOTP - Wikipedia, the free encyclopedia

    The 0x... is a hex number. I was hoping there'd be some recognized interpretation of the symbols. || is often 'or' in computer code.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,545
    Thanks
    780

    Re: Please help me interpret this statement

    The interpretation of ⊕ and ∥ is given in the HMAC link on the page about HOTP you provided (⊕ is exclusive or and ∥ is concatenation).
    Thanks from naftalim
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. How would you interpret this question?
    Posted in the Calculus Forum
    Replies: 3
    Last Post: July 21st 2012, 09:25 AM
  2. How to interpret a stem and leaf problem?
    Posted in the Statistics Forum
    Replies: 1
    Last Post: November 8th 2010, 09:30 AM
  3. Strange geometry patterns help interpret
    Posted in the Geometry Forum
    Replies: 0
    Last Post: October 8th 2009, 05:48 AM
  4. How to interpret results from a t-test
    Posted in the Statistics Forum
    Replies: 8
    Last Post: August 23rd 2009, 11:31 PM
  5. Not sure how to interpret this data.
    Posted in the Advanced Statistics Forum
    Replies: 8
    Last Post: September 15th 2006, 12:59 AM

Search Tags


/mathhelpforum @mathhelpforum