Skip to main content
Notice removed Draw attention by kelalaka
Bounty Ended with Squeamish Ossifrage's answer chosen by kelalaka
polish
Source Link
kelalaka
  • 49.5k
  • 12
  • 118
  • 205

Suppose $H$ is a hash function; why is $H(k\mathbin\|H(k\mathbin\|m))$$$H(k\mathbin\|H(k\mathbin\|m))$$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1\mathbin\|H(k_2\mathbin\|m))$ .$$H(k_1\mathbin\|H(k_2\mathbin\|m)).$$ Why don't we use $H(k\mathbin\|H(k\mathbin\|m))$,$$H(k\mathbin\|H(k\mathbin\|m)),$$ which has only one key?

Suppose $H$ is a hash function; why is $H(k\mathbin\|H(k\mathbin\|m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1\mathbin\|H(k_2\mathbin\|m))$ . Why don't we use $H(k\mathbin\|H(k\mathbin\|m))$, which has only one key?

Suppose $H$ is a hash function; why is $$H(k\mathbin\|H(k\mathbin\|m))$$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $$H(k_1\mathbin\|H(k_2\mathbin\|m)).$$ Why don't we use $$H(k\mathbin\|H(k\mathbin\|m)),$$ which has only one key?

Notice added Draw attention by kelalaka
Bounty Started worth 50 reputation by kelalaka
mathjax formatting
Source Link
forest
  • 15.5k
  • 2
  • 48
  • 103

Suppose $H$ is a hash function; why is $H(k||H(k||m))$$H(k\mathbin\|H(k\mathbin\|m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1 ||H(k_2 ||m))$$H(k_1\mathbin\|H(k_2\mathbin\|m))$ . Why don't we use $H(k||H(k||m))$$H(k\mathbin\|H(k\mathbin\|m))$, which has only one key?

Suppose $H$ is a hash function; why is $H(k||H(k||m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1 ||H(k_2 ||m))$ . Why don't we use $H(k||H(k||m))$, which has only one key?

Suppose $H$ is a hash function; why is $H(k\mathbin\|H(k\mathbin\|m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1\mathbin\|H(k_2\mathbin\|m))$ . Why don't we use $H(k\mathbin\|H(k\mathbin\|m))$, which has only one key?

clarify title
Source Link
otus
  • 32.4k
  • 5
  • 73
  • 167

Why does HMAC definition by using only one keyuse two different keys?

Why does HMAC definition by using only one keyuse two different keys?

Suppose $H$ is a hash function; why is $H(k||H(k||m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1 ||H(k_2 ||m))$ . Why don't we use $H(k||H(k||m))$, which has only one key?

HMAC definition by using only one key

Suppose $H$ is a hash function; why is $H(k||H(k||m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1 ||H(k_2 ||m))$ . Why don't we use $H(k||H(k||m))$, which has only one key?

Why does HMAC use two different keys?

Suppose $H$ is a hash function; why is $H(k||H(k||m))$ not secure?

See this HMAC definition. In there, indeed two keys are used and the mac algorithm is $H(k_1 ||H(k_2 ||m))$ . Why don't we use $H(k||H(k||m))$, which has only one key?

Tweeted twitter.com/#!/StackCrypto/status/466378710971867138
improved grammar
Source Link
user991
user991
Loading
Source Link
abdolahS
  • 439
  • 5
  • 11
Loading