Lines Matching refs:p
82 unsigned char *p; in mbedtls_base64_encode() local
108 for( i = 0, p = dst; i < n; i += 3 ) in mbedtls_base64_encode()
114 *p++ = base64_enc_map[(C1 >> 2) & 0x3F]; in mbedtls_base64_encode()
115 *p++ = base64_enc_map[(((C1 & 3) << 4) + (C2 >> 4)) & 0x3F]; in mbedtls_base64_encode()
116 *p++ = base64_enc_map[(((C2 & 15) << 2) + (C3 >> 6)) & 0x3F]; in mbedtls_base64_encode()
117 *p++ = base64_enc_map[C3 & 0x3F]; in mbedtls_base64_encode()
125 *p++ = base64_enc_map[(C1 >> 2) & 0x3F]; in mbedtls_base64_encode()
126 *p++ = base64_enc_map[(((C1 & 3) << 4) + (C2 >> 4)) & 0x3F]; in mbedtls_base64_encode()
129 *p++ = base64_enc_map[((C2 & 15) << 2) & 0x3F]; in mbedtls_base64_encode()
130 else *p++ = '='; in mbedtls_base64_encode()
132 *p++ = '='; in mbedtls_base64_encode()
135 *olen = p - dst; in mbedtls_base64_encode()
136 *p = 0; in mbedtls_base64_encode()
149 unsigned char *p; in mbedtls_base64_decode() local
204 for( j = 3, n = x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode()
215 if( j > 0 ) *p++ = (unsigned char)( x >> 16 ); in mbedtls_base64_decode()
216 if( j > 1 ) *p++ = (unsigned char)( x >> 8 ); in mbedtls_base64_decode()
217 if( j > 2 ) *p++ = (unsigned char)( x ); in mbedtls_base64_decode()
221 *olen = p - dst; in mbedtls_base64_decode()