Home | History | Annotate | Download | only in tool

Lines Matching refs:nonce

73 # Calc checksum nonce from journal page data.
80 set nonce [hexio_get_int [hexio_read $jrnl_name [expr $jrnl_pg_offset+4+$db_pgsz] 4]]
83 set nonce [expr $nonce-$byte]
85 return $nonce
94 global nonce
96 set chksum $nonce
116 set nonce [calc_nonce $jrnl_pgno]
120 puts [ format {nonce: %08x chksum: %08x} \
121 $nonce $chksum]
173 # calculate checksum nonce for first page
174 set nonce [calc_nonce 0]
176 # verify all the pages in the journal use the same nonce
179 if {$tnonce != $nonce} {
180 puts "WARNING: different nonces: 0=$nonce $i=$tnonce"
215 # write 00 for checksum nonce
216 hexio_write $jrnl_name 12 [format %08x $nonce]