Graham
8e0b480cfb
Replace jarsigner with the jdk.security.jarsigner API
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
efa9c90f57
Replace shelling out to keytool with Bouncy Castle and the security API
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
cf132cb2dd
Rename KEY_LENGTH to CLIENT_KEY_LENGTH
...
Signed-off-by: Graham <gpe@openrs2.dev>
5 years ago
Graham
2fa55b3ce1
Add length parameter to Rsa.generateKeyPair()
5 years ago
Major
488e8ef8c3
Add UnusedMethodTransformer
...
The transformer does _not_ check for use via reflection. The only cases
in the 550 and OSRS clients where methods are accessed via reflection
are either 1) JRE classes, 2) when the method name is sent from the
server.
PSVM and methods declared in TypedRemapper.EXCLUDED_METHODS are never
removed.
Signed-off-by: Major <major@emulate.rs>
5 years ago
Major
34507a92db
Use unix configuration in jimfs tests
...
Signed-off-by: Major <major@emulate.rs>
5 years ago
Graham
e480ce282a
Avoid write() calls with a length of zero
5 years ago
Graham
8d90a70b6a
Fix SkipOutputStream
...
Calling super.write(byte[], int, int) in FilterOutputStream didn't work,
as it called super.write(byte). This is inefficient and also caused us
to fiddle with skipBytes twice, causing us to skip the incorrect number
of bytes.
5 years ago
Graham
f833285fa6
Rename in/out to input/output to avoid use of backticks
5 years ago
Graham
06de9d1449
Replace if/throw with check() in the Rsa object
5 years ago
Graham
11ef4b0227
Sign loaders
5 years ago
Graham
33955e76c7
Add DeterministicJarOutputStream.repack() function
...
I'm going to use this to make jarsigner's output deterministic.
5 years ago
Graham
b8af6c0c90
Write public RSA key to disk
...
I think it's useful even though we don't read it.
5 years ago
Graham
d9762d65bc
Fix Kotlin inspections
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
c769feab3e
Add manifest support to writeJar
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
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
101548e5b7
Add RSA key generation and I/O
5 years ago
Graham
353b8f0834
Add thread-local secureRandom property
5 years ago
Graham
e9a9a8f962
Format with ktlint
5 years ago
Graham
e05653cdcc
Rename util to common
5 years ago