Lines Matching defs:counter
75 * 3) monotonic-counter: last counter value for name of token object file.
97 #define KS_COUNTER_SIZE 4 /* size in bytes of the monotonic counter */
413 /* write monotonic-counter. Counter for keystore objects start at 1 */
1471 * file for updating version and counter information
1506 /* read and write counter, no modification necessary */
2197 unsigned int counter, version;
2230 * file for updating version and counter information
2265 if (readn_nointr(fd, &counter, KS_COUNTER_SIZE) != KS_COUNTER_SIZE) {
2268 counter = SWAP32(counter);
2273 get_pub_obj_path(pub_obj_path), OBJ_PREFIX, counter);
2276 get_pri_obj_path(pri_obj_path), OBJ_PREFIX, counter);
2391 "obj%d", counter);
2395 * store new counter to temp keystore description file.
2397 counter++;
2398 counter = SWAP32(counter);
2399 if (writen_nointr(tmp_ks_fd, (void *)&counter,
2400 sizeof (counter)) != sizeof (counter)) {