HomeSort by relevance Sort by last modified time
    Searched refs:shaState (Results 1 - 2 of 2) sorted by null

  /device/google/contexthub/util/nanoapp_sign/
nanoapp_sign.c 228 struct Sha2state shaState;
261 sha2init(&shaState);
262 sha2processBytes(&shaState, buf, bufUsed - sigData);
266 if (!validateSignature(sigPack, rsa, verbose, (uint32_t*)sha2finish(&shaState), false)) {
277 sha2init(&shaState);
278 sha2processBytes(&shaState, sigPack+RSA_BYTES, RSA_BYTES);
290 sha2init(&shaState);
291 sha2processBytes(&shaState, buf, bufUsed - SIGNATURE_BLOCK_SIZE);
292 hash = (uint32_t*)sha2finish(&shaState);
318 struct Sha2state shaState;
    [all...]
  /device/google/contexthub/util/nanoapp_encr/
nanoapp_encr.c 62 struct Sha2state shaState;
126 sha2init(&shaState);
136 sha2processBytes(&shaState, data + i, sz);
140 const uint32_t *hash = sha2finish(&shaState);
157 struct Sha2state shaState;
203 sha2init(&shaState);
210 sha2processBytes(&shaState, outBuf, size);
220 const uint32_t *calcHash = sha2finish(&shaState);

Completed in 82 milliseconds