diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-20 22:22:28 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 22:22:28 +0530 |
| commit | ea7ca00c895c401af57a7201f3c41524333e7939 (patch) | |
| tree | a238ea54a003111ab6c1b7b1cb14e0669cb4f7af /ext/node/polyfills/_crypto/crypto_browserify/browserify_aes/incr32.js | |
| parent | a16c11c5d10052c688ba4c2eca09fd1a225e395a (diff) | |
perf: use ops for node:crypto ciphers (#17819)
Towards #17809
Diffstat (limited to 'ext/node/polyfills/_crypto/crypto_browserify/browserify_aes/incr32.js')
| -rw-r--r-- | ext/node/polyfills/_crypto/crypto_browserify/browserify_aes/incr32.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ext/node/polyfills/_crypto/crypto_browserify/browserify_aes/incr32.js b/ext/node/polyfills/_crypto/crypto_browserify/browserify_aes/incr32.js deleted file mode 100644 index 65172eefb..000000000 --- a/ext/node/polyfills/_crypto/crypto_browserify/browserify_aes/incr32.js +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -// Copyright 2014-2017 browserify-aes contributors. All rights reserved. MIT license. -// Copyright 2013 Maxwell Krohn. All rights reserved. MIT license. -// Copyright 2009-2013 Jeff Mott. All rights reserved. MIT license. - -export function incr32(iv) { - let len = iv.length; - let item; - while (len--) { - item = iv.readUInt8(len); - if (item === 255) { - iv.writeUInt8(0, len); - } else { - item++; - iv.writeUInt8(item, len); - break; - } - } -} |
