I am trying to find the implementations of the source code.
For example, if I initialize the Cipher-object like this:
Cipher cipher = Cipher.getInstance("AES/CTR/NoPadding");
个
我如何才能找到所使用的AES算法和CTR模式的实际实现?
如果我查找Cipher.java的源代码,您会发现getInstance()方法使用了一些服务提供者.我猜这句台词是:
List<Service> services = GetInstance.getServices(cipherServices);
负责将"aes/ctr/NoPadding."与创建的CipherSpi-Object匹配.
但现在我被困住了,我不知道发生了什么.这是怎么回事?我在哪里可以找到AES和CTR的源代码? 它与这个.../sun/crypto/provider文件夹中的课程匹配吗? 这种匹配是如何工作的?我在哪里可以看到什么与什么输入匹配? 我还想弄清楚CTR模式是否使用了某种并行性.