Lines Matching refs:pem

1224     mbedtls_pem_context pem;  in mbedtls_pk_parse_key()  local
1233 mbedtls_pem_init( &pem ); in mbedtls_pk_parse_key()
1240 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_pk_parse_key()
1250 pem.buf, pem.buflen ) ) != 0 ) in mbedtls_pk_parse_key()
1255 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_key()
1271 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_pk_parse_key()
1281 pem.buf, pem.buflen ) ) != 0 ) in mbedtls_pk_parse_key()
1286 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_key()
1301 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_pk_parse_key()
1308 pem.buf, pem.buflen ) ) != 0 ) in mbedtls_pk_parse_key()
1313 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_key()
1324 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_pk_parse_key()
1331 pem.buf, pem.buflen, in mbedtls_pk_parse_key()
1337 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_key()
1439 mbedtls_pem_context pem; in mbedtls_pk_parse_public_key() local
1448 mbedtls_pem_init( &pem ); in mbedtls_pk_parse_public_key()
1454 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_pk_parse_public_key()
1461 p = pem.buf; in mbedtls_pk_parse_public_key()
1468 if ( ( ret = pk_get_rsapubkey( &p, p + pem.buflen, mbedtls_pk_rsa( *ctx ) ) ) != 0 ) in mbedtls_pk_parse_public_key()
1471 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_public_key()
1476 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_public_key()
1485 ret = mbedtls_pem_read_buffer( &pem, in mbedtls_pk_parse_public_key()
1495 p = pem.buf; in mbedtls_pk_parse_public_key()
1497 ret = mbedtls_pk_parse_subpubkey( &p, p + pem.buflen, ctx ); in mbedtls_pk_parse_public_key()
1498 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_public_key()
1503 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_public_key()
1506 mbedtls_pem_free( &pem ); in mbedtls_pk_parse_public_key()