• Pascal Buhler's avatar
    Set gcm IV directly with EVP_CipherInit_ex · 9eb1716f
    Pascal Buhler authored
    Setting the IV directly with EVP_CipherInit_ex will
    save two calls to openssl and simplify the code.
    
    There is a comment that the 3 calls are required but
    I am not sure why, EVP_CTRL_GCM_SET_IV_FIXED will
    just store the vector and EVP_CTRL_GCM_IV_GEN will use
    it internally and then increment the last digits before
    returning it in iv variable passed in.
    EVP_CipherInit_ex will store the iv and use it internally.
    Incrementing and retrieving the new IV is not required for
    SRTP-GCM, a new IV is used for each packet.
    
    Tested with openssl 1.0.1d & 1.0.2g
    9eb1716f
Name
Last commit
Last update
crypto Loading commit data...
doc Loading commit data...
include Loading commit data...
srtp Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGES Loading commit data...
LICENSE Loading commit data...
Makefile.in Loading commit data...
README.md Loading commit data...
config.guess Loading commit data...
config.h_win32vc7 Loading commit data...
config.hw Loading commit data...
config.sub Loading commit data...
config_in.h Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
format.sh Loading commit data...
install-sh Loading commit data...
install-win.bat Loading commit data...
libsrtp2.pc.in Loading commit data...
srtp.def Loading commit data...
srtp.sln Loading commit data...
srtp2.vcxproj Loading commit data...
srtp2.vcxproj.filters Loading commit data...
timing Loading commit data...
undos.sh Loading commit data...
update.sh Loading commit data...