#include "compiler_opt.h"#include "endianness.h"Go to the source code of this file.
Defines | |
| #define | BASE16_LOOKUP_TABLE |
| #define | BASE64_LOOKUP_TABLE |
| #define | BASE64_LOOKUP_8K |
| #define | BASE16_LOOKUP_LARGE |
| #define | ALIGN_POINTER(p, type) ((type*) ((long)((char*)(p)+sizeof(type)-1)&~(long)(sizeof(type)-1))) |
| #define | ALIGN_UINT_POINTER(p) ALIGN_POINTER(p, unsigned int) |
| #define | HEX_HI(h) _bx_hexdig_hi[(unsigned char)(h)] |
| #define | HEX_LOW(h) _bx_hexdig_low[(unsigned char)(h)] |
| #define | UNHEX(h) _bx_unhexdig256[(h)] |
| #define | BASE64_12(a, b) _bx_b64_12[((a)<<4)|((b)>>4)] |
| #define | BASE64_34(b, c) _bx_b64_12[(((b)&0xf)<<8)|(c)] |
| #define | UNBASE64(v) _bx_ub64[(v)] |
| #define | base16_enc_len(l) (l*2) |
| #define | base16_max_dec_len(l) (l/2) |
| #define | base16_dec_len(b, l) base16_max_dec_len(l) |
| #define | base16_dec_min_len() 2 |
| #define | base16_enc_min_len() 0 |
| #define | base64_enc_len(l) (((l)+2)/3*4) |
| #define | base64_max_dec_len(l) ((l)/4*3) |
| #define | base64_dec_len(b, l) (base64_max_dec_len(l)-((b)[(l)-2]=='=') -((b)[(l)-1]=='=')) |
| #define | base64_dec_min_len() 4 |
| #define | base64_enc_min_len() 0 |
| #define | q_b64_base '0' |
| #define | q_b64_pad 'z' |
| #define | Q_BASE64(v) (unsigned char)((v)+q_b64_base) |
| #define | Q_UNBASE64(v) (unsigned char)((v)-q_b64_base) |
Functions | |
| int | base16_enc (unsigned char *src, int slen, unsigned char *dst, int dlen) |
| int | base16_dec (unsigned char *src, int slen, unsigned char *dst, int dlen) |
| unsigned char | base64_enc_char (unsigned char v) |
| unsigned | base64_dec_char (unsigned char v) |
| int | base64_enc (unsigned char *src, int slen, unsigned char *dst, int dlen) |
| int | base64_dec (unsigned char *src, int slen, unsigned char *dst, int dlen) |
| int | q_base64_enc (unsigned char *src, int slen, unsigned char *dst, int dlen) |
| int | q_base64_dec (unsigned char *src, int slen, unsigned char *dst, int dlen) |
| int | init_basex () |
Variables | |
| unsigned char | _bx_hexdig_hi [256] |
| unsigned char | _bx_hexdig_low [256] |
| unsigned char | _bx_unhexdig256 [256] |
| unsigned short | _bx_b64_12 [4096] |
| unsigned char | _bx_ub64 [256] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 210 of file basex.h. Referenced by base64_enc(). |
|
|
Definition at line 211 of file basex.h. Referenced by base64_enc(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 149 of file basex.h. Referenced by base16_enc(). |
|
|
Definition at line 150 of file basex.h. Referenced by base16_enc(). |
|
|
|
|
|
Referenced by q_base64_dec(). |
|
|
Referenced by q_base64_enc(). |
|
|
Referenced by q_base64_dec(). |
|
|
Definition at line 224 of file basex.h. Referenced by base64_dec(). |
|
|
Definition at line 154 of file basex.h. Referenced by base16_dec(). |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 663 of file basex.h. References UNBASE64, and unlikely. Referenced by check_nonce(). |
|
|
|
|
||||||||||||||||||||
|
Definition at line 565 of file basex.h. References _bx_b64_12, BASE64_12, BASE64_34, and unlikely. Referenced by calc_nonce(). |
|
|
|
|
|
Definition at line 187 of file basex.c. References _bx_b64_12, _bx_ub64, b64_dec_char, and b64_enc_char. Referenced by main(). |
|
||||||||||||||||||||
|
Definition at line 781 of file basex.h. References q_b64_pad, Q_UNBASE64, and unlikely. |
|
||||||||||||||||||||
|
|
|
|
Definition at line 159 of file basex.c. Referenced by base64_enc(), and init_basex(). |
|
|
|
|
|
|
|
|
Definition at line 160 of file basex.c. Referenced by init_basex(). |
|
|
|
1.3.9.1