-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove reset_gop_hash and update_gop_hash APIs #265
Remove reset_gop_hash and update_gop_hash APIs #265
Conversation
These APIs are no longer needed as recursive hash is not used.
lib/src/signed_video_h26x_auth.c
Outdated
@@ -29,9 +29,9 @@ | |||
#include "legacy_validation.h" | |||
#include "signed_video_authenticity.h" // create_local_authenticity_report_if_needed() | |||
#include "signed_video_defines.h" // svrc_t | |||
#include "signed_video_h26x_internal.h" // gop_state_*(), update_gop_hash(), update_validation_flags() | |||
#include "signed_video_h26x_internal.h" // gop_state_*() , update_validation_flags() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove space.
lib/src/signed_video_h26x_sign.c
Outdated
// Reset the gop_hash since we start a new GOP. | ||
SV_THROW(reset_gop_hash(self)); | ||
// Reset the |num_nalus_in_gop_hash| since we start a new GOP. | ||
self->gop_info->num_nalus_in_gop_hash = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You already got "gop_info" from row 350.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor stuff.
assert(gop_info); | ||
|
||
gop_info->num_nalus_in_gop_hash = 0; | ||
return openssl_hash_data(self->crypto_handle, &gop_info->gop_hash_init, 1, gop_info->gop_hash); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should write a ticket to init the new gop hash computation with gop_hash_init.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
These APIs are no longer needed as recursive hash is not used.
Describe your changes
Please include a summary of the change, a relevant motivation and context.
Issue ticket number and link
Checklist before requesting a review