bottch has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys. I need to translate some C code into Perl. I want to decrypt NS1crypted stuff on solaris. There is a tool written in C by the opensolaris project.
(http://stuff.iain.cx/2008/05/03/ns103eb2365be169abbe3a45088a10a/)I need a Perlscript what does the same thing so i started to translate this code. But I kinda stuck in a function where I keep getting different return values. Here's the C code i want to translate:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libsldap/common/ns_crypt.cI stuck in the c_setup function.
Perlcode: http://pastebin.com/ucg6V0CeI guess it's some stuff with signed-overflow integers in the C-code but I don't really have an idea. I'm trying this for days now.. please help me. regards,bottch
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: C code translation to Perl
by jethro (Monsignor) on Jan 30, 2012 at 16:28 UTC | |
|
Re: C code translation to Perl
by InfiniteSilence (Curate) on Jan 31, 2012 at 03:27 UTC | |
by bottch (Initiate) on Jan 31, 2012 at 08:51 UTC | |
by BrowserUk (Patriarch) on Jan 31, 2012 at 09:40 UTC | |
by bottch (Initiate) on Jan 31, 2012 at 16:18 UTC |