hwcrypto: Separating common functionality

Separating common functionality that will be used from Android.

Bug: 393162614
Test: build & run project rust unit tests
Change-Id: I37d789dceb5126f53ff4b16a73a183114fe8c43e
6 files changed