src: add GetCipherValue function
This commit extracts the code that is the same in GetCipherName
,
GetCipherStandardName
, and GetCipherVersion
into function named
GetCipherValue
.
The motivation for this change is to improve readabilty by removing the duplicated code.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines