fixed wrong long-to-bytearray conversion

This commit is contained in:
Sebastian Stenzel
2015-07-14 15:20:50 +02:00
parent 8c4d5a9614
commit e1ce400bcd

View File

@@ -636,7 +636,7 @@ public class Aes256Cryptor implements Cryptor, AesCryptographicConfiguration {
}
private byte[] longToByteArray(long lng) {
return ByteBuffer.allocate(Long.SIZE).putLong(lng).array();
return ByteBuffer.allocate(Long.SIZE / Byte.SIZE).putLong(lng).array();
}
}