473,654 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

portable sha1 hmac sources

ed
Hello,

I've been crawling the net tonight looking for a reasonably portable
sha1/hmac implementation. I don't need a huge library of different
methods, don't suppose anyone has such a piece of code lying around
anyplace do they?

--
Regards, Ed :: http://www.s5h.net
:%s/\t/ /g :: proud unix system person
:%s/Open Source/Free Software/g :: Free DNS available
Apr 6 '06 #1
2 2862
On Thu, 06 Apr 2006 19:44:15 GMT, ed <ed@noreply.com > wrote in
comp.lang.c:
Hello,

I've been crawling the net tonight looking for a reasonably portable
sha1/hmac implementation. I don't need a huge library of different
methods, don't suppose anyone has such a piece of code lying around
anyplace do they?


comp.sources.wa nted is down two flights of steps, third on the right.

If you ever have a C language question, feel free to ask it here.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Apr 7 '06 #2
On Thu, 06 Apr 2006 19:44:15 +0000, ed wrote:
Hello,

I've been crawling the net tonight looking for a reasonably portable
sha1/hmac implementation. I don't need a huge library of different
methods, don't suppose anyone has such a piece of code lying around
anyplace do they?


Try sci.crypt. And I'd suggest that you qualify "portable" better than
"reasonably ". I'd point you to mod_auth_bsd, which has a simple HMAC
implementation built-in, but you'll have to find a separate SHA1
implementation (as my source as packaged in mod_auth_bsd just uses
OpenSSL's implementation, which to me is certainly "reasonably " portable).

Alternatively, try Google.

Apr 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7337
by: laredotornado | last post by:
Hello, I'm using PHP 4. I'm trying to build a form to send payment information to Authorize.Net. In the documentation for their "Simple Integration Method 1.0" they say I need to generate a fingerprint using logic like: FingerPrint = HMAC-MD5("$merchant_login^$invoice_num^$timestamp^$amount^", "$transaction_key") Does anyone know what the HMAC-MD5 equivalent function is in PHP?
0
320
by: Bill Belliveau | last post by:
Unable to find source I ported the following HMAC-MD5 algorithm. It could probably be optimized but.. public byte HMACMD5(string strKey, string strText) { MD5CryptoServiceProvider cspMD5 = new MD5CryptoServiceProvider(); byte bText = Encoding.ASCII.GetBytes(strText); byte bKey = Encoding.ASCII.GetBytes(strKey); byte ipad = new byte;
14
2621
by: John Smith | last post by:
Hi I'm looking for a header-file only STL implementation. I know the vendors provide one with compilers but often they are either buggy or has some other problems. My problem is that under Windows the different versions of the Microsoft compiler are not compatible with each other. This means you can't compile file with version X and link with version Y because you end up with linker errors.
2
2624
by: sugaray | last post by:
i was just told in the 'simple base-conveter program' thread, that using 'return' is not portable in such case: if(argc!=2) { fprintf("error message\n"); return 1; } it should be replace by 'exit(EXIT_FAILURE)', but i don't get why's that ? isn't 'return' keyword of C ? why is not
4
13281
by: Bhavesh.Feb | last post by:
Hi, I'm trying to use SHA1 and HMAC to create signature for my web service request. I dont know much about HMAC or SHA1 but this is what i need to create signature. What i'm trying to do is: SHA_CTX shaContext; SHA1_Init(&shaContext); SHA1_Update(&shaContext, &data, dataLen ); SHA1_Final(cipher_key, &shaContext);
5
5963
by: Vince | last post by:
Hi, I have to encrypt a string with HMAC-MD5 in asp, like the function MHASH_MD5 in php. Is anyone know how to proceed ? Thanks. Vincent
1
1374
by: Alexandre Guimond | last post by:
Hi. I want to create a portable setup.py file for windows / linux for an extension package that i need to link with external libraries (gsl and boost). on windows i do something like this: imaging = Extension( 'pyag.imaging._imaging', sources = ( glob.glob( 'Source/pyag/imaging/Src/*.cpp' ) + glob.glob(
0
1408
by: voipfc | last post by:
I am looking for an HMAC-MD5 encryption routine. I am using dovecot with Postfixadmin and I am looking for a passwording scheme that matches theirs. Is there one somewhere out there? The Postfixadmin password setup seems to be a bit wonky or perhaps it is just me. Domain admin passwords appear to use MD5-CRYPT to set mailbox passwords, but the mailbox passwords appear to require CRYPT
18
2425
by: Tomás Ó hÉilidhe | last post by:
(SHA-1 is a cryptographic hash function. For info on what SHA-1 is: http://en.wikipedia.org/wiki/SHA-1) I'm writing fullportable C89 code that needs to make use of the SHA-1 algorithm. Does anyone know if there's been a fully-portable C89 implementation of the SHA-1 algorithm? If not, could someone please point me to a very good implementation of the algorithm, an implementation which is very portable (perhaps portable to machines...
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.