A brief file description. More...
#include "ink_apidefs.h"
#include <openssl/md5.h>
#include "ink_defs.h"
Go to the source code of this file.
Typedefs | |
typedef MD5_CTX | INK_DIGEST_CTX |
Functions | |
inkcoreapi 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. | |
inkcoreapi char * | ink_code_md5_stringify (char *dest33, const size_t destSize, const char *md5) |
Converts a MD5 to a null-terminated string. | |
inkcoreapi char * | ink_code_to_hex_str (char *dest33, uint8_t const *md5) |
Converts a MD5 to a null-terminated string. | |
inkcoreapi int | ink_code_incr_md5_init (INK_DIGEST_CTX *context) |
Wrapper around MD5_Init. | |
inkcoreapi int | ink_code_incr_md5_update (INK_DIGEST_CTX *context, const char *input, int input_length) |
Wrapper around MD5_Update. | |
inkcoreapi int | ink_code_incr_md5_final (char *sixteen_byte_hash_pointer, INK_DIGEST_CTX *context) |
Wrapper around MD5_Final. |
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.h.
typedef MD5_CTX INK_DIGEST_CTX |
Definition at line 32 of file ink_code.h.
inkcoreapi 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().
inkcoreapi 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().
inkcoreapi 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().
inkcoreapi 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().
inkcoreapi 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.
inkcoreapi 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().