cisco / libsrtp

Library for SRTP (Secure Realtime Transport Protocol)
Other
1.19k stars 470 forks source link

remove use of pointers to 32bit values #667

Closed pabuhler closed 6 months ago

pabuhler commented 6 months ago

There is no reason to use pointers to 32bit values, all operations are based on bytes. So This removes alot of extra casting and potential pointer arithmetic errors. Also provide some functions for calculating header values to reduce duplication and improve readability.