Lines Matching refs:idx
320 int idx; in mbedtls_camellia_setkey_enc() local
338 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc()
340 case 256: ctx->nr = 4; idx = 1; break; in mbedtls_camellia_setkey_enc()
397 SHIFT_AND_PLACE( idx, 0 ); in mbedtls_camellia_setkey_enc()
401 SHIFT_AND_PLACE( idx, 1 ); in mbedtls_camellia_setkey_enc()
405 SHIFT_AND_PLACE( idx, 2 ); in mbedtls_camellia_setkey_enc()
409 SHIFT_AND_PLACE( idx, 3 ); in mbedtls_camellia_setkey_enc()
414 if( transposes[idx][i] != -1 ) { in mbedtls_camellia_setkey_enc()
415 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
429 int idx, ret; in mbedtls_camellia_setkey_dec() local
444 idx = ( ctx->nr == 4 ); in mbedtls_camellia_setkey_dec()
447 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
454 for( i = 22 + 8 * idx, SK -= 6; i > 0; i--, SK -= 4 ) in mbedtls_camellia_setkey_dec()