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

  /device/google/contexthub/lib/include/nanohub/
rsa.h 24 #define RSA_BYTES sizeof(uint32_t[RSA_LIMBS])
25 #define RSA_WORDS (RSA_BYTES / sizeof(uint32_t)) //limbs may change in size, but words are always same :)
  /device/google/contexthub/lib/nanohub/
rsa.c 35 memcpy(tmp + 1, denum, RSA_BYTES);
90 memcpy(tmp + 1, denum, RSA_BYTES);
119 memset(ret, 0, RSA_BYTES * 2);
152 * memcpy(state->tmpB, a, RSA_BYTES);
156 * memcpy(state->tmpB, state->tmpA, RSA_BYTES);
174 memcpy(state->tmpB, a, RSA_BYTES);
203 memcpy(state->tmpB, state->tmpA, RSA_BYTES);
248 memcpy(state->tmpC, a, RSA_BYTES); //tC will hold our powers of a
250 memset(state->tmpA, 0, RSA_BYTES * 2); //tA will hold result
256 memcpy(state->tmpB, state->tmpA, RSA_BYTES);
    [all...]
  /device/google/contexthub/util/nanoapp_sign/
nanoapp_sign.c 136 memcpy(rsa->modulus, sigPack + RSA_BYTES, RSA_BYTES);
189 #define SIGNATURE_BLOCK_SIZE (2 * RSA_BYTES)
199 for (i = 0; i < (int)RSA_BYTES; i++) {
220 ret = fwrite(rsa->num, 1, RSA_BYTES, out) == RSA_BYTES ? 0 : 2;
232 memcpy(masterPubKey, rsa->modulus, RSA_BYTES);
270 if (memcmp(masterPubKey, rsa->modulus, RSA_BYTES) == 0) {
278 sha2processBytes(&shaState, sigPack+RSA_BYTES, RSA_BYTES);
    [all...]
  /device/google/contexthub/firmware/os/core/
bl.c 365 if (memcmp(rsaKey, osSigPubkey, RSA_BYTES) == 0)
615 expectedSize = sizeof(*hdr) + hdr->size + 2 * RSA_BYTES;
nanohubCommand.c 198 if (!memcmp(gotKey, ptr, RSA_BYTES)) {
    [all...]
appSec.c 34 #define APP_SIG_SIZE RSA_BYTES
45 #define STATE_RXING_SIG_HASH 3 // each is RSA_BYTES bytes
46 #define STATE_RXING_SIG_PUBKEY 4 // each is RSA_BYTES bytes

Completed in 5584 milliseconds