Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename package #12

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# cryptobox-java
# cryptology-java
libsodium compatible SealedBox and SecretBox implementation in Java
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'cryptobox'
rootProject.name = 'cryptology'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xconn.cryptobox;
package io.xconn.cryptology;

import java.nio.charset.StandardCharsets;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

public class KeyPair {
private final byte[] publicKey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

public class Main {
public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import org.bouncycastle.crypto.digests.Blake2bDigest;
import org.bouncycastle.crypto.engines.XSalsa20Engine;
Expand All @@ -8,9 +8,9 @@
import org.bouncycastle.math.ec.rfc7748.X25519;
import org.bouncycastle.util.Arrays;

import static io.xconn.cryptobox.Util.MAC_SIZE;
import static io.xconn.cryptobox.Util.PUBLIC_KEY_BYTES;
import static io.xconn.cryptobox.Util.getX25519PublicKey;
import static io.xconn.cryptology.Util.MAC_SIZE;
import static io.xconn.cryptology.Util.PUBLIC_KEY_BYTES;
import static io.xconn.cryptology.Util.getX25519PublicKey;

public class SealedBox {
private static final byte[] HSALSA20_SEED = new byte[16];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import java.security.MessageDigest;
import java.util.Arrays;
Expand All @@ -8,7 +8,7 @@
import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.crypto.params.ParametersWithIV;

import static io.xconn.cryptobox.Util.MAC_SIZE;
import static io.xconn.cryptology.Util.MAC_SIZE;

public class SecretBox {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import java.security.SecureRandom;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import java.security.GeneralSecurityException;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import org.bouncycastle.util.encoders.Hex;
import org.junit.jupiter.api.BeforeAll;
Expand All @@ -9,12 +9,12 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;

import static io.xconn.cryptobox.SealedBox.computeSharedSecret;
import static io.xconn.cryptobox.SealedBox.createNonce;
import static io.xconn.cryptobox.SealedBox.sealOpen;
import static io.xconn.cryptobox.SealedBox.seal;
import static io.xconn.cryptobox.Util.MAC_SIZE;
import static io.xconn.cryptobox.Util.PUBLIC_KEY_BYTES;
import static io.xconn.cryptology.SealedBox.computeSharedSecret;
import static io.xconn.cryptology.SealedBox.createNonce;
import static io.xconn.cryptology.SealedBox.sealOpen;
import static io.xconn.cryptology.SealedBox.seal;
import static io.xconn.cryptology.Util.MAC_SIZE;
import static io.xconn.cryptology.Util.PUBLIC_KEY_BYTES;

public class SealedBoxTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import org.bouncycastle.util.encoders.Hex;
import org.junit.jupiter.api.BeforeAll;
Expand All @@ -7,10 +7,10 @@
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

import static io.xconn.cryptobox.Util.MAC_SIZE;
import static io.xconn.cryptobox.SecretBox.box;
import static io.xconn.cryptobox.SecretBox.boxOpen;
import static io.xconn.cryptobox.SecretBox.checkLength;
import static io.xconn.cryptology.Util.MAC_SIZE;
import static io.xconn.cryptology.SecretBox.box;
import static io.xconn.cryptology.SecretBox.boxOpen;
import static io.xconn.cryptology.SecretBox.checkLength;

public class SecretBoxTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.xconn.cryptobox;
package io.xconn.cryptology;

import java.security.SecureRandom;

Expand All @@ -7,9 +7,9 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import static io.xconn.cryptobox.Util.PUBLIC_KEY_BYTES;
import static io.xconn.cryptobox.Util.generateX25519KeyPair;
import static io.xconn.cryptobox.Util.getX25519PublicKey;
import static io.xconn.cryptology.Util.PUBLIC_KEY_BYTES;
import static io.xconn.cryptology.Util.generateX25519KeyPair;
import static io.xconn.cryptology.Util.getX25519PublicKey;


public class UtilTest {
Expand Down