Former Hewlett-Packard chief executive and onetime presidential hopeful Carly Fiorina is being vetted as a potential vice presidential running mate for Sen. Ted Cruz, a Fiorina aide confirmed.

Fiorina endorsed the Texas senator last month, after abandoning her own White House bid in February. At the time, she described Cruz as "a fearless fighter for our constitutional rights" and a "strong, inspirational" leader.

More from Re/code:

Apple is about to shrink for the first time since 2003

Nokia to buy digital health firm Withings for $191 million

Charter/Time Warner can't use broadband data caps

On the face of it, the two seem unlikely allies — Fiorina's a pro-business conservative (who ran to the right during in the primary), while Cruz is known for his unwavering support of the Constitution and the Bible.