
ThisĬode comes with no warrenty expressed or implied, use at your own Restriction beyond any that is made by the original author. With my work (a link to my page below is fine). If you use this implementation somewhere I would like to be credited The string and charactarĪrray value of the hash is supplied as human-readable hex the raw value The size of the hash and get the results. I tried to hide implementation details while making it trivial to change The goal of this implementation is ease of use. Probably going to need to make use of in-lined assembly which is not (testing on Wintel), any serious attempt at fast implementation is While I did make half-hearted attempts to optimize as I went along G++ on Linux and CC on Solaris (g++ on Solaris gave a bus error). Has been tested with Visual C++ versions 6/7 and Dev-C++ on Windows, My version detectsĮndian-ness automatically and adjusts itself accordingly.
NOODLESOFT ARTICLES CODE
I also inlinedĪ lot of code that were macros in his version. I greatly condensed his versionĪnd shared as much code and data as I could think of. GiffordĪttempts to contact him were unsuccessful. This program is based on a C version written by Aaron D. Has been tested on little-endian (Intel) and big-endian (Sun) machines. The program is intended to be platform independant and That handles the variations from the original 160 bit to 224, 256, 384Īnd 512 bit. This program is a C++ implementation of the Secure Hash Algorithm (SHA) OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE,ĭATA, OR PROFITS OR BUSINESS INTERRUPTION) ARISING IN ANY WAY INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT,
NOODLESOFT ARTICLES SOFTWARE
THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, The Apple Software is provided by Apple on an "AS IS" basis.ĪPPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING Patent rights that may be infringed by your derivative works orīy other works in which the Apple Software may be incorporated. This notice, no other rights or licenses, express or implied,Īre granted by Apple herein, including but not limited to any Products derived from the Apple Software without specific prior Neither the name, trademarks, service marks Without modifications, you must retain this notice and theįollowing text and disclaimers in all such redistributions of That if you redistribute the Apple Software in its entirety and Without modifications, in source and/or binary forms provided Reproduce, modify and redistribute the Apple Software, with or Original Apple software (the "Apple Software"), to use, Non-exclusive license, under Apple's copyrights in this Terms, and subject to these terms, Apple grants you a personal, In consideration of your agreement to abide by the following Not use, install, modify or redistribute this Apple software. If you do not agree with these terms, please do Redistribution of this Apple software constitutes acceptance of Terms, and your use, installation, modification or ("Apple") in consideration of your agreement to the following This Apple software is supplied to you by Apple Inc.
NOODLESOFT ARTICLES LICENSE
Licensed under the iOS Developer Library Sample Code License
