• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

ink_code.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 #ifndef _ink_code_h_
00025 #define _ink_code_h_
00026 
00027 #include "ink_apidefs.h"
00028 #include <openssl/md5.h>
00029 #include "ink_defs.h"
00030 
00031 /* INK_MD5 context. */
00032 typedef MD5_CTX INK_DIGEST_CTX;
00033 
00034 /*
00035   Wrappers around the MD5 functions, all of this should be depericated and just use the functions directly
00036 */
00037 
00038 inkcoreapi int ink_code_md5(unsigned char const* input, int input_length, unsigned char *sixteen_byte_hash_pointer);
00039 inkcoreapi char *ink_code_md5_stringify(char *dest33, const size_t destSize, const char *md5);
00040 inkcoreapi char *ink_code_to_hex_str(char *dest33, uint8_t const* md5);
00041 
00042 inkcoreapi int ink_code_incr_md5_init(INK_DIGEST_CTX * context);
00043 inkcoreapi int ink_code_incr_md5_update(INK_DIGEST_CTX * context, const char *input, int input_length);
00044 inkcoreapi int ink_code_incr_md5_final(char *sixteen_byte_hash_pointer, INK_DIGEST_CTX * context);
00045 #endif

Generated by  doxygen 1.7.1