If a PPT adversary can influence the key of a MAC function, is it still secure?
For example, if we define $f$ as follow:
$f(r,x) = HMAC_{(k\oplus r)}$(x)
If the adversary has oracle access to $f$, how likely he can predict the key $k$?
For respecting the persons who have answered the above question, I do not change it. The actual scenario is as follows:
I have a module that gets $(m,r)$ and generates $(m,x,HMAC_{k \oplus r}(m \parallel x))$ where the $k$ is the secret of the module and $x$ is the message added by the module. So:
$f(m,r)=(m,x,HMAC_{k \oplus r}(m \parallel x))$
Can I claim that every tuple $(m,x,t)$ s.t. $t=HMAC_{k \oplus r}(m \parallel x))$ is generated by the module?
P.S. I am still curious about the above claim. But, I just noticed that if I change $f$ as follows:
$f(m,r)=(m,x,HMAC_k(m \parallel x \parallel r))$
then, I can claim every tuple $(m,x,t)$ s.t. $t=HMAC_k(m \parallel x \parallel r))$ is generated by the according to the definition of MAC.