// Path: src/main/java/com/github/aelstad/keccakj/fips202/SHA3_256.java
// public final class SHA3_256 extends AbstractKeccakMessageDigest {
// 	private final static byte DOMAIN_PADDING = 2;
// 	private final static int DOMMAIN_PADDING_LENGTH = 2;
// 
// 	public SHA3_256() {
// 		super("SHA3-256", 2*256, 256/8, DOMAIN_PADDING, DOMMAIN_PADDING_LENGTH);
// 	}
// 
// }


import java.io.InputStream;
import java.util.List;
import org.junit.Test;
import com.github.aelstad.keccakj.fips202.SHA3_256;
/*
 * Copyright 2014 Amund Elstad.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.aelstad.keccakj.fips202;




public class TestSHA3_256 {

	@Test
	public void checkTestVectors() throws Exception {
		InputStream is = getClass().getResourceAsStream("/com/github/aelstad/keccakj/fips202/ShortMsgKAT_SHA3-256.txt");

		KeccakDigestTestUtils kdtu = new KeccakDigestTestUtils();
		List<KeccakDigestTestUtils.DigestTest> tests = kdtu.parseTests(is);
// Path: src/main/java/com/github/aelstad/keccakj/fips202/SHA3_256.java
// public final class SHA3_256 extends AbstractKeccakMessageDigest {
// 	private final static byte DOMAIN_PADDING = 2;
// 	private final static int DOMMAIN_PADDING_LENGTH = 2;
// 
// 	public SHA3_256() {
// 		super("SHA3-256", 2*256, 256/8, DOMAIN_PADDING, DOMMAIN_PADDING_LENGTH);
// 	}
// 
// }


// Path: src/test/java/com/github/aelstad/keccakj/fips202/TestSHA3_256.java
import java.io.InputStream;
import java.util.List;
import org.junit.Test;
import com.github.aelstad.keccakj.fips202.SHA3_256;

/*
 * Copyright 2014 Amund Elstad.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.aelstad.keccakj.fips202;




public class TestSHA3_256 {

	@Test
	public void checkTestVectors() throws Exception {
		InputStream is = getClass().getResourceAsStream("/com/github/aelstad/keccakj/fips202/ShortMsgKAT_SHA3-256.txt");

		KeccakDigestTestUtils kdtu = new KeccakDigestTestUtils();
		List<KeccakDigestTestUtils.DigestTest> tests = kdtu.parseTests(is);
		SHA3_256 sha = new SHA3_256();