Skip to content

Commit

Permalink
Rename keccackj to keccakjy
Browse files Browse the repository at this point in the history
  • Loading branch information
aelstad committed Nov 23, 2014
1 parent 28086de commit 687f5df
Show file tree
Hide file tree
Showing 46 changed files with 102 additions and 94 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
.classpath
.project
.settings
aelstad.jks
build.properties
target/**
/target/
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;

import java.security.MessageDigest;

import com.github.aelstad.keccackj.io.BitInputStream;
import com.github.aelstad.keccackj.io.BitOutputStream;
import com.github.aelstad.keccakj.io.BitInputStream;
import com.github.aelstad.keccakj.io.BitOutputStream;

public abstract class AbstractKeccackMessageDigest extends MessageDigest {

Expand Down
@@ -1,4 +1,4 @@
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;

import java.io.ByteArrayOutputStream;
import java.security.SecureRandom;
Expand Down
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;

import java.util.Arrays;

import com.github.aelstad.keccackj.core.KeccackStateUtils.StateOp;
import com.github.aelstad.keccakj.core.KeccackStateUtils.StateOp;

/**
* Java port of the reference implementation of Keccack-1600 permuation
Expand Down
Expand Up @@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;

import java.io.FilterOutputStream;
import java.io.IOException;
import java.util.Arrays;

import com.github.aelstad.keccackj.core.KeccackStateUtils.StateOp;
import com.github.aelstad.keccackj.io.BitInputStream;
import com.github.aelstad.keccackj.io.BitOutputStream;
import com.github.aelstad.keccakj.core.KeccackStateUtils.StateOp;
import com.github.aelstad.keccakj.io.BitInputStream;
import com.github.aelstad.keccakj.io.BitOutputStream;

public class KeccackSponge {
boolean squeezing;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;


/**
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;

public class KeccackStateValidationFailedException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.fips202;
package com.github.aelstad.keccakj.fips202;

import com.github.aelstad.keccackj.core.AbstractKeccackMessageDigest;
import com.github.aelstad.keccakj.core.AbstractKeccackMessageDigest;

public final class SHA3_224 extends AbstractKeccackMessageDigest {
private final static byte DOMAIN_PADDING = 2;
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.fips202;
package com.github.aelstad.keccakj.fips202;

import com.github.aelstad.keccackj.core.AbstractKeccackMessageDigest;
import com.github.aelstad.keccakj.core.AbstractKeccackMessageDigest;

public final class SHA3_256 extends AbstractKeccackMessageDigest {
private final static byte DOMAIN_PADDING = 2;
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.fips202;
package com.github.aelstad.keccakj.fips202;

import com.github.aelstad.keccackj.core.AbstractKeccackMessageDigest;
import com.github.aelstad.keccakj.core.AbstractKeccackMessageDigest;

public final class SHA3_384 extends AbstractKeccackMessageDigest {
private final static byte DOMAIN_PADDING = 2;
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.fips202;
package com.github.aelstad.keccakj.fips202;

import com.github.aelstad.keccackj.core.AbstractKeccackMessageDigest;
import com.github.aelstad.keccakj.core.AbstractKeccackMessageDigest;

public final class SHA3_512 extends AbstractKeccackMessageDigest {

Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.fips202;
package com.github.aelstad.keccakj.fips202;

import com.github.aelstad.keccackj.core.KeccackSponge;
import com.github.aelstad.keccakj.core.KeccackSponge;

public final class Shake128 extends KeccackSponge {
private final static byte DOMAIN_PADDING = 0xf;
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.fips202;
package com.github.aelstad.keccakj.fips202;

import com.github.aelstad.keccackj.core.KeccackSponge;
import com.github.aelstad.keccakj.core.KeccackSponge;

public class Shake256 extends KeccackSponge{
private final static byte DOMAIN_PADDING = 0xf;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.io;
package com.github.aelstad.keccakj.io;

import java.io.InputStream;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.io;
package com.github.aelstad.keccakj.io;

import java.io.OutputStream;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.keyak;
package com.github.aelstad.keccakj.keyak;

public class KeyakTagValidationFailedException extends RuntimeException {
private static final long serialVersionUID = 1L;
Expand Down
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.keyak;
package com.github.aelstad.keccakj.keyak;

import com.github.aelstad.keccackj.core.Keccack1600;
import com.github.aelstad.keccackj.core.KeccackStateValidationFailedException;
import com.github.aelstad.keccakj.core.Keccack1600;
import com.github.aelstad.keccakj.core.KeccackStateValidationFailedException;

public final class LakeKeyak {

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.provider;
package com.github.aelstad.keccakj.provider;

public class Constants {
public static final String PROVIDER = "com.github.aelstad.keccackj";
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.provider;
package com.github.aelstad.keccakj.provider;

import java.security.Provider;

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.nio.ByteBuffer;
import java.security.AlgorithmParameters;
Expand Down
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import javax.crypto.ShortBufferException;

import com.github.aelstad.keccackj.core.KeccackSponge;
import com.github.aelstad.keccackj.io.BitOutputStream;
import com.github.aelstad.keccakj.core.KeccackSponge;
import com.github.aelstad.keccakj.io.BitOutputStream;

public abstract class AbstractSpongeStreamCipher extends AbstractCipher{

Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.nio.ByteBuffer;
import java.security.InvalidAlgorithmParameterException;
Expand Down
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.security.SecureRandomSpi;

import com.github.aelstad.keccackj.core.DuplexRandom;
import com.github.aelstad.keccakj.core.DuplexRandom;

/**
* A cryptographic random implementation providing 128-bit
Expand Down
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.security.SecureRandomSpi;

import com.github.aelstad.keccackj.core.DuplexRandom;
import com.github.aelstad.keccakj.core.DuplexRandom;

/**
* A cryptographic random implementation providing 256-bit
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.nio.ByteBuffer;

Expand All @@ -22,7 +22,7 @@
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.ShortBufferException;

import com.github.aelstad.keccackj.keyak.LakeKeyak;
import com.github.aelstad.keccakj.keyak.LakeKeyak;

public class LakeKeyakCipher extends AbstractCipher {
LakeKeyak lakeKeyak;
Expand Down
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.security.InvalidKeyException;

import com.github.aelstad.keccackj.provider.Constants;
import com.github.aelstad.keccakj.provider.Constants;


public final class LakeKeyakKey extends RawKey {
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import java.security.InvalidKeyException;

Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import com.github.aelstad.keccackj.provider.Constants;
import com.github.aelstad.keccakj.provider.Constants;

public class Shake128Key extends RawKey {

Expand Down
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import com.github.aelstad.keccackj.core.KeccackSponge;
import com.github.aelstad.keccackj.fips202.Shake128;
import com.github.aelstad.keccakj.core.KeccackSponge;
import com.github.aelstad.keccakj.fips202.Shake128;

public final class Shake128StreamCipher extends AbstractSpongeStreamCipher {
private Shake128 sponge;
Expand Down
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import com.github.aelstad.keccackj.provider.Constants;
import com.github.aelstad.keccakj.provider.Constants;

public class Shake256Key extends RawKey {

Expand Down
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.spi;
package com.github.aelstad.keccakj.spi;

import com.github.aelstad.keccackj.core.KeccackSponge;
import com.github.aelstad.keccackj.fips202.Shake256;
import com.github.aelstad.keccakj.core.KeccackSponge;
import com.github.aelstad.keccakj.fips202.Shake256;

public class Shake256StreamCipher extends AbstractSpongeStreamCipher {

Expand Down
Expand Up @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.aelstad.keccackj.core;
package com.github.aelstad.keccakj.core;

import org.junit.Assert;
import org.junit.Test;

import com.github.aelstad.keccackj.core.KeccackStateUtils;
import com.github.aelstad.keccackj.core.KeccackStateUtils.StateOp;
import com.github.aelstad.keccakj.core.KeccackStateUtils;
import com.github.aelstad.keccakj.core.KeccackStateUtils.StateOp;


public class TestKeccackStateUtils {
Expand Down

0 comments on commit 687f5df

Please sign in to comment.