Commit Graph

2116 Commits

Author SHA1 Message Date
zzz ed9d403281 ElGamal: Implement key encoding 2016-01-24 21:40:33 +00:00
zzz f38cfcc937 SigUtil: Enhance ASN.1 parser/generator to support
signatures up to 64K, needed for ElG
Log and javadoc tweaks
2016-01-24 19:02:13 +00:00
zzz 649d7122a2 Add ElGamal signature implementation
Add ElGamal to provider
doesn't work yet,
needs key encoding/decoding and SigUtil support for longer signatures
2016-01-24 16:45:54 +00:00
zzz ad2561125e final all the crypto classes 2016-01-24 16:37:21 +00:00
zzz 403044fc6c DSAEngine: minor cleanup
ElG KeyFactory: Use getParameters() instead of getParams()
to get the correct class back
SigUtil:
  Use split() in sigBytesToASN1();
  new public ASN1 methods
  Javadoc, args checking
2016-01-24 13:28:03 +00:00
zzz c9063f9d9b KeyFactory and KeyPairGenerator for ElGamal.
Stub out decoding key constructors.
2016-01-23 17:12:47 +00:00
zzz e276febf0a private, final 2016-01-23 14:57:42 +00:00
zzz 592f2449d2 ElGamal classes, from Bouncy Castle 1.53, for I2PProvider.
License: BSD
Encoding/decoding/sigs: todo.
2016-01-23 14:51:52 +00:00
zzz a4f75d7b32 Random: Don't bother trying to seed from /dev/urandom on Windows 2016-01-22 16:04:43 +00:00
zzz 9cdd0fc829 Crypto: Fix privkey encoding to follow PKCS8,
ignore example in josefsson draft,
required for keytool to work.
Fix pubkey decode typo.
(ticket #1723)
2016-01-21 21:38:26 +00:00
zzz f29ed21090 Crypto: Add OID aliases to provider,
required for keytool to work
(ticket #1723)
not working yet, need to fix privkey encoding
2016-01-21 19:06:54 +00:00
zzz cd5db63286 Crypto: Add I2PProvider,
pass provider args to keytool,
add EdDSA keygen support
(ticket #1723)
not working yet, need sig support
2016-01-21 15:36:54 +00:00
zzz 5074002327 Crypto: Implement EdDSA key decoding
following the draft at
https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-04
(ticket #1723)
2016-01-21 14:43:23 +00:00
zzz 179a4a2e56 Crypto: Implement EdDSA key getEncoded()
following the draft at
https://tools.ietf.org/html/draft-josefsson-pkix-eddsa-04
(ticket #1723)
2016-01-21 13:27:33 +00:00
zzz 2007e881e5 Crypto: New utils to support private key import/export
Console: New /configfamily, /exportfamily
2016-01-20 21:05:26 +00:00
zzz cdfd4ca2f4 Move CachedIteratorArrayList from core to router 2016-01-14 13:54:53 +00:00
zzz ca00ea7a76 Fortuna: Add getByte() method 2016-01-13 16:11:39 +00:00
zzz c8197b8181 Tunnels: Fix build request Bloom filter (ticket #1746)
Change from 60s DHS to 60m DBF
Use reply key as filter key, not first part of
encrypted data, to match the specs and hopefully reduce dups
BuildMessageProcessor cleanups
log and stat tweaks
remove deprecated methods
remove some timing measurements
javadocs
2016-01-10 21:22:22 +00:00
zzz 6917203530 DataHelper: Optimize checks in storeProps() 2016-01-06 17:54:05 +00:00
zzz 144f54eb8c Console: Properly register listen hosts with PortMapper
I2PTunnel: Fixup console links in error pages if console is
           on a non-standard host or port, or on https
PortMapper: Add method to convert wildcard host to actual host
2016-01-06 17:50:06 +00:00
dev 3e4d77452a Added support an missing binary for AMD K10 arch. 2015-12-27 13:22:34 +00:00
zzz 2698076fb6 distrust Comodo UTN cert 2015-12-23 11:55:44 +00:00
zzz 8da3257856 cache new family options 2015-12-23 10:50:46 +00:00
z3r0fox 074c5aa16c merge of '22cebc21c21e3a101e03165f26a5e9fddc3648da'
and 'e210f94f3d17359b39a6b24f2a5e1221a86abfd0'
2015-12-20 21:07:16 +00:00
zzz cc4bf8ea16 CertUtil: Add methods to export private keys
Unused so far, to be used for family key
2015-12-20 14:28:44 +00:00
z3r0fox c60f3970d1 Replaces instances of getBytes() in core classes 2015-12-20 01:18:38 +00:00
zzz 71d4b5f49f Broadwell/Skylake tweak 2015-12-16 20:52:14 +00:00
zzz 31efa7c980 Recognize Skylake
Do the same checks for Broadwell and Skylake that we do
for Haswell, and check ADX as well, which will be used
in GMP 6.1.
Javadocs
2015-12-16 20:32:54 +00:00
zzz 89e5e1d308 Fix class for nativeJcpuidVersion()
Add output for nativeJcpuidVersion()
Change CPUIDCPUInfo back to package private
More @since fixes
2015-12-16 15:55:39 +00:00
zzz 1e3e02d1f0 CPUID: Clear ECX register to ensure it will work with EAX=7
Tested on linux only
Add nativeJcpuidVersion()
Only call getCPUVendorID() once in getInfo()
Change all @since to 0.9.25 in hopes it will come true
Tab removal
Javadoc tweaks
2015-12-16 15:02:03 +00:00
dev 1f4a266c22 Added more checks to Haswell identification.. 2015-12-15 20:34:28 +00:00
dev 93fbdcd443 Made CPUIDCPUInfo non-abstract to support looking for CPU features during CPU identification. 2015-12-15 17:19:37 +00:00
dev 0e6e90baf0 Cleaned up BMI1/BMI2/AVX2/FMA3/MOVBE/ABM support. 2015-12-15 05:29:58 +00:00
dev 2c8179f057 Added hasBMI2() feature detection and use it to list some Celeron Haswell CPUs as non-Haswell CPUs. 2015-12-14 18:54:58 +00:00
zzz 3c5f9d0bc3 RouterInfo: Optimize writing to avoid extra copy;
eliminate caching previously enabled for routers with high memory limits
Log tweak on sig verify fail
DataHelper.writeLong() to write(byte) conversion
DatabaseEntry: Remove deprecated, unused setRoutingKey()
2015-12-13 16:48:04 +00:00
zzz 2155347e4f another writeLong 2015-12-13 16:41:35 +00:00
zzz db86850d15 Addresses: Catch a rare (Windows only? IPv6 only?) error
when enumerating network interfaces
2015-12-13 16:40:42 +00:00
zzz 97ae1e5034 Cleanup: Don't use DataHelper.writeLong() for a single byte 2015-12-13 16:38:06 +00:00
zzz fe3642edd4 CPUID: Multiple bug fixes:
- Add support for extended feature registers EBX/ECX
 - No such thing as EBX for 0x80000001 call; remove getExtendedEBXCPUFlags() method,
   replaced with getExtendedEBXFeatureFlags()
 - Check for support of 6 required Core i3/i5/i7 instructions to enable Haswell,
   since GMP Haswell requires Core i3/i5/i7 support.
   There are Pentium/Celeron Haswells that do not support these instructions.
 - Fix hasAVX2(), hasAVX512(), and hasADX() using wrong register
 - Fix hasAVX512() checking wrong bit
 - Define hasAVX512() as supporting AVX-512 Foundation, not the "full"
   instruction set as previously specified in the javadocs.
 - hasAVX2(), hasAVX512(), and hasADX() need not check hasAVX() first
 - Add missing hasADX() to CPUInfo interface
Also:
 - More diagnostic output in CPUID.main()
 - More javadocs
2015-12-12 22:53:33 +00:00
zzz c8aca62d03 Crypto: Blacklist Verisign G1 roots
match by CN or OU
2015-12-11 22:36:40 +00:00
zzz 8b9bcbc777 SSU: Fix outbound IPv6 errors on Windows without a real v6 address
when explict host is set. Validate addresses before confirming that
we have an IPv6 address. Possibly related to ticket #1538.
javadocs
2015-12-11 17:14:45 +00:00
zzz ea9c4a1957 Router, naming, I2CP: Increase lookup cache max sizes (except on Android),
reduce max lookup depth, and increase non-floodfill profile bonus
to attempt to reduce load on floodfills
2015-12-11 15:40:11 +00:00
zzz 393b593785 Logs: Windows line ending fixes for event log and duplicate message in router log 2015-12-11 15:06:22 +00:00
zzz 9b2bbe03ee dont put HTML in Android router logs 2015-12-10 13:07:40 +00:00
zzz 7ea2be387e Better exception message, so it's in the router log 2015-12-08 02:13:31 +00:00
zzz 8b42896cc6 Crypto: Consolidate certificate import methods 2015-12-08 02:07:38 +00:00
dev 5df3f404f8 Fixed support for Atom CPUs. 2015-12-08 00:36:49 +00:00
zzz fdc160cf1d Utils: Move new getSystemTimeZone() from DataHelper to SystemVersion,
which is a better place for it.
2015-12-06 16:28:14 +00:00
zzz b53fe37a30 SAM:
- Don't map keys to upper case in parser, corrupts I2CP options
  - Register SSL and UDP ports with PortMapper
2015-12-01 20:14:09 +00:00
zzz d5717ca12d javadoc 2015-11-29 14:52:08 +00:00