Searched refs:privateLen (Results 1 – 1 of 1) sorted by relevance
170 long privateLen = 0; // NOLINT(google-runtime-int) in ParseOldSoftkeymasterBlob() local176 sizeof(SOFT_KEY_MAGIC) + sizeof(type) + sizeof(publicLen) + 1 + sizeof(privateLen) + 1; in ParseOldSoftkeymasterBlob()205 privateLen = (privateLen << 8) | *p++; in ParseOldSoftkeymasterBlob()207 if (p + privateLen > end) { in ParseOldSoftkeymasterBlob()208 LOG_W("private key length encoding error: size=%ld, end=%td", privateLen, end - p); in ParseOldSoftkeymasterBlob()215 EVP_PKEY_Ptr pkey(d2i_PrivateKey(type, nullptr, &p, privateLen)); in ParseOldSoftkeymasterBlob()227 if (!key_material->Reset(privateLen)) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in ParseOldSoftkeymasterBlob()228 memcpy(key_material->writable_data(), key_start, privateLen); in ParseOldSoftkeymasterBlob()