Reputation: 21
I want to implement a hashing algorithm like md5 in CAPL (CANoe). Is there any built-in hashing function in CAPL?
Upvotes: 1
Views: 2659
Reputation: 164
I would suggest to create a CAPL Dll which implements your hash-algorithm in C++ and include it via #pragma library()
in your code.
There is an example in "CANoe Sample Configurations\Programming\CAPLdll". For more infos take a look at the chapter "CAPL DLL" in your CANoe help.
Upvotes: 2
Reputation: 334
There is not a built in hash function in CAPL, the closest I've been able to find is a checksum calculation function. (J1939CalcChecksum) Anyhow you can use the CANoe .NET API, once you are using .NET you can call its hashing libraries. The reference for CANoe .NET API is in Vector's page in the provided link.
Upvotes: 1