Lines Matching refs:s2
232 const unsigned char *s1, *s2, *end; in mbedtls_pem_read_buffer() local
251 s2 = (unsigned char *) strstr( (const char *) data, footer ); in mbedtls_pem_read_buffer()
253 if( s2 == NULL || s2 <= s1 ) in mbedtls_pem_read_buffer()
262 end = s2; in mbedtls_pem_read_buffer()
271 if( s2 - s1 >= 22 && memcmp( s1, "Proc-Type: 4,ENCRYPTED", 22 ) == 0 ) in mbedtls_pem_read_buffer()
284 if( s2 - s1 >= 23 && memcmp( s1, "DEK-Info: DES-EDE3-CBC,", 23 ) == 0 ) in mbedtls_pem_read_buffer()
289 if( s2 - s1 < 16 || pem_get_iv( s1, pem_iv, 8 ) != 0 ) in mbedtls_pem_read_buffer()
294 else if( s2 - s1 >= 18 && memcmp( s1, "DEK-Info: DES-CBC,", 18 ) == 0 ) in mbedtls_pem_read_buffer()
299 if( s2 - s1 < 16 || pem_get_iv( s1, pem_iv, 8) != 0 ) in mbedtls_pem_read_buffer()
307 if( s2 - s1 >= 14 && memcmp( s1, "DEK-Info: AES-", 14 ) == 0 ) in mbedtls_pem_read_buffer()
309 if( s2 - s1 < 22 ) in mbedtls_pem_read_buffer()
321 if( s2 - s1 < 32 || pem_get_iv( s1, pem_iv, 16 ) != 0 ) in mbedtls_pem_read_buffer()
340 if( s1 >= s2 ) in mbedtls_pem_read_buffer()
343 ret = mbedtls_base64_decode( NULL, 0, &len, s1, s2 - s1 ); in mbedtls_pem_read_buffer()
351 if( ( ret = mbedtls_base64_decode( buf, len, &len, s1, s2 - s1 ) ) != 0 ) in mbedtls_pem_read_buffer()