Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c124 static bool validateSignature(uint8_t *sigPack, struct RsaData *rsa, bool verbose, uint32_t *refHas… in validateSignature() argument
128 const uint32_t *le32SigPack = (const uint32_t*)sigPack; in validateSignature()
136 memcpy(rsa->modulus, sigPack + RSA_BYTES, RSA_BYTES); in validateSignature()
237 uint8_t *sigPack; in handleVerify() local
264 sigPack = buf + bufUsed - sigData; in handleVerify()
266 … if (!validateSignature(sigPack, rsa, verbose, (uint32_t*)sha2finish(&shaState), false)) { in handleVerify()
278 sha2processBytes(&shaState, sigPack+RSA_BYTES, RSA_BYTES); in handleVerify()
279 sigPack += SIGNATURE_BLOCK_SIZE; in handleVerify()
286 uint8_t *sigPack = buf + bufUsed - SIGNATURE_BLOCK_SIZE; in handleVerify() local
295 printHashRev(stderr, "File PubKey", (uint32_t *)(sigPack + RSA_BYTES), RSA_LIMBS); in handleVerify()
[all …]