Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Dec 15, 2022
1 parent ad91f35 commit eed88bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sha1.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SHA2 } from './_sha2.js';
import { wrapConstructor } from './utils.js';

// SHA1 was cryptographically broken, however, it was not broken for cases like HMAC.
// Don't use it for a new protocol.
// SHA1 was cryptographically broken.
// It is still widely used in legacy apps. Don't use it for a new protocol.

// RFC 3174
const rotl = (word: number, shift: number) => (word << shift) | ((word >>> (32 - shift)) >>> 0);
Expand Down

0 comments on commit eed88bf

Please sign in to comment.