Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c235 struct AppSecSignHdr *secHdr = (struct AppSecSignHdr *)&image[1]; in handleVerify() local
242 if (bufUsed < (sizeof(*image) + sizeof(*secHdr))) { in handleVerify()
249 secHdr->appDataLen, bufUsed, bufUsed - secHdr->appDataLen); in handleVerify()
255 sigData = bufUsed - (secHdr->appDataLen + sizeof(*image) + sizeof(*secHdr)); in handleVerify()
327 struct AppSecSignHdr *secHdr = (struct AppSecSignHdr *)&image[1]; in handleSign() local
328 uint32_t grow = sizeof(*secHdr); in handleSign()
334 secHdr = (struct AppSecSignHdr *)&image[1]; in handleSign()
339 secHdr->appDataLen = bufUsed - sizeof(*image); in handleSign()
345 int sigSz = bufUsed - sizeof(*image) - sizeof(*secHdr) - secHdr->appDataLen; in handleSign()