Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MD5 Implementation #8272

Closed

Commits on Aug 17, 2013

  1. Crypto: Add little-endian versions of existing functions: read_u32v_l…

    …e and write_u32_le.
    Palmer Cox committed Aug 17, 2013
    Configuration menu
    Copy the full SHA
    a37f284 View commit details
    Browse the repository at this point in the history
  2. MD5: Create an implementation of MD5.

    Palmer Cox committed Aug 17, 2013
    Configuration menu
    Copy the full SHA
    c707065 View commit details
    Browse the repository at this point in the history
  3. Crypto: update checked addition functions to use CheckedAdd intrinsic.

    The shift_add_check_overflow and shift_add_check_overflow_tuple functions are
    re-written to be more efficient and to make use of the CheckedAdd instrinsic
    instead of manually checking for integer overflow.
    
    * The invokation leading_zeros() is removed and replaced with simple integer
      comparison. The leading_zeros() method results in a ctpop LLVM instruction
      and it may not be efficient on all architectures; integer comparisons,
      however, are efficient on just about any architecture.
    * The methods lose the ability for the caller to specify a particular shift
      value - that functionality wasn't being used and removing it allows for the
      code to be simplified.
    * Finally, the methods are renamed to add_bytes_to_bits and
      add_bytes_to_bits_tuple to reflect their very specific purposes.
    Palmer Cox committed Aug 17, 2013
    Configuration menu
    Copy the full SHA
    6386f88 View commit details
    Browse the repository at this point in the history
  4. Crypto: Add tests for add_bytes_to_bits functions.

    Palmer Cox committed Aug 17, 2013
    5 Configuration menu
    Copy the full SHA
    b00aa12 View commit details
    Browse the repository at this point in the history