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

  /device/google/contexthub/lib/include/nanohub/
rsa.h 23 #define RSA_LIMBS ((RSA_LEN + 31)/ 32)
24 #define RSA_BYTES sizeof(uint32_t[RSA_LIMBS])
28 uint32_t tmpA[RSA_LIMBS * 2];
29 uint32_t tmpB[RSA_LIMBS + 1];
32 uint32_t tmpC[RSA_LIMBS + 1];
34 uint32_t tmpC[RSA_LIMBS * 2];
  /device/google/contexthub/lib/nanohub/
rsa.c 38 limbsh = RSA_LIMBS - 1;
44 while (!(tmp[RSA_LIMBS] & 0x80000000)) {
45 for (i = RSA_LIMBS; i > 0; i--) {
59 for (i = RSA_LIMBS; i >= 0; i--) {
68 for (i = 0; i <= RSA_LIMBS; i++) {
76 for (i = RSA_LIMBS + limbsh + 1; i < RSA_LIMBS * 2; i++) {
96 for (i = 0; i < RSA_LIMBS; i++) {
112 static void biMulIterative(uint32_t *ret, const uint32_t *a, const uint32_t *b, uint32_t step) //ret = a * b, call with step = [0..RSA_LIMBS)
123 for (j = 0; j < RSA_LIMBS; j++)
    [all...]
  /device/google/contexthub/util/nanoapp_sign/
nanoapp_sign.c 118 uint32_t num[RSA_LIMBS];
119 uint32_t exponent[RSA_LIMBS];
120 uint32_t modulus[RSA_LIMBS];
130 for (i = 0; i < RSA_LIMBS; i++)
134 printHashRev(stderr, "RSA cyphertext", rsa->num, RSA_LIMBS);
143 printHashRev(stderr, "RSA plaintext", rsaResult, RSA_LIMBS);
146 if ((rsaResult[RSA_LIMBS - 1] & 0xffff0000) != 0x00020000) {
152 if (!(rsaResult[RSA_LIMBS - 1] & 0xff00) || !(rsaResult[RSA_LIMBS - 1] & 0xff)) {
164 for (i = 9; i < RSA_LIMBS - 1; i++)
    [all...]
  /device/google/contexthub/firmware/os/core/
nanohubCommand.c 188 for (i = 0; ptr && i < numKeys; i++, ptr += RSA_LIMBS) {
    [all...]

Completed in 197 milliseconds