Lines Matching refs:RK
293 RK[indexes[(INDEX)][(OFFSET)][i]] = TK[ i ]; \
345 uint32_t *RK; in mbedtls_camellia_setkey_enc() local
354 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
357 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
438 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
455 uint32_t *RK; in mbedtls_camellia_setkey_dec() local
469 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
472 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
473 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
474 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
475 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
479 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
480 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
485 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
486 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
487 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
488 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
505 uint32_t *RK, X[4]; in mbedtls_camellia_crypt_ecb() local
515 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
522 X[0] ^= *RK++; in mbedtls_camellia_crypt_ecb()
523 X[1] ^= *RK++; in mbedtls_camellia_crypt_ecb()
524 X[2] ^= *RK++; in mbedtls_camellia_crypt_ecb()
525 X[3] ^= *RK++; in mbedtls_camellia_crypt_ecb()
529 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
530 RK += 2; in mbedtls_camellia_crypt_ecb()
531 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
532 RK += 2; in mbedtls_camellia_crypt_ecb()
533 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
534 RK += 2; in mbedtls_camellia_crypt_ecb()
535 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
536 RK += 2; in mbedtls_camellia_crypt_ecb()
537 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
538 RK += 2; in mbedtls_camellia_crypt_ecb()
539 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
540 RK += 2; in mbedtls_camellia_crypt_ecb()
543 FL(X[0], X[1], RK[0], RK[1]); in mbedtls_camellia_crypt_ecb()
544 RK += 2; in mbedtls_camellia_crypt_ecb()
545 FLInv(X[2], X[3], RK[0], RK[1]); in mbedtls_camellia_crypt_ecb()
546 RK += 2; in mbedtls_camellia_crypt_ecb()
550 X[2] ^= *RK++; in mbedtls_camellia_crypt_ecb()
551 X[3] ^= *RK++; in mbedtls_camellia_crypt_ecb()
552 X[0] ^= *RK++; in mbedtls_camellia_crypt_ecb()
553 X[1] ^= *RK++; in mbedtls_camellia_crypt_ecb()