mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
misc check strenghtens and debug guards
This commit is contained in:
1 parent
e2e2db8900
commit
cb57182ee0
3 files changed
+36
-20
No files matched your search
+3
-4
@@ -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);
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
Reference in new issue
Block a user