首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > RSA累加器的实现

RSA累加器的实现

  • 资源大小:3.19 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: RSA 实现 累加器

资 源 简 介

Usage Example: //create a data set to test the accumulator ArrayList dataSet = new ArrayList (); dataSet.add("Hello"); dataSet.add("World"); //create the RSAAccumulator object with a bit size for the random number RSAAccumulator rsaAccumulator = new RSAAccumulator(256); //insert the first element rsaAccumulator.insertElement(dataSet.get(0)); //get the current accumulator and use it to insert the next data BigInteger curAcc = rsaAccumulator.getAccumulator(); rsaAccumulator.insertElement(dataSet.get(1), curAcc); curAcc = rsaAccumulator.getAccumulator(); //however, you can directly insert an element like the first data. That means, rsaAccumulator.insertElement(dataSet.get(1)); will also work. //repeat the above step to insert more data //To check the existence of an item, first create the identity BigInteger identity = rsa

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP