News for hackers. Stuff that matters.

fantastisch

Re:Trump threatens to 'close' down social media platforms on Wednesday May 27, 2020 @09:51AM (#23323189)
Agreed. Pretty much asking for an intervention. Practically begging for a crackdown. Larger plan?
Re:Trump threatens to 'close' down social media platforms on Wednesday May 27, 2020 @09:51AM (#23323182)
When private organizations are regulating the speech of the population? It's a necessary slope.

Because doing it without centralized government control is bad. But regulation of speech can be good. Take a look at https://www.globaltimes.cn/content/1189120.shtml for an interesting discussion.

Re:Show HN: Discohash – Fast Hash on Tuesday May 26, 2020 @10:59AM (#23311987)
you need others to not make crypto claims, but you're so sure making your crypto claim that it's not cryptographic.

it's always easy to front as an expert spectator and believe others work is no good. why don't you back it up with some effort?

I believe it is a crypto hash. so..a fun challenge?

how about this for a fun challenge, why don't you post a cryptanalysis and I'll link it from the README.

Thanks for the beamsplitter link!

maybe it is designed as a crypto hash

Re:Show HN: Discohash – Fast Hash on Tuesday May 26, 2020 @10:55AM (#23311941)
Can you break this? If no, so your claim is basically hot air, is that right?
Re:Show HN: Discohash – Fast Hash on Tuesday May 26, 2020 @05:32AM (#23308969)
> middle of the pack in smhasher

for all hashes. lot of those top ones are not crypto hashes.

> The ecrypt result is completely irrelevant when this can not be in any way be considered cryptographically secure

Break it first, then you can say that. otherwise, what would you know?

not sure if it's because English is not your first language or just had a grumpy day or something else, this came across veeery negative. Be positive in your comments on work.

if you want to be critical doing so with positivity gives it more credibility because it shows you're able to see both sides. leading people to assume you're more likely making a balanced rather than a biased assessment, whether or not that's true.

Re:Gravitational Waves: The Silent Disaster on Tuesday May 26, 2020 @04:57AM (#23308796)
well I've got a crazy theory for you, then.

I actually think there's something like a black hole inside nearly every Star.

Not just a dark core. But a region of emptiness.

BTW would it be possible to have an antimatter star? Like ball of antimatter interacting at the surface with matter and looking like a star

Re:Show HN: Discohash – Fast Hash on Sunday May 24, 2020 @01:04AM (#23289253)
Can you break 128-bits?

How should I say it?

Re:Show HN: Discohash – Fast Hash on Sunday May 24, 2020 @12:36AM (#23289128)
No probs. I think your idea of unifying the two loops is a good one.

A new version that uses the idea and overcomes the challenges would be great, and would simplify the code even more.

If you had a way to make a start on it, I welcome your PR.

Re:Show HN: Discohash – Fast Hash on Saturday May 23, 2020 @10:43PM (#23288656)
No because I think that library is for encryption. This is for hashing.
Re:Show HN: Discohash – Fast Hash on Saturday May 23, 2020 @02:31PM (#23285234)
Great question, and thank you, Salvatore!

Some reasons for that are: different hashes for s and s\0 (without explicitly using length) to make it harder to create collisions, related to as you say better distribution/avalanche for short strings, also design-wise I like the asymmetry that strings not perfectly divisible by 8 will be treated a little differently. I just think that makes it better overall.

Re:Show HN: Discohash – Fast Hash on Saturday May 23, 2020 @12:57PM (#23284496)
Thank you, Austin!

BTW, not sure exactly what you mean by cross-half mixing, but I'm assuming it means mixing both halves of the 128 bit state with each other. There is that, on 3 lines 91[0], 100 and 108.

The 128 bit mix, stirs two adjacent blocks of 64 bits. Those 3 lines can mix blocks 1 & 2.

Subsequent mixes on either half then propagate that cross mix. So it does use the full 256 bit state.

Is that what you meant?

[0]: https://github.com/cris691/discohash/blob/master/src/discoha...

Re:Show HN: Discohash – Fast Hash on Saturday May 23, 2020 @12:53PM (#23284459)
> DiscoHash is included in SMHASHER [3] but its benchmark results aren't.

They are included, but understandably you missed them because it's also called BEBB4185, stated in README. Find BEBB4185 line in SMHASHER Readme.

Good question on the memory bandwidth. From memory it was a multicore system, so I think that has a higher memory bandwidth than a single core. Thanks for the STREAM thing!

Re:Show HN: Discohash – Fast Hash on Saturday May 23, 2020 @09:28AM (#23282762)
Simple hash, 128-bit mixing function is just:

  mix(const int A)
    {
      const int B = A+1;
      
      ds[A] *= P;
      ds[A] = rot(ds[A], 23);
      ds[A] *= Q;
      
      ds[B] ^= ds[A];

      ds[B] *= P;
      ds[B] = rot(ds[B], 23);
      ds[B] *= Q;
    }
with P and Q prime.