Searched refs:shaState (Results 1 – 2 of 2) sorted by relevance
/device/google/contexthub/util/nanoapp_sign/ |
D | nanoapp_sign.c | 228 struct Sha2state shaState; in handleVerify() local 261 sha2init(&shaState); in handleVerify() 262 sha2processBytes(&shaState, buf, bufUsed - sigData); in handleVerify() 266 … if (!validateSignature(sigPack, rsa, verbose, (uint32_t*)sha2finish(&shaState), false)) { in handleVerify() 277 sha2init(&shaState); in handleVerify() 278 sha2processBytes(&shaState, sigPack+RSA_BYTES, RSA_BYTES); in handleVerify() 290 sha2init(&shaState); in handleVerify() 291 sha2processBytes(&shaState, buf, bufUsed - SIGNATURE_BLOCK_SIZE); in handleVerify() 292 hash = (uint32_t*)sha2finish(&shaState); in handleVerify() 318 struct Sha2state shaState; in handleSign() local [all …]
|
/device/google/contexthub/util/nanoapp_encr/ |
D | nanoapp_encr.c | 62 struct Sha2state shaState; in handleEncrypt() local 126 sha2init(&shaState); in handleEncrypt() 136 sha2processBytes(&shaState, data + i, sz); in handleEncrypt() 140 const uint32_t *hash = sha2finish(&shaState); in handleEncrypt() 157 struct Sha2state shaState; in handleDecrypt() local 203 sha2init(&shaState); in handleDecrypt() 210 sha2processBytes(&shaState, outBuf, size); in handleDecrypt() 220 const uint32_t *calcHash = sha2finish(&shaState); in handleDecrypt()
|