Change SRP functions to use EVP_EncodeUpdate/EVP_DecodeUpdate functions
authorMatt Caswell <matt@openssl.org>
Mon, 9 Apr 2018 14:06:50 +0000 (15:06 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 13 Apr 2018 08:37:38 +0000 (09:37 +0100)
commitc080461448815dab809661080ee5e21417478fb4
tree8fb56ec9f510ecbf1581e53ae9fe0d4b5310936a
parent0320e8e2869fb6cde4579375e65f6d576bbec95e
Change SRP functions to use EVP_EncodeUpdate/EVP_DecodeUpdate functions

Previously they were using EVP_EncodeBlock/EVP_DecodeBlock. These are low
level functions that do not handle padding characters. This was causing
the SRP code to fail. One side effect of using EVP_EncodeUpdate is that
it inserts newlines which is not what we need in SRP so we add a flag to
avoid that.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5925)
crypto/evp/encode.c
crypto/evp/evp_locl.h
crypto/include/internal/evp_int.h
crypto/srp/srp_vfy.c