• Nicolai Stange's avatar
    crypto: dh - constify struct dh's pointer members · 215bebc8
    Nicolai Stange authored
    struct dh contains several pointer members corresponding to DH parameters:
    ->key, ->p and ->g. A subsequent commit will introduce "dh" wrapping
    templates of the form "ffdhe2048(dh)", "ffdhe3072(dh)" and so on in order
    to provide built-in support for the well-known safe-prime ffdhe group
    parameters specified in RFC 7919. These templates will need to set the
    group parameter related members of the (serialized) struct dh instance
    passed to the inner "dh" kpp_alg instance, i.e. ->p and ->g, to some
    constant, static storage arrays.
    
    Turn the struct dh pointer members' types into "pointer to const" in
    preparation for this.
    Signed-off-by: default avatarNicolai Stange <nstange@suse.de>
    Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    215bebc8
dh.c 6.7 KB