misc check strenghtens and debug guards

This commit is contained in:
Sergio R. Caprile committed 2026-07-16 15:10:19 -03:00
1 parent e2e2db8900
commit cb57182ee0
3 files changed
+36 -20

No files matched your search

+3 -4
View File
@@ -1061,10 +1061,9 @@ int gcm_crypt_and_tag(
prepare the gcm context with the keying material, we simply
invoke each of the three GCM sub-functions in turn...
*/
gcm_start(ctx, mode, iv, iv_len, add, add_len);
gcm_update(ctx, length, input, output);
gcm_finish(ctx, tag, tag_len);
return (0);
if (gcm_start(ctx, mode, iv, iv_len, add, add_len) != 0) return -1;
if (gcm_update(ctx, length, input, output) != 0) return -1;
return gcm_finish(ctx, tag, tag_len);
}
/******************************************************************************