src: refactor GetCipherValue and related functions
Modernize and simplify GetCipherValue
and its call sites to remove ~30 lines of code.
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Modernize and simplify GetCipherValue
and its call sites to remove ~30 lines of code.