Home
last modified time | relevance | path

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

/system/security/keystore/
Dkeyblob_utils.cpp43 static const uint8_t SOFT_KEY_MAGIC[] = { 'P', 'K', '#', '8' }; variable
46 return sizeof(SOFT_KEY_MAGIC); in get_softkey_header_size()
50 if (key_blob_length < sizeof(SOFT_KEY_MAGIC)) { in add_softkey_header()
54 memcpy(key_blob, SOFT_KEY_MAGIC, sizeof(SOFT_KEY_MAGIC)); in add_softkey_header()
56 return key_blob + sizeof(SOFT_KEY_MAGIC); in add_softkey_header()
60 if (key_blob_length < sizeof(SOFT_KEY_MAGIC)) { in is_softkey()
64 return !memcmp(key_blob, SOFT_KEY_MAGIC, sizeof(SOFT_KEY_MAGIC)); in is_softkey()
/system/keymaster/key_blob_utils/
Dsoftware_keyblobs.cpp171 static const uint8_t SOFT_KEY_MAGIC[] = {'P', 'K', '#', '8'}; variable
182 sizeof(SOFT_KEY_MAGIC) + sizeof(type) + sizeof(publicLen) + 1 + sizeof(privateLen) + 1; in ParseOldSoftkeymasterBlob()
188 if (memcmp(p, SOFT_KEY_MAGIC, sizeof(SOFT_KEY_MAGIC)) != 0) in ParseOldSoftkeymasterBlob()
190 p += sizeof(SOFT_KEY_MAGIC); in ParseOldSoftkeymasterBlob()