Anyone with a C#, Delphi or FreePascal implementation of the PRESENT Ultra-Lightweight Block Cipher encryption?
Asked Answered
T

1

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.

Telson answered 6/3, 2012 at 13:17 Comment(9)
What made you think this is appropriate for SO? You have been a registered user for long enough to know this is not constructive.Singhalese
@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.Provender
@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.Singhalese
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".Provender
@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.Bolide
looks more like linkspam for meLamina
@user539484 it is not meant as linkspam. But I can understand you see it as such. If so: my apologies.Provender
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.Sams
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!Telson
P
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

Provender answered 6/3, 2012 at 16:33 Comment(1)
@RBA will quote the response shortly.Provender

© 2022 - 2024 — McMap. All rights reserved.