Prosecutors investigating corruption allegations involving South Korea's president have raided Samsung again as public outrage grows over the company's alleged link with the scandal.

They also raided the country's national pension fund as the inquiry into President Park Geun-hye and her friend Choi Soon-sil continued, while two ministers offered to resign.

South Korea's presidential office said the justice minister and senior presidential secretary for civil affairs had offered to step down. The president has not accepted their resignation offers.

And in a bizarre twist, Ms Park's office was forced to defend the purchase of hundreds of erectile dysfunction pills.

Officials at Samsung Group and National Pension Service (NPS) confirmed investigators visited their offices in Seoul.

The Investment Management Office of the world's third-largest pension fund was the target of the raid, according to an NPS official.

Samsung spokeswoman Lim Bomi declined to say which Samsung department was raided.

The raids took place as the political fallout from the scandal continued to grow after prosecutors charged Ms Choi and two of Ms Park's most senior aides.

Ms Park has been refusing to meet prosecutors who said she conspired in criminal activities with the confidante and she need to be questioned.

While she faces mounting calls to resign over the scandal, public anger has also been simmering toward Samsung as well because of its alleged links with Ms Choi.

It is not the first time Samsung has been raided by prosecutors investigating the scandal, and South Korean reports say the simultaneous raids of the company and the pension fund showed that the investigation was expanding to a contentious Samsung merger.

South Korea's Yonhap news agency reported earlier that prosecutors were looking into whether the presidential office played a role in the pension service's vote to support the controversial merger of two Samsung companies last year.

Samsung narrowly won shareholders' approval to merge Samsung C&T and Cheil Industries in July 2015.

Most investors and analysts questioned Samsung's argument that the deal was to create synergies between a Samsung construction firm and another Samsung firm that ran an amusement park and fashion businesses.

The merger deal was crucial for Samsung heir Lee Jae-yong who held a small stake in Samsung Electronics. It helped Mr Lee, a grandson of Samsung founder and a vice chairman at Samsung Electronics, strengthen his grip on the group's crown jewel, Samsung Electronics, without spending his own money.

Shareholders who opposed the merger, including US hedge fund Elliott, said the deal unfairly benefited Samsung's founding families while hurting minority shareholders.

In the end it was NPS, a major shareholder at both Samsung C&T and Cheil Industries, which played the role of kingmaker in the shareholder vote. The pension fund cast a vote in support of the merger even as some outside advisers recommended it oppose the deal.

Meanwhile Ms Park's office on Wednesday confirmed revelations by an opposition politician that it purchased about 360 Viagra pills and the generic version of the drug in December.

While the report has created a frenzy on the internet, Ms Park's office said the pills were bought to potentially treat altitude sickness for presidential aides and employees on her May trips to Ethiopia, Uganda and Kenya.

None of the pills was used, said Jung Youn-kuk, spokesman of the presidential Blue House. South Korean doctors sometimes prescribe Viagra-style drugs to climbers because they are believed to be effective in preventing altitude sickness.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.