A brief file description. More...
Go to the source code of this file.
Defines | |
#define | ATS_BASE64_ENCODE_DSTLEN(_length) ((_length * 8) / 6 + 4) |
#define | ATS_BASE64_DECODE_DSTLEN(_length) (((_length + 3) / 4) * 3) |
Functions | |
bool | ats_base64_encode (const char *inBuffer, size_t inBufferSize, char *outBuffer, size_t outBufSize, size_t *length) |
bool | ats_base64_encode (const unsigned char *inBuffer, size_t inBufferSize, char *outBuffer, size_t outBufSize, size_t *length) |
bool | ats_base64_decode (const char *inBuffer, size_t inBufferSize, unsigned char *outBuffer, size_t outBufSize, size_t *length) |
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_base64.h.
#define ATS_BASE64_DECODE_DSTLEN | ( | _length | ) | (((_length + 3) / 4) * 3) |
Definition at line 47 of file ink_base64.h.
Referenced by ats_base64_decode().
#define ATS_BASE64_ENCODE_DSTLEN | ( | _length | ) | ((_length * 8) / 6 + 4) |
Definition at line 46 of file ink_base64.h.
Referenced by ats_base64_encode().
bool ats_base64_decode | ( | const char * | inBuffer, | |
size_t | inBufferSize, | |||
unsigned char * | outBuffer, | |||
size_t | outBufSize, | |||
size_t * | length | |||
) |
Definition at line 125 of file ink_base64.cc.
References ATS_BASE64_DECODE_DSTLEN, DECODE, MAX_PRINT_VAL, and printableToSixBit.
Referenced by TSBase64Decode().
bool ats_base64_encode | ( | const char * | inBuffer, | |
size_t | inBufferSize, | |||
char * | outBuffer, | |||
size_t | outBufSize, | |||
size_t * | length | |||
) |
Definition at line 93 of file ink_base64.cc.
References ats_base64_encode().
bool ats_base64_encode | ( | const unsigned char * | inBuffer, | |
size_t | inBufferSize, | |||
char * | outBuffer, | |||
size_t | outBufSize, | |||
size_t * | length | |||
) |
Definition at line 40 of file ink_base64.cc.
References ATS_BASE64_ENCODE_DSTLEN, and memcpy.
Referenced by ats_base64_encode(), and TSBase64Encode().