<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.2" />

Microsoft.IdentityModel.Tokens.ICryptoProvider

public interface ICryptoProvider
Provides extensibility for cryptographic operators. If custom operators are needed, CustomCryptoProvider can be set to return these operators. This property will be checked before each creation.
object Create(string algorithm, object[] args)

Returns a cryptographic operator that supports the specified algorithm.

bool IsSupportedAlgorithm(string algorithm, object[] args)

Determines if a cryptographic operation is supported.

void Release(object cryptoInstance)

Releases the object returned from Create.