|
|
|||
File indexing completed on 2026-04-09 07:49:24
0001 /* 0002 * Copyright (c) 2019 Opticks Team. All Rights Reserved. 0003 * 0004 * This file is part of Opticks 0005 * (see https://bitbucket.org/simoncblyth/opticks). 0006 * 0007 * Licensed under the Apache License, Version 2.0 (the "License"); 0008 * you may not use this file except in compliance with the License. 0009 * You may obtain a copy of the License at 0010 * 0011 * http://www.apache.org/licenses/LICENSE-2.0 0012 * 0013 * Unless required by applicable law or agreed to in writing, software 0014 * distributed under the License is distributed on an "AS IS" BASIS, 0015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0016 * See the License for the specific language governing permissions and 0017 * limitations under the License. 0018 */ 0019 0020 // see solarmd5- 0021 0022 /** 0023 md5 0024 ===== 0025 0026 Updatable digest hash mechanics. 0027 0028 0029 **/ 0030 0031 /* 0032 * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. 0033 * MD5 Message-Digest Algorithm (RFC 1321). 0034 * 0035 * Homepage: 0036 * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 0037 * 0038 * Author: 0039 * Alexander Peslyak, better known as Solar Designer <solar at openwall.com> 0040 * 0041 * This software was written by Alexander Peslyak in 2001. No copyright is 0042 * claimed, and the software is hereby placed in the public domain. 0043 * In case this attempt to disclaim copyright and place the software in the 0044 * public domain is deemed null and void, then the software is 0045 * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the 0046 * general public under the following terms: 0047 * 0048 * Redistribution and use in source and binary forms, with or without 0049 * modification, are permitted. 0050 * 0051 * There's ABSOLUTELY NO WARRANTY, express or implied. 0052 * 0053 * See md5.c for more information. 0054 */ 0055 0056 #ifdef HAVE_OPENSSL 0057 #include <openssl/md5.h> 0058 #elif !defined(_MD5_H) 0059 #define _MD5_H 0060 0061 0062 /* Any 32-bit or wider unsigned integer data type will do */ 0063 typedef unsigned int MD5_u32plus; 0064 0065 typedef struct { 0066 MD5_u32plus lo, hi; 0067 MD5_u32plus a, b, c, d; 0068 unsigned char buffer[64]; 0069 MD5_u32plus block[16]; 0070 } MD5_CTX; 0071 0072 extern void MD5_Init(MD5_CTX *ctx); 0073 extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size); 0074 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); 0075 0076 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|