flat assembler
Message board for the users of flat assembler.

Index > Windows > RSA in dll

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox
do you have rsa encryption dlls with simple api like (in key, in message, out ptr output)?
Post 10 May 2008, 12:36
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
asmrox wrote:
do you have rsa encryption dlls with simple api like (in key, in message, out ptr output)?
Sure I do, it is in the ADVAPI32.DLL. Comes standard on all Windows OSes.
Post 10 May 2008, 12:59
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
I prefer libtomcrypt - you can build it to DLL easily.
Post 10 May 2008, 18:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox
libtomcrypt is a dll?
i really dont have patience for those damn makefiles and other shit form .zip all but no .DLL/.EXE !
Post 10 May 2008, 20:59
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
not sure if there is precompiled DLL version, but compiling it yourself could easily be just few clicks in MS Visual Studio, or something like "make dll" command... Learning to use basic tools like makefiles is must-have for programmer.
Post 10 May 2008, 21:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox
Im not using visual studio, ive tried to download time ago it but... well i had to reinstall my windows after it.
I hate linux cuz of 1-command-downlaod-install, i prefer clean source file(s) with STANDARD c syntax compilable by dumb gcc (or pure asm opcode in .asm where i dont have to analyse macros just port to compiler).

And i dont wana be programmer, assembly is the future, sooner or later ill write code in it faster and better than anyone in delphi. Train, train and more train.

about the `dll`, explain me, please:
LibTomCrypt is a portable ISO C cryptographic library
not even a word about compiling...
But okay, its dll. Lets reverse engeneer makefile now:
there should be -o <dllname>.dll and --shared options
ctrl+f -shared > 0 found, okay
ctrl_f -o
-o src/ciphers/aes/aes_enc.o
well, whats the '.o' file? '.s0' = shared object on unix, '.dll' shared on win, but '.o'? and thats all of pure -o's
what can i do next?
lest go to \libtomcrypt-1.16\src, and \pk\rsa. wow, its finally rsa.
Quote:
C:\Documents and Settings\Administrator\Pulpit\libtomcrypt-1.16\src\pk\rsa>gcc *
.c -o *.exe -w

rsa_decrypt_key.c:11:22: tomcrypt.h: No such file or directory
rsa_encrypt_key.c:11:22: tomcrypt.h: No such file or directory
rsa_export.c:11:22: tomcrypt.h: No such file or directory
rsa_exptmod.c:11:22: tomcrypt.h: No such file or directory
rsa_free.c:11:22: tomcrypt.h: No such file or directory
rsa_import.c:11:22: tomcrypt.h: No such file or directory
rsa_make_key.c:11:22: tomcrypt.h: No such file or directory
rsa_sign_hash.c:11:22: tomcrypt.h: No such file or directory
rsa_verify_hash.c:11:22: tomcrypt.h: No such file or directory

great ^^ why not define data from headers in .c files? I DONT KNOW! YOU TELL ME!

after moving headers from ../../headers to same directory:
<here i considered writing additional program to redirect stderr>
Quote:
In file included from rsa_decrypt_key.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_encrypt_key.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_export.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_exptmod.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_free.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_import.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_make_key.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_sign_hash.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory
In file included from rsa_verify_hash.c:11:
tomcrypt.h:12:29: tomcrypt_custom.h: No such file or directory
tomcrypt.h:66:26: tomcrypt_cfg.h: No such file or directory
tomcrypt.h:67:29: tomcrypt_macros.h: No such file or directory
tomcrypt.h:68:29: tomcrypt_cipher.h: No such file or directory
tomcrypt.h:69:27: tomcrypt_hash.h: No such file or directory
tomcrypt.h:70:26: tomcrypt_mac.h: No such file or directory
tomcrypt.h:71:27: tomcrypt_prng.h: No such file or directory
tomcrypt.h:72:25: tomcrypt_pk.h: No such file or directory
tomcrypt.h:73:27: tomcrypt_math.h: No such file or directory
tomcrypt.h:74:27: tomcrypt_misc.h: No such file or directory
tomcrypt.h:75:29: tomcrypt_argchk.h: No such file or directory
tomcrypt.h:76:27: tomcrypt_pkcs.h: No such file or directory

all /h files are in same directory as am 1, and .c files.

As far as you can see compiling this shit is pure fun!
WHY DO THEY DO THAT? WHY THEY MAKE MY LIFE HARDER?

shift deleted with bang, googling advapi now...
Post 10 May 2008, 23:07
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
And i dont wana be programmer, assembly is the future, sooner or later ill write code in it faster and better than anyone in delphi. Train, train and more train.

You'll never write years worth of code faster than someone will download good library and learn how to use it. And if you write it fastly, it will be much inferior to code that was polished over years, like libtomcrypt.

Quote:
great ^^ why not define data from headers in .c files? I DONT KNOW! YOU TELL ME!

1. Things in .h files are not data definitions
2. Because those are shared in multiple .c files - doing it your way would be duplication, eg. stupid and hell to maintain

Quote:
As far as you can see compiling this shit is pure fun!
WHY DO THEY DO THAT? WHY THEY MAKE MY LIFE HARDER?

Because they want to support more than single platform / single OS / single compiler, and because they want maintainable code.

Way how that project is done is pretty much "industry standard" for portable ANSI C code. Yes, it is hell confusing first time, but you really should learn it, if you want to work in anything serious.
Post 11 May 2008, 00:40
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
AlexP



Joined: 14 Nov 2007
Posts: 561
Location: Out the window. Yes, that one.
AlexP
You should use the API for secure RSA
Post 13 May 2008, 12:53
View user's profile Send private message Visit poster's website Reply with quote
asmrox



Joined: 19 Jan 2008
Posts: 160
asmrox
i hape crypto~
it can be cracked, matter of time.

But i need to talk to server in rsa -.-
send just 1 packet with encrypted login/password. (i have the public key)
Post 13 May 2008, 15:39
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
it can be cracked, matter of time.

every encryption with can be cracked if you have enough time Laughing
Post 13 May 2008, 16:10
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
vid wrote:
Quote:
it can be cracked, matter of time.

every encryption with can be cracked if you have enough time Laughing
Except for quantum cryptography.
Post 13 May 2008, 16:36
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
Except for quantum cryptography

ermmm... why not? Never heard about this...
Post 13 May 2008, 20:43
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
vid wrote:
Quote:
Except for quantum cryptography

ermmm... why not? Never heard about this...
Fundamentally unbreakable, provably so. Check out my website to see why.
Post 14 May 2008, 03:02
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
next time before using this joke, check it first: http://www.google.com/search?q=quantum+cryptography+unbreakable

Razz
Post 14 May 2008, 08:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
Next time before refuting such a claim, check it first
the first link proposed by google wrote:
In the article, published in the journal IEEE Transactions on Information Theory, the authors propose a change that solves the problem.

"We weren't expecting to find a problem in quantum cryptography, of course, but it is a really complicated system. With our alteration, quantum cryptography will be a secure technology," says Jan-Åke Larsson.
RazzRazz
Post 14 May 2008, 08:55
View user's profile Send private message Visit poster's website Reply with quote
AlexP



Joined: 14 Nov 2007
Posts: 561
Location: Out the window. Yes, that one.
AlexP
Good luck with quantum, last I checked it was in a Sci-Fi with a processor that had a heck of a Tb/s bit rate, that's all I remember. Have fun with that!
Post 14 May 2008, 12:53
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
AlexP wrote:
Good luck with quantum, last I checked it was in a Sci-Fi with a processor that had a heck of a Tb/s bit rate, that's all I remember. Have fun with that!
You need to keep yourself better informed. It is real and is being used now, for real purposes, not just tests. Still not widespread of course, like all new things, it takes time to filter down to the masses.
Post 14 May 2008, 13:56
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Looks like I am too much behind... for what practical purpose are quantum computers used now?
Post 14 May 2008, 20:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
what about miracl? or libigo from witeg?
Post 14 May 2008, 20:20
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
vid wrote:
Looks like I am too much behind... for what practical purpose are quantum computers used now?
Quantum cryptography does not use a quantum computer, they are entirely different things.
Post 15 May 2008, 02:38
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.