Skip to content

Commit

Permalink
Add comment about constant sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Oct 21, 2021
1 parent 92b329b commit 410b30d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/hash/md5_hash.cu
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ namespace detail {

namespace {

// The MD5 algorithm and its hash/shift constants are officially specified in
// RFC 1321. For convenience, these values can also be found on Wikipedia:
// https://en.wikipedia.org/wiki/MD5
const __constant__ uint32_t md5_shift_constants[16] = {
7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21};

Expand Down

0 comments on commit 410b30d

Please sign in to comment.