[CRYPTO] api: Added crypto_type support