crypto/openssl: update key and algo during session init