Huff played his entire seven-year with the Raiders before being released last week. The 29-year-old visited the Dallas Cowboys earlier this week.
He must pass a physical before he can sign a contract.
The Ravens announced the agreement Wednesday. Huff is expected to fill a void in the backfield for the Super Bowl champions, who previously this offseason released starting strong safety Bernard Pollard and lost free safety Ed Reed to Houston via free agency.
Huff started all 16 games for Oakland last season — 14 at cornerback and two at free safety. He had 71 tackles and two interceptions.
The 6-foot, 210-pound Huff has 11 career interceptions and 453 tackles in 108 games.
More Sports Headlines
Snohomish mixed martial artist returns to her first love Mariners beat Twins 4-3 in 11 innings Charles scores 29 points, Liberty beat Storm 78-62 Park wins Women's British Open, captures 4th different major Perry wins 2nd straight Champions Tour's 3M Championship Merritt shoots 67 to win Quicken Loans National by 3 shots Triple Crown winner American Pharoah wins $1.75 million Haskell Invitational Bills' Ryan names Incognito starting left guard
Our new comment system is not supported in IE 7. Please upgrade your browser here.