|
Nmap Development
mailing list archives
Re: [NSE + NSELib] Netbios and SMB [stable!]
From: Sven Klemm <sven () c3d2 de>
Date: Wed, 17 Sep 2008 12:15:55 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sven Klemm wrote:
| Hey Ron,
| |
| | Besides those, I need DES and HMAC-MD5 (that one's a little tricky,
| | though, because it's two functions in one in OpenSSL).
|
| I've added HMAC with all digest algorithms supported by OpenSSL.
| HMAC is actually the easier one of the two because I don't have to
| initialize any OpenSSL structs. So implementing encryption (including
| DES) may take me a few more days.
I added support for encryption and decryption to the openssl bindings.
Here are the signatures of all the new functions:
openssl.md2( string message )
openssl.md4( string message )
openssl.md5( string message )
openssl.sha1( string message )
openssl.ripemd160( string message )
openssl.digest( string algorithm, string message )
openssl.hmac( string algorithm, string key, string message )
openssl.encrypt( string algorithm, string key, string iv, string data,
bool padding = false )
openssl.decrypt( string algorithm, string key, string iv, string data,
bool padding = false )
openssl.supported_ciphers()
openssl.supported_digests()
The algorithm parameter is a string like "md5", "sha256", "des",
"blowfish", etc. openssl.supported_ciphers() and
openssl.supported_digests() return the list of supported algorithms.
Cheers,
Sven
- --
Sven Klemm
http://cthulhu.c3d2.de/~sven/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjQ2M0ACgkQevlgTHEIT4YFygCfbv9y6TGNAT+2NGJmKpEa9HFy
UDoAniLTHKrYAhvw3vi8l/V3SGo+fIF2
=zwOg
-----END PGP SIGNATURE-----
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
By Date
By Thread
Current thread:
|