You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, each algorithm struct is required to give itself a name in order to impl the Algorithm trait:
/// Metadata about a cryptographic algorithm.pubtraitAlgorithm{/// String name for the algorithm, used consistently across the library.constALG_NAME:&'staticstr;/// Maximum security strength supported by the algorithm./// In other words, this algorithm can produce outputs up to this security strength,/// but may produce outputs with lower security strength, for example, if asked to truncate.constMAX_SECURITY_STRENGTH:SecurityStrength;}
At the moment, I think Factory is the only thing that consumes these string names, but my intuition is to leave this the way it is because other things beyond Factory could use these in the future.
bouncycastle_hkdfcrate docs.