os_crypto unittest

testing the api usage of the crypto functions (not the correctness of the algorithms)