@alrossi I took a closer look at https://github.com/xrootd/xrootd/blob/master/src/XrdCrypto/XrdCryptosslCipher.cc#L1091 (from line 1091 to 1103. There is an EVP_CipherUpdate() (which set ltmp=32) and an EVP_CipherFinal_ex() call (which set ltmp=16). And the final returned value is 48 (the length of the buffer). The last 16 bytes are those that got transmitted over the wire.
I didn't find document to explain in detail about these two functions. But code example shows exactly the same way we use them in XrdCryptosslCipher.cc. So I guess this is just how the C++ Openssl works (I also tried to return 32 instead of 48 but that cause failure in an earlier step)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1