atsign-foundation / at_c

Experimental cross-platform C implementation of the atSDK for SOC & embedded devices
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

at_c: optimize notify and monitor #245

Open JeremyTubongbanua opened 3 weeks ago

JeremyTubongbanua commented 3 weeks ago

notify and monitor is unoptimized and the implementation is messy

I'd like buffer lengths to be exactly how much they need to be and nothing more and nothing less.

For example,

base64 encoded IV lengths are always 24 base64 encoded shared encryption AES-256 keys are always 44 in length

currently, a MAX function was a simple fix but is inelegant

Related to #249