A brief file description. More...
#include <string.h>
#include <stdio.h>
#include "ink_code.h"
#include "INK_MD5.h"
#include "ink_assert.h"
Go to the source code of this file.
Functions | |
int | ink_code_incr_md5_init (INK_DIGEST_CTX *context) |
Wrapper around MD5_Init. | |
int | ink_code_incr_md5_update (INK_DIGEST_CTX *context, const char *input, int input_length) |
Wrapper around MD5_Update. | |
int | ink_code_incr_md5_final (char *sixteen_byte_hash_pointer, INK_DIGEST_CTX *context) |
Wrapper around MD5_Final. | |
int | ink_code_md5 (unsigned char const *input, int input_length, unsigned char *sixteen_byte_hash_pointer) |
Helper that will init, update, and create a final MD5. | |
char * | ink_code_md5_stringify (char *dest33, const size_t destSize, const char *md5) |
Converts a MD5 to a null-terminated string. | |
char * | ink_code_to_hex_str (char *dest33, uint8_t const *hash) |
Converts a MD5 to a null-terminated string. |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_code.cc.
int ink_code_incr_md5_final | ( | char * | sixteen_byte_hash_pointer, | |
INK_DIGEST_CTX * | context | |||
) |
Wrapper around MD5_Final.
Definition at line 67 of file ink_code.cc.
Referenced by ink_make_token_intrn(), make_key(), and make_md5().
int ink_code_incr_md5_init | ( | INK_DIGEST_CTX * | context | ) |
Wrapper around MD5_Init.
Definition at line 51 of file ink_code.cc.
Referenced by ink_make_token_intrn(), make_key(), and make_md5().
int ink_code_incr_md5_update | ( | INK_DIGEST_CTX * | context, | |
const char * | input, | |||
int | input_length | |||
) |
Wrapper around MD5_Update.
Definition at line 59 of file ink_code.cc.
Referenced by ink_make_token_intrn(), make_key(), and make_md5().
int ink_code_md5 | ( | unsigned char const * | input, | |
int | input_length, | |||
unsigned char * | sixteen_byte_hash_pointer | |||
) |
Helper that will init, update, and create a final MD5.
Definition at line 77 of file ink_code.cc.
Referenced by HttpSessionManager::acquire_session(), ats_ip_hash(), and HttpServerSession::attach_hostname().
char* ink_code_md5_stringify | ( | char * | dest33, | |
const size_t | destSize, | |||
const char * | md5 | |||
) |
Converts a MD5 to a null-terminated string.
Externalizes an INK_MD5 as a null-terminated string into the first argument. Side Effects: none Reentrancy: n/a. Thread Safety: safe. Mem Management: stomps the passed dest char*.
Definition at line 101 of file ink_code.cc.
References ink_assert.
char* ink_code_to_hex_str | ( | char * | dest33, | |
uint8_t const * | hash | |||
) |
Converts a MD5 to a null-terminated string.
Externalizes an INK_MD5 as a null-terminated string into the first argument. Does so without intenal procedure calls. Side Effects: none. Reentrancy: n/a. Thread Safety: safe. Mem Management: stomps the passed dest char*.
Definition at line 129 of file ink_code.cc.
Referenced by ats::CryptoHash::toHexStr().