mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
Update BouncyCastle to 1.60.
This commit is contained in:
parent
ad262de961
commit
64ab2d4519
2 changed files with 3 additions and 5 deletions
|
@ -6,7 +6,7 @@ version = '0.15-SNAPSHOT'
|
||||||
archivesBaseName = 'bitcoinj-core'
|
archivesBaseName = 'bitcoinj-core'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'org.bouncycastle:bcprov-jdk15on:1.58'
|
compile 'org.bouncycastle:bcprov-jdk15on:1.60'
|
||||||
implementation 'com.lambdaworks:scrypt:1.4.0'
|
implementation 'com.lambdaworks:scrypt:1.4.0'
|
||||||
implementation 'com.google.guava:guava:24.0-android'
|
implementation 'com.google.guava:guava:24.0-android'
|
||||||
compile 'com.google.protobuf:protobuf-java:3.5.1'
|
compile 'com.google.protobuf:protobuf-java:3.5.1'
|
||||||
|
|
|
@ -136,10 +136,8 @@ public class ECKey implements EncryptableItem {
|
||||||
if (Utils.isAndroidRuntime())
|
if (Utils.isAndroidRuntime())
|
||||||
new LinuxSecureRandom();
|
new LinuxSecureRandom();
|
||||||
|
|
||||||
// Tell Bouncy Castle to precompute data that's needed during secp256k1 calculations. Increasing the width
|
// Tell Bouncy Castle to precompute data that's needed during secp256k1 calculations.
|
||||||
// number makes calculations faster, but at a cost of extra memory usage and with decreasing returns. 12 was
|
FixedPointUtil.precompute(CURVE_PARAMS.getG());
|
||||||
// picked after consulting with the BC team.
|
|
||||||
FixedPointUtil.precompute(CURVE_PARAMS.getG(), 12);
|
|
||||||
CURVE = new ECDomainParameters(CURVE_PARAMS.getCurve(), CURVE_PARAMS.getG(), CURVE_PARAMS.getN(),
|
CURVE = new ECDomainParameters(CURVE_PARAMS.getCurve(), CURVE_PARAMS.getG(), CURVE_PARAMS.getN(),
|
||||||
CURVE_PARAMS.getH());
|
CURVE_PARAMS.getH());
|
||||||
HALF_CURVE_ORDER = CURVE_PARAMS.getN().shiftRight(1);
|
HALF_CURVE_ORDER = CURVE_PARAMS.getN().shiftRight(1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue