platform: template: Add input validation to otp_nv_counters_backend

Check that erases do not go beyond the TFM_OTP_NV_COUNTERS_AREA.

This is an indirect input-validation for offset.

Change-Id: I9b226cd11d770c7532d87ac748ded43860c1e926
Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
1 file changed