D.S

dev.mysql.com

MySQL: include/my_md5.h Source File

MySQL: include/my_md5.h Source File MySQL  8.0.0 Source Code Documentation Main Page Related Pages Modules Namespaces Classes Files File List File Members my_md5.h Go to the documentation of this file. 1 #ifndef MY_MD5_INCLUDED 2 #define MY_MD5_INCLUDED 3  4 /* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. 5  6  This program is free software; you can redistribute it and/or modify 7  it under the terms of the GNU General Public License as published by 8  the Free Software Foundation; version 2 of the License. 9  10  This program is distributed in the hope that it will be useful, 11  but WITHOUT ANY WARRANTY; without even the implied warranty of 12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13  GNU General Public License for more details. 14  15  You should have received a copy of the GNU General Public License 16  along with this program; if not, write to the Free Software 17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ 18  19 #include " m_string.h " 20 #include " my_md5_size.h " 21  22 /** 23  @file include/my_md5.h 24  Wrapper function for MD5 implementation. 25 */ 26  27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30  31 void compute_md5_hash (char *digest, const char *buf, int len); 32  33 /* 34  Convert an array of bytes to a hexadecimal representation. 35  36  Used to generate a hexadecimal representation of a message digest. 37 */ 38  static inline void array_to_hex (char *to, const unsigned char *str, uint len) 39 { 40  const unsigned char *str_end= str + len; 41  for (; str != str_end; ++str) 42  { 43  *to++= _dig_vec_lower [(( uchar ) *str) >> 4]; 44  *to++= _dig_vec_lower [(( uchar ) *str) & 0x0F]; 45  } 46 } 47  48 #ifdef __cplusplus 49 } 50 #endif 51  52 #endif /* MY_MD5_INCLUDED */ uint unsigned int uint Definition: my_global.h:422 m_string.h _dig_vec_lower char _dig_vec_lower[] Definition: int2str.cc:24 compute_md5_hash void compute_md5_hash(char *digest, const char *buf, int len) Wrapper function to compute MD5 message digest. Definition: my_md5.cc:57 my_md5_size.h This is not part of md5.h, so that it can be included using C linkage, unlike that file... array_to_hex static void array_to_hex(char *to, const unsigned char *str, uint len) Definition: my_md5.h:38 uchar unsigned char uchar Definition: my_global.h:688 include my_md5.h Generated by 1.8.11