Changeset f168918
- Timestamp:
- Nov 30, 2018 3:56:27 PM (2 years ago)
- Branches:
- master
- Children:
- 922515df
- Parents:
- 2487bca
- Location:
- core/java/src/net/i2p
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
core/java/src/net/i2p/crypto/EncType.java
r2487bca rf168918 114 114 if (ELGAMAL_2048 == this) 115 115 return true; 116 // EC types are placeholders for now 117 if (base == EncAlgo.EC) 118 return false; 116 119 try { 117 120 getParams(); -
core/java/src/net/i2p/crypto/KeyPair.java
r2487bca rf168918 14 14 private final PrivateKey priv; 15 15 16 /** 17 * @param publicKey non-null, same EncType as privateKey 18 * @param privateKey non-null, same EncType as publicKey 19 */ 16 20 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { 17 21 pub = publicKey; 18 22 priv = privateKey; 23 if (pub.getType() != priv.getType()) 24 throw new IllegalArgumentException(); 19 25 } 20 26 -
core/java/src/net/i2p/data/PrivateKey.java
r2487bca rf168918 54 54 */ 55 55 public PrivateKey(EncType type, byte data[]) { 56 super(); 57 _type = type; 56 this(type); 58 57 if (data == null) 59 58 throw new IllegalArgumentException("Data must be specified"); 60 _data = data;59 setData(data); 61 60 } 62 61 -
core/java/src/net/i2p/data/PublicKey.java
r2487bca rf168918 77 77 */ 78 78 public PublicKey(EncType type, byte data[]) { 79 super(); 80 _type = type; 79 this(type); 81 80 if (data == null) 82 81 throw new IllegalArgumentException("Data must be specified"); 83 _data = data;82 setData(data); 84 83 } 85 84
Note: See TracChangeset
for help on using the changeset viewer.