8

A short while ago a paper got published on PRESENT: An Ultra-Lightweight Block Cipher by Andrey Bogdanov et al becoming ISO standard 29192-2:2012.

Is there anyone that has a C#, Delphi or FreePascal implementation with unit tests?

This was asked here and I'm just trying to help.

Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
  • 3
    What made you think this is appropriate for SO? You have been a registered user for long enough to know this is not constructive. – Oded Mar 06 '12 at 13:22
  • 2
    @Oded: please offline explain why "This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion." as I think it involves facts, references and a request for specific expertise. You can reach me at firstname at lastname dot com. I didn't ask it here because I wanted to keep the Q/A in a smaller cicle before widening it, but my widening would have been SO. – Jeroen Wiert Pluimers Mar 06 '12 at 15:00
  • 1
    @JeroenWiertPluimers - This is a request for code. I fully appreciate that the OP wants to help, but the only answers possible are "here you go there is the code you are asking". As such, it is not constructive. – Oded Mar 06 '12 at 15:10
  • 2
    I can imagine other answers like "here is a project trying to accomplish this in such and such language, please join it", or "here is an implementation in a different language, can you try this as a starter". – Jeroen Wiert Pluimers Mar 06 '12 at 16:29
  • 4
    @Oded. I strongly disagree. This is fairly new and a lot of people are not even aware that it exists. Any reference provided could help. It's not like a homework question or gimme teh codz one. As for the "likely solicit opinion, debate, arguments, polling, or extended discussion", I don't see any of this in that question. – Francesca Mar 06 '12 at 18:58
  • looks more like linkspam for me – OnTheFly Mar 07 '12 at 04:26
  • @user539484 it is not meant as linkspam. But I can understand you see it as such. If so: my apologies. – Jeroen Wiert Pluimers Mar 07 '12 at 10:39
  • 3
    Voted to reopen. I find it troubling that asking for an Implementatio of Algorithm X in Language Y might be considered off topic as per the FAQ. This is a real question. – Warren P Mar 08 '12 at 00:56
  • 2
    Humm, very strange that this had to be debated. A question about a bleeding edge technology and it get's closed? Linkspam is more likely to give you infections, not more knowledge. Thanks for the re-open guys! – Gustavo Carreno Mar 11 '12 at 22:48

1 Answers1

6

People at the Shanghai Jiao Tong University implemented an 8-bit version of this algorithm in C.

Thanks jecevans for commenting this answer on my blog.

Edit 2: more reference implementations

The PRESENT (cipher) wikipedia page recently added a link to reference implementations in C and Python that include test vectors usable for unit testing.

Edit 3 some literature on PRESENT

Edit 1 (as per request by RBA) the entire response from Jecevans:

Jecevans said

2012/03/06 at 16:53 e There is a C implementation here that should not be to difficult to port. It leaves out the possibility of a 128 bit key though.

http://cis.sjtu.edu.cn/index.php/Software_Implementation_of_Block_Cipher_PRESENT_for_8-Bit_Platforms

Community
  • 1
  • 1
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154