Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/applypatch/
Dapplypatch.cpp351 const char* ps = str; in ParseSha1() local
353 for (int i = 0; i < SHA_DIGEST_LENGTH * 2; ++i, ++ps) { in ParseSha1()
355 if (*ps >= '0' && *ps <= '9') { in ParseSha1()
356 digit = *ps - '0'; in ParseSha1()
357 } else if (*ps >= 'a' && *ps <= 'f') { in ParseSha1()
358 digit = *ps - 'a' + 10; in ParseSha1()
359 } else if (*ps >= 'A' && *ps <= 'F') { in ParseSha1()
360 digit = *ps - 'A' + 10; in ParseSha1()
371 if (*ps != '\0') return -1; in ParseSha1()