[openssl-users] how to get digest for stitched AES-HMAC-SHA

Kane Huang kane.huang at ericsson.com
Wed Mar 29 09:24:28 UTC 2017

Hi guys,
I try to use build-in cipher suite EVP_aes_128_cbc_hmac_sha1 to get the benefit of function stitch.
There some some questions :

1)       Case this cipher stitch AESNI and HAMC-SHA1 in one go, how to get the hamc digest?

2)       In some case, like ESP package ,the Encryption and Auth start from different offset of same buffer, is there any APIs to specify the offset between Auth and Encryption for stitched cipher?


      IPv4  |orig IP hdr   | ESP  |           |   ESP  | ESP|
|(any options) | Hdr  | TCP  Data  | Trailer  |Auth|


                              |<----- encrypted --------->|

                            |<------ authenticated ------------> |

Thanks in advance for any advice!

Software developer, Ericsson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20170329/f1402247/attachment.html>

More information about the openssl-users mailing list