• Christian Heimes's avatar
    bpo-9216: Add usedforsecurity to hashlib constructors (GH-16044) · 7cad53e6
    Christian Heimes authored
    The usedforsecurity keyword only argument added to the hash constructors is useful for FIPS builds and similar restrictive environment with non-technical requirements that legacy algorithms be forbidden by their implementations without being explicitly annotated as not being used for any security related purposes.  Linux distros with FIPS support benefit from this being standard rather than making up their own way(s) to do it.
    
    Contributed and Signed-off-by: Christian Heimes christian@python.org
    7cad53e6
sha3module.c.h 4.46 KB