Lines Matching full:encode
31 int32_t BSL_PEM_GetPemRealEncode(char **encode, uint32_t *encodeLen, BSL_PEM_Symbol *symbol, char *… in BSL_PEM_GetPemRealEncode() argument
40 if (!BSL_PEM_IsPemFormat(*encode, *encodeLen)) { in BSL_PEM_GetPemRealEncode()
43 char *begin = strstr(*encode, symbol->head); in BSL_PEM_GetPemRealEncode()
55 *encodeLen -= (end - *encode + tailLen); in BSL_PEM_GetPemRealEncode()
56 *encode = end + tailLen; in BSL_PEM_GetPemRealEncode()
61 int32_t BSL_PEM_GetAsn1Encode(const char *encode, const uint32_t encodeLen, uint8_t **asn1Encode, in BSL_PEM_GetAsn1Encode() argument
70 int32_t ret = BSL_BASE64_Decode(encode, encodeLen, asn1, &len); in BSL_PEM_GetAsn1Encode()
100 char **encode, uint32_t *encodeLen) in BSL_PEM_EncodeAsn1ToPem() argument
135 *encode = res; in BSL_PEM_EncodeAsn1ToPem()
145 int32_t BSL_PEM_DecodePemToAsn1(char **encode, uint32_t *encodeLen, BSL_PEM_Symbol *symbol, uint8_t… in BSL_PEM_DecodePemToAsn1() argument
148 char *nextEncode = *encode; in BSL_PEM_DecodePemToAsn1()
163 *encode = nextEncode; in BSL_PEM_DecodePemToAsn1()
173 bool BSL_PEM_IsPemFormat(char *encode, uint32_t encodeLen) in BSL_PEM_IsPemFormat() argument
175 if (encode == NULL || encodeLen < (BSL_PEM_BEGIN_STR_LEN + BSL_PEM_END_STR_LEN in BSL_PEM_IsPemFormat()
180 char *begin = strstr(encode, BSL_PEM_BEGIN_STR); in BSL_PEM_IsPemFormat()
184 char *tmp = (char *)encode + BSL_PEM_BEGIN_STR_LEN; in BSL_PEM_IsPemFormat()
224 int32_t BSL_PEM_GetSymbolAndType(char *encode, uint32_t encodeLen, BSL_PEM_Symbol *symbol, char **t… in BSL_PEM_GetSymbolAndType() argument
231 if (!BSL_PEM_IsPemFormat(encode, encodeLen)) { in BSL_PEM_GetSymbolAndType()
236 char *beginMarker = strstr(encode, g_pemHeaderInfo[i].symbol.head); in BSL_PEM_GetSymbolAndType()