Distinguishing cryptographic properties: hiding and collision resistance
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I saw from Another question the following definitions, which clarifies somewhat:
Collision-resistance:
Given: $x$ and $h(x)$
Hard to find: $y$ that is distinct from $x$ and such that $h(y)=h(x)$.
Hiding:
Given: $h(r|x)$, where $r|x$ is the concatenation of $r$ and $x$
Secret: $x$ and a highly-unlikely-and-randomly-chosen $r$
Hard to find: $y$ such that $h(y)=h(r|x)$.
This is different from collision-resistance in that it doesnâÂÂt matter whether or not $y=r|x$.
My question:
Does this mean that any hash function $h(x)$ is non-hiding if there is no secret $r$, that is, the hash is $h(x)$, not $h(r|x)$?
Example:
Say I make a simple hash function $h(x) = g^x pmod n$, where $g$ is the generator for the group. The hash should be Collision resistant with $$p(x_1 ne x_2, h(x_1) = h(x_2)) = frac12^fracn2$$ but I would think it is hiding as well?
cryptography hash-function
add a comment |Â
up vote
0
down vote
favorite
I saw from Another question the following definitions, which clarifies somewhat:
Collision-resistance:
Given: $x$ and $h(x)$
Hard to find: $y$ that is distinct from $x$ and such that $h(y)=h(x)$.
Hiding:
Given: $h(r|x)$, where $r|x$ is the concatenation of $r$ and $x$
Secret: $x$ and a highly-unlikely-and-randomly-chosen $r$
Hard to find: $y$ such that $h(y)=h(r|x)$.
This is different from collision-resistance in that it doesnâÂÂt matter whether or not $y=r|x$.
My question:
Does this mean that any hash function $h(x)$ is non-hiding if there is no secret $r$, that is, the hash is $h(x)$, not $h(r|x)$?
Example:
Say I make a simple hash function $h(x) = g^x pmod n$, where $g$ is the generator for the group. The hash should be Collision resistant with $$p(x_1 ne x_2, h(x_1) = h(x_2)) = frac12^fracn2$$ but I would think it is hiding as well?
cryptography hash-function
You "collision resistance" is usually called "second preimage resistant". Collision resistance means for it to be hard to find $x neq y$ with $h(x) = h(y)$.
â Henno Brandsma
Sep 9 at 10:24
$r$ is given in the hiding property, right? What's the difference between "highly unlikely" and randomly chosen?
â Henno Brandsma
Sep 9 at 10:25
"generator for the group". What group? The invertible integers modulo $n$? If so, that's not "collision resistant" in your weird sense of the word.
â Henno Brandsma
Sep 9 at 10:27
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I saw from Another question the following definitions, which clarifies somewhat:
Collision-resistance:
Given: $x$ and $h(x)$
Hard to find: $y$ that is distinct from $x$ and such that $h(y)=h(x)$.
Hiding:
Given: $h(r|x)$, where $r|x$ is the concatenation of $r$ and $x$
Secret: $x$ and a highly-unlikely-and-randomly-chosen $r$
Hard to find: $y$ such that $h(y)=h(r|x)$.
This is different from collision-resistance in that it doesnâÂÂt matter whether or not $y=r|x$.
My question:
Does this mean that any hash function $h(x)$ is non-hiding if there is no secret $r$, that is, the hash is $h(x)$, not $h(r|x)$?
Example:
Say I make a simple hash function $h(x) = g^x pmod n$, where $g$ is the generator for the group. The hash should be Collision resistant with $$p(x_1 ne x_2, h(x_1) = h(x_2)) = frac12^fracn2$$ but I would think it is hiding as well?
cryptography hash-function
I saw from Another question the following definitions, which clarifies somewhat:
Collision-resistance:
Given: $x$ and $h(x)$
Hard to find: $y$ that is distinct from $x$ and such that $h(y)=h(x)$.
Hiding:
Given: $h(r|x)$, where $r|x$ is the concatenation of $r$ and $x$
Secret: $x$ and a highly-unlikely-and-randomly-chosen $r$
Hard to find: $y$ such that $h(y)=h(r|x)$.
This is different from collision-resistance in that it doesnâÂÂt matter whether or not $y=r|x$.
My question:
Does this mean that any hash function $h(x)$ is non-hiding if there is no secret $r$, that is, the hash is $h(x)$, not $h(r|x)$?
Example:
Say I make a simple hash function $h(x) = g^x pmod n$, where $g$ is the generator for the group. The hash should be Collision resistant with $$p(x_1 ne x_2, h(x_1) = h(x_2)) = frac12^fracn2$$ but I would think it is hiding as well?
cryptography hash-function
cryptography hash-function
edited Sep 4 at 11:26
GoodDeeds
10.2k21335
10.2k21335
asked Sep 4 at 11:18
owninggreendragsdude
1
1
You "collision resistance" is usually called "second preimage resistant". Collision resistance means for it to be hard to find $x neq y$ with $h(x) = h(y)$.
â Henno Brandsma
Sep 9 at 10:24
$r$ is given in the hiding property, right? What's the difference between "highly unlikely" and randomly chosen?
â Henno Brandsma
Sep 9 at 10:25
"generator for the group". What group? The invertible integers modulo $n$? If so, that's not "collision resistant" in your weird sense of the word.
â Henno Brandsma
Sep 9 at 10:27
add a comment |Â
You "collision resistance" is usually called "second preimage resistant". Collision resistance means for it to be hard to find $x neq y$ with $h(x) = h(y)$.
â Henno Brandsma
Sep 9 at 10:24
$r$ is given in the hiding property, right? What's the difference between "highly unlikely" and randomly chosen?
â Henno Brandsma
Sep 9 at 10:25
"generator for the group". What group? The invertible integers modulo $n$? If so, that's not "collision resistant" in your weird sense of the word.
â Henno Brandsma
Sep 9 at 10:27
You "collision resistance" is usually called "second preimage resistant". Collision resistance means for it to be hard to find $x neq y$ with $h(x) = h(y)$.
â Henno Brandsma
Sep 9 at 10:24
You "collision resistance" is usually called "second preimage resistant". Collision resistance means for it to be hard to find $x neq y$ with $h(x) = h(y)$.
â Henno Brandsma
Sep 9 at 10:24
$r$ is given in the hiding property, right? What's the difference between "highly unlikely" and randomly chosen?
â Henno Brandsma
Sep 9 at 10:25
$r$ is given in the hiding property, right? What's the difference between "highly unlikely" and randomly chosen?
â Henno Brandsma
Sep 9 at 10:25
"generator for the group". What group? The invertible integers modulo $n$? If so, that's not "collision resistant" in your weird sense of the word.
â Henno Brandsma
Sep 9 at 10:27
"generator for the group". What group? The invertible integers modulo $n$? If so, that's not "collision resistant" in your weird sense of the word.
â Henno Brandsma
Sep 9 at 10:27
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2904923%2fdistinguishing-cryptographic-properties-hiding-and-collision-resistance%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You "collision resistance" is usually called "second preimage resistant". Collision resistance means for it to be hard to find $x neq y$ with $h(x) = h(y)$.
â Henno Brandsma
Sep 9 at 10:24
$r$ is given in the hiding property, right? What's the difference between "highly unlikely" and randomly chosen?
â Henno Brandsma
Sep 9 at 10:25
"generator for the group". What group? The invertible integers modulo $n$? If so, that's not "collision resistant" in your weird sense of the word.
â Henno Brandsma
Sep 9 at 10:27