(lhs: Uint8Array, rhs: Uint8Array)
| 345 | } |
| 346 | |
| 347 | function compareDigest(lhs: Uint8Array, rhs: Uint8Array) { |
| 348 | if (lhs.length !== rhs.length) { |
| 349 | return false; |
| 350 | } |
| 351 | |
| 352 | let result = 0; |
| 353 | for (let i = 0; i < lhs.length; i++) { |
| 354 | result |= lhs[i] ^ rhs[i]; |
| 355 | } |
| 356 | |
| 357 | return result === 0; |
| 358 | } |
| 359 | |
| 360 | export class ScramSHA1 extends ScramSHA { |
| 361 | constructor() { |
no outgoing calls
no test coverage detected