Skip to content
Discussion options

You must be logged in to vote

Hi Mohammad. What was going wrong in the first place? Did you have see compiler errors or did the code behave unexpectedly?

Anyway: enc->finish() expects a vector as the first parameter (as it might have to re-allocate its length to accomodate the authentication tag). The second parameter (called offset) is fairly technical and allows operating on only a portion of the passed-in vector. Typical uses won't need that and should leave it out (as you already found yourself).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MohammadMD1383
Comment options

Answer selected by MohammadMD1383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants