“Corretto是否是BouncyCastle的补充还是替代品?”

huangapple go评论66阅读模式
英文:

Does Corretto complement BouncyCastle or does it replace it?

问题

Corretto JCE Provider是补充BouncyCastle还是替代它?我知道Bouncy支持比Sun JCA更多的奇怪格式,但通常我不认为我会使用它们。我只关心安全算法。

英文:

Does Corretto JCE Provider complement BouncyCastle or does it replace it? I know Bouncy supports more arcane formats than Sun JCA but generally I don't think I use them. I am only after the secure algorithms.

答案1

得分: 2


有点两者兼有。

BC有多重作用。它是JCE API的实现。它也有自己的API,因为JCE API的设计并不是最好的。

从技术上讲,您可以在一个虚拟机中加载多个JCE提供程序。如果您请求某种奇特的格式,系统会寻找具有该格式的提供程序。从这个意义上讲,如果BC支持某些Corretto不支持的东西,反之亦然,同时加载两者并在某种程度上进行补充是有道理的,但...这听起来像是相当罕见的情况。

我很难想象出同时加载Corretto和BC是否有合理的理由,如果您不使用BC的API,我怀疑如果已经存在,您是否需要BC。```

<details>
<summary>英文:</summary>

Bit of both.

BC is multiple things. It is an implementation of the JCE API. It is also its own API, because the JCE API is... not the bestest design.

Technically, you can have multiple JCE providers loaded in one VM. If you ask for some exotic format, the system will look for a provider that has it. In that sense, if BC supports something corretto&#39;s doesn&#39;t _and_ vice versa it can make sense to load both and in that sense the complement, but... that sounds like quite a rare scenario.

I&#39;m having a hard time imagining a sensible reason to load both corretto&#39;s and BCs, and if you&#39;re not using BC&#39;s own API, I doubt you need BC if already there, either.


</details>



huangapple
  • 本文由 发表于 2020年8月8日 10:44:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/63311341.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定