Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
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