-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from phxql/develop
Version 2.11
- Loading branch information
Showing
17 changed files
with
579 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Contributing | ||
|
||
Feel free to fork the project and create pull requests. Please use the `develop` branch for new features, | ||
I like to keep the `master` branch stable. | ||
I like to keep the `master` branch stable. | ||
|
||
Note that JDK 11 is required to build. Older versions do not allow creating a Multi-Release JAR and | ||
newer versions do not support `--release 6`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 15 additions & 6 deletions
21
argon2-jvm-nolibs/src/main/java/de/mkammerer/argon2/Argon2Version.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
package de.mkammerer.argon2; | ||
|
||
import de.mkammerer.argon2.jna.Argon2_version; | ||
|
||
/** | ||
* Version of the Argon2 algorithm. | ||
*/ | ||
public enum Argon2Version { | ||
V10(0x10), | ||
V13(0x13); | ||
V13(0x13), | ||
DEFAULT_VERSION(V13.version); | ||
|
||
private final int version; | ||
private final Argon2_version jnaType; | ||
|
||
private final int jnaVersion; | ||
Argon2Version(int version) { | ||
this.version = version; | ||
this.jnaType = new Argon2_version(version); | ||
} | ||
|
||
Argon2Version(int jnaVersion) { | ||
this.jnaVersion = jnaVersion; | ||
public Argon2_version getJnaType() { | ||
return jnaType; | ||
} | ||
|
||
public int getJnaVersion() { | ||
return jnaVersion; | ||
public int getVersion() { | ||
return version; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.