Lines Matching refs:RK
297 RK[indexes[(INDEX)][(OFFSET)][i]] = TK[ i ]; \
347 uint32_t *RK; in mbedtls_camellia_setkey_enc() local
353 RK = ctx->rk; in mbedtls_camellia_setkey_enc()
356 memset( RK, 0, sizeof(ctx->rk) ); in mbedtls_camellia_setkey_enc()
437 RK[32 + 12 * idx + i] = RK[transposes[idx][i]]; in mbedtls_camellia_setkey_enc()
453 uint32_t *RK; in mbedtls_camellia_setkey_dec() local
465 RK = ctx->rk; in mbedtls_camellia_setkey_dec()
468 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
469 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
470 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
471 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
475 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
476 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
481 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
482 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
483 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
484 *RK++ = *SK++; in mbedtls_camellia_setkey_dec()
501 uint32_t *RK, X[4]; in mbedtls_camellia_crypt_ecb() local
506 RK = ctx->rk; in mbedtls_camellia_crypt_ecb()
513 X[0] ^= *RK++; in mbedtls_camellia_crypt_ecb()
514 X[1] ^= *RK++; in mbedtls_camellia_crypt_ecb()
515 X[2] ^= *RK++; in mbedtls_camellia_crypt_ecb()
516 X[3] ^= *RK++; in mbedtls_camellia_crypt_ecb()
520 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
521 RK += 2; in mbedtls_camellia_crypt_ecb()
522 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
523 RK += 2; in mbedtls_camellia_crypt_ecb()
524 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
525 RK += 2; in mbedtls_camellia_crypt_ecb()
526 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
527 RK += 2; in mbedtls_camellia_crypt_ecb()
528 camellia_feistel( X, RK, X + 2 ); in mbedtls_camellia_crypt_ecb()
529 RK += 2; in mbedtls_camellia_crypt_ecb()
530 camellia_feistel( X + 2, RK, X ); in mbedtls_camellia_crypt_ecb()
531 RK += 2; in mbedtls_camellia_crypt_ecb()
534 FL(X[0], X[1], RK[0], RK[1]); in mbedtls_camellia_crypt_ecb()
535 RK += 2; in mbedtls_camellia_crypt_ecb()
536 FLInv(X[2], X[3], RK[0], RK[1]); in mbedtls_camellia_crypt_ecb()
537 RK += 2; in mbedtls_camellia_crypt_ecb()
541 X[2] ^= *RK++; in mbedtls_camellia_crypt_ecb()
542 X[3] ^= *RK++; in mbedtls_camellia_crypt_ecb()
543 X[0] ^= *RK++; in mbedtls_camellia_crypt_ecb()
544 X[1] ^= *RK++; in mbedtls_camellia_crypt_ecb()