Sign in
cobalt
/
cobalt
/
0e7d696c3ce6a2ef566d0fabc20213b6a651f942
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
browserify-aes
/
incr32.js
blob: c1a90893b1c2ecb6685498c5915372f9e25fb554 [
file
] [
log
] [
blame
]
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