flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
15
VISUALIZACION/node_modules/browserify-aes/incr32.js
generated
vendored
Executable file
15
VISUALIZACION/node_modules/browserify-aes/incr32.js
generated
vendored
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
function incr32 (iv) {
|
||||
var len = iv.length
|
||||
var item
|
||||
while (len--) {
|
||||
item = iv.readUInt8(len)
|
||||
if (item === 255) {
|
||||
iv.writeUInt8(0, len)
|
||||
} else {
|
||||
item++
|
||||
iv.writeUInt8(item, len)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
module.exports = incr32
|
||||
Loading…
Add table
Add a link
Reference in a new issue