Lines Matching refs:idx
345 int idx; in mbedtls_camellia_setkey_enc() local
360 case 128: ctx->nr = 3; idx = 0; break; in mbedtls_camellia_setkey_enc()
362 case 256: ctx->nr = 4; idx = 1; break; in mbedtls_camellia_setkey_enc()
419 SHIFT_AND_PLACE( idx, 0 ); in mbedtls_camellia_setkey_enc()
423 SHIFT_AND_PLACE( idx, 1 ); in mbedtls_camellia_setkey_enc()
427 SHIFT_AND_PLACE( idx, 2 ); in mbedtls_camellia_setkey_enc()
431 SHIFT_AND_PLACE( idx, 3 ); in mbedtls_camellia_setkey_enc()
436 if( transposes[idx][i] != -1 ) { in mbedtls_camellia_setkey_enc()
437 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
450 int idx, ret; in mbedtls_camellia_setkey_dec() local
463 idx = ( ctx->nr == 4 ); in mbedtls_camellia_setkey_dec()
466 SK = cty.rk + 24 * 2 + 8 * idx * 2; in mbedtls_camellia_setkey_dec()
473 for( i = 22 + 8 * idx, SK -= 6; i > 0; i--, SK -= 4 ) in mbedtls_camellia_setkey_dec()