Correct references from Java 8
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d8da67b081
commit
de15275297
4 changed files with 8 additions and 4 deletions
4
pom.xml
4
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>ru.redrise</groupId>
|
||||
<artifactId>libKonogonka</artifactId>
|
||||
<version>0.1</version>
|
||||
<version>0.2-SNAPSHOT</version>
|
||||
|
||||
<url>https://git.redrise.ru/desu/${project.name}}/</url>
|
||||
<description>
|
||||
|
@ -57,6 +57,7 @@
|
|||
|
||||
<dependencies>
|
||||
<!-- For AES XTS we use bouncycastle -->
|
||||
<!-- SELECTED LOG4J versions works with Java 8: 1.60 or 1.63 -->
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15on</artifactId>
|
||||
|
@ -71,6 +72,7 @@
|
|||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
|
||||
<!-- SELECTED LOG4J versions works with Java 8: 2.17.1 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
|
|
|
@ -24,6 +24,7 @@ import javax.crypto.Cipher;
|
|||
import javax.crypto.spec.IvParameterSpec;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import java.math.BigInteger;
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public class AesCtrDecryptClassic extends AesCtrDecrypt {
|
||||
|
@ -52,7 +53,7 @@ public class AesCtrDecryptClassic extends AesCtrDecrypt {
|
|||
byte[] ctrCalculated = ctr.add(updateTo).toByteArray();
|
||||
if (ctrCalculated.length != 0x10) {
|
||||
ByteBuffer ctrByteBuffer = ByteBuffer.allocate(0x10);
|
||||
ctrByteBuffer.position(0x10 - ctrCalculated.length);
|
||||
((Buffer) ctrByteBuffer).position(0x10 - ctrCalculated.length);
|
||||
ctrByteBuffer.put(ctrCalculated);
|
||||
return ctrByteBuffer.array();
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ import libKonogonka.aesctr.InFileStreamClassicProducer;
|
|||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
@ -156,7 +157,7 @@ public class Kip1Unpacker {
|
|||
ByteBuffer resultingHeader = ByteBuffer.allocate(HEADER_SIZE).order(ByteOrder.LITTLE_ENDIAN);
|
||||
resultingHeader.put("KIP1".getBytes(StandardCharsets.US_ASCII))
|
||||
.put(kip1Header.getName().getBytes(StandardCharsets.US_ASCII));
|
||||
resultingHeader.position(0x10);
|
||||
((Buffer) resultingHeader).position(0x10);
|
||||
resultingHeader.put(kip1Header.getProgramId())
|
||||
.putInt(kip1Header.getVersion())
|
||||
.put(kip1Header.getMainThreadPriority())
|
||||
|
|
|
@ -15,7 +15,7 @@ status = error
|
|||
name = DebugConfigDevelopmentOnlyVerbose
|
||||
|
||||
# Configure root logger level
|
||||
rootLogger.level = INFO
|
||||
rootLogger.level = DEBUG
|
||||
# Root logger referring to console appender
|
||||
rootLogger.appenderRef.stdout.ref = consoleLogger
|
||||
|
||||
|
|
Loading…
Reference in a new issue