Graham
97a11ba765
Inject RSAPrivateCrtKeyParameters in PublicKeyTransformer
5 years ago
Graham
65f0cc0f6e
Add GameServer skeleton
5 years ago
Graham
84b384156f
Add RsaKeyProvider
5 years ago
Graham
0bb0d1a5b6
Return RSAPrivateCrtKeyParameters from readPrivateKey
5 years ago
Graham
c8af2288c6
Format RsaTest
5 years ago
Graham
e82f575695
Update jar/pack200/js5 resources in ResourceTransformer
5 years ago
Graham
dc75b05429
Switch back to the native Pack200 implementation for the moment
...
This isn't ideal as it's deprecated. However, while Apache Harmony's
unpack200 implementation seems fine, its pack200 implementation doesn't
work with the client and produces invalid output.
I've fixed some of the easy to fix bugs, but tracking down any remaining
bugs will be difficult - it'll involve tracing through the native
unpack200 code.
When Pack200 is removed from the JDK, hopefully someone will take up the
mantle of maintaining it outside of the JDK. If that doesn't happen,
we'll have to consider writing our own Pack200 implementation,
extracting OpenJDK's implementation out of the tree or fixing the bugs
in Apache Harmony.
5 years ago
Graham
97a8ada0d4
Add manifests to the unsigned client and loaders
5 years ago
Graham
c769feab3e
Add manifest support to writeJar
5 years ago
Graham
c6cf9a4d94
Add initial client bundler
5 years ago
Graham
a032e3d472
Exclude CRC from the path used by Resource::write
5 years ago
Graham
d03d1c3bb5
Rename overloaded compress method to compressNative
5 years ago
Graham
3a4085c680
Make compress private
5 years ago
Graham
5d51415baf
Add write method to Resource
5 years ago
Graham
47f4cc060a
Add compress{Jar,Pack,Js5} to Resource
5 years ago
Graham
3ae85d50ef
Add skeleton writeJs5 method
5 years ago
Graham
02ed6d7455
Make writeJar and writePack accept an OutputStream
5 years ago
Graham
c65087ad35
Update dependencies
5 years ago
Graham
a79dfd6f32
Implement jaggl and jagmisc resource transformation
5 years ago
Graham
2b82451b96
Remove isInterface argument from MethodInsnNode constructors
...
It's optional.
5 years ago
Graham
015de5d39b
Rename PLATFORM_DETECT to PLATFORM_DETECTION
5 years ago
Graham
c2fe02a3f3
Rename PLATFORM_DETECT_MATCHER to GL_PLATFORM_DETECT_MATCHER
5 years ago
Graham
531db3159e
Replace hasArray() and array() logic with ByteBufUtil.getBytes()
5 years ago
Graham
db11c5536d
Add publicKey property test
5 years ago
Graham
1cdf67e182
Add RSA key I/O tests
5 years ago
Graham
dcfaedcd2f
Improve opaque predicate regex in PlatformDetectionTransformer
5 years ago
Graham
c692a17bc9
Set Netty leak detection level to PARANOID when running the GameServer
5 years ago
Graham
d155f99ffb
Set Netty leak detection level to PARANOID in unit tests
5 years ago
Graham
6b247cb0e1
Add ByteBuf extension methods for RSA encryption and decryption
5 years ago
Graham
e64dbe1a0e
Add generateKeyPair() test
5 years ago
Graham
0f767c86eb
Add textbook RSA encryption and decryption
5 years ago
Graham
808c80e896
Add initial public key transformer
5 years ago
Graham
101548e5b7
Add RSA key generation and I/O
5 years ago
Graham
353b8f0834
Add thread-local secureRandom property
5 years ago
Graham
1a19c24dcd
Mention semver in the README
5 years ago
Graham
a684c0212d
Load natives from new location below dev.openrs2
5 years ago
Graham
b05ce1e96f
Add ResouceTransformer skeleton
5 years ago
Graham
02d3867f4c
Add platform detection transformer
5 years ago
Graham
099d9c591d
Replace listOf() with emptyList()
...
I think this makes the meaning slightly clearer.
5 years ago
Graham
41dac20719
Make @Override annotations invisible
...
Normally they wouldn't be retained in the bytecode at all, but for obvious
reasons we can't do that! Making them invisible is at least closer to the
RetentionPolicy's intention than a visible annotation.
5 years ago
Graham
5038d1d671
Replace ByteStreams with Kotlin extension method
5 years ago
Graham
06b8af41e2
Replace Stream with Sequence
5 years ago
Graham
250062a72f
Set buffer size to 65,536 bytes
...
Although this is one byte larger than it needs to be to hold the largest
possible packet, I think using a power of two is nicer.
5 years ago
Graham
1db43aef04
Update dependencies
5 years ago
Graham
57ed35465a
Update copyright year
5 years ago
Graham
56c4dfe3c2
Add netscape.javascript.JSObject stubs
...
This is the bare minimum required to build the client. Returning null in
getWindow() makes this class appropriate for use at runtime too, as the
function is documented as returning null if the application is not
connected to a browser.
5 years ago
Graham
98692c7d78
Add Java 8 compatibility
...
As a result of the Kotlin port, using Java 11 becomes less important.
Java 8 is still fairly widespread, so I think supporting it is still
worthwhile.
5 years ago
Graham
8ccbea16f1
Add ktlint to the README
5 years ago
Graham
17efd0f891
Update dependencies
5 years ago
Graham
7d1dc59d6a
Convert pre-increments to post-increments where possible
5 years ago