Lines Matching refs:idx
295 int idx; in mbedtls_camellia_setkey_enc() local
309 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc()
311 case 256: ctx->nr = 4; idx = 1; break; in mbedtls_camellia_setkey_enc()
374 SHIFT_AND_PLACE(idx, 0); in mbedtls_camellia_setkey_enc()
378 SHIFT_AND_PLACE(idx, 1); in mbedtls_camellia_setkey_enc()
382 SHIFT_AND_PLACE(idx, 2); in mbedtls_camellia_setkey_enc()
386 SHIFT_AND_PLACE(idx, 3); in mbedtls_camellia_setkey_enc()
391 if (transposes[idx][i] != -1) { in mbedtls_camellia_setkey_enc()
392 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
407 int idx, ret; in mbedtls_camellia_setkey_dec() local
421 idx = (ctx->nr == 4); in mbedtls_camellia_setkey_dec()
424 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
431 for (i = 22 + 8 * idx, SK -= 6; i > 0; i--, SK -= 4) { in mbedtls_camellia_setkey_dec()