Lines Matching refs:RK
270 RK[indexes[(INDEX)][(OFFSET)][i]] = TK[ i ]; \
322 uint32_t *RK; in mbedtls_camellia_setkey_enc() local
331 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
334 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
415 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
432 uint32_t *RK; in mbedtls_camellia_setkey_dec() local
446 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
449 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
450 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
451 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
452 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
456 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
457 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
462 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
463 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
464 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
465 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
482 uint32_t *RK, X[4]; in mbedtls_camellia_crypt_ecb() local
492 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
499 X[0] ^= *RK++; in mbedtls_camellia_crypt_ecb()
500 X[1] ^= *RK++; in mbedtls_camellia_crypt_ecb()
501 X[2] ^= *RK++; in mbedtls_camellia_crypt_ecb()
502 X[3] ^= *RK++; in mbedtls_camellia_crypt_ecb()
506 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
507 RK += 2; in mbedtls_camellia_crypt_ecb()
508 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
509 RK += 2; in mbedtls_camellia_crypt_ecb()
510 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
511 RK += 2; in mbedtls_camellia_crypt_ecb()
512 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
513 RK += 2; in mbedtls_camellia_crypt_ecb()
514 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
515 RK += 2; in mbedtls_camellia_crypt_ecb()
516 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
517 RK += 2; in mbedtls_camellia_crypt_ecb()
520 FL(X[0], X[1], RK[0], RK[1]); in mbedtls_camellia_crypt_ecb()
521 RK += 2; in mbedtls_camellia_crypt_ecb()
522 FLInv(X[2], X[3], RK[0], RK[1]); in mbedtls_camellia_crypt_ecb()
523 RK += 2; in mbedtls_camellia_crypt_ecb()
527 X[2] ^= *RK++; in mbedtls_camellia_crypt_ecb()
528 X[3] ^= *RK++; in mbedtls_camellia_crypt_ecb()
529 X[0] ^= *RK++; in mbedtls_camellia_crypt_ecb()
530 X[1] ^= *RK++; in mbedtls_camellia_crypt_ecb()