• M
    Add support for the SRP base64 alphabet · 3fd59700
    Matt Caswell 提交于
    Historically we used to implement standalone base64 code for SRP. This
    was replaced by commit 3d3f21aa with the standard base64 processing code.
    
    However, the SRP base64 code was designed to be compatible with other SRP
    libraries (notably libsrp, but also others) that use a variant of standard
    base64. Specifically a different alphabet is used and no padding '='
    characters are used. Instead 0 padding is added to the front of the string.
    By changing to standard base64 we change the behaviour of the API which may
    impact interoperability. It also means that SRP verifier files created prior
    to 1.1.1 would not be readable in 1.1.1 and vice versa.
    
    Instead we expand our standard base64 processing with the capability to be
    able to read and generate the SRP base64 variant.
    Reviewed-by: NAndy Polyakov <appro@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5925)
    3fd59700
encode.c 13.6 KB