Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Seconders for bug 541781 - Support dynamically registered MessageDigest implementations?

Hi,

I'd like to merge [2] support for calculating artifact checksums using
dynamically registered MessageDigest implementations.

So, instead of [3] just calling MessageDigest.getInstance(algorithm), we
would get MessageDigest instance via security provider:

    Provider provider = ServiceHelper.getService(Activator.getContext(), Provider.class, "(providerName=" + providerName + ")");
    return MessageDigest.getInstance(algorithm, provider);

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=541781
[2] https://git.eclipse.org/r/71966
[3] https://git.eclipse.org/r/c/71966/38/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/ChecksumProducer.java#68

-- 
Mykola

Libre/Free Java Software Developer
https://manandbytes.gitlab.io/



Back to the top