Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c189 #define SIGNATURE_BLOCK_SIZE (2 * RSA_BYTES) macro
256 if (sigData <= 0 || (sigData % SIGNATURE_BLOCK_SIZE) != 0) { in handleVerify()
263 int nSig = sigData / SIGNATURE_BLOCK_SIZE; in handleVerify()
279 sigPack += SIGNATURE_BLOCK_SIZE; in handleVerify()
286 uint8_t *sigPack = buf + bufUsed - SIGNATURE_BLOCK_SIZE; in handleVerify()
289 if (bufUsed > SIGNATURE_BLOCK_SIZE) { in handleVerify()
291 sha2processBytes(&shaState, buf, bufUsed - SIGNATURE_BLOCK_SIZE); in handleVerify()
346 int numSigs = sigSz / SIGNATURE_BLOCK_SIZE; in handleSign()
347 if ((numSigs * (int)SIGNATURE_BLOCK_SIZE) != sigSz) { in handleSign()