Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Feb 29, 2024
1 parent 2cd549d commit fd2f5d5
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 29 deletions.
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

0 comments on commit fd2f5d5

Please sign in to comment.