blob: 318dc408696c139a72e14cf1add556135fd0d782 [file] [log] [blame]
package android.keystore.cts;
import java.security.AlgorithmParameters;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.InvalidParameterSpecException;
public class DESedeECBNoPaddingCipherTest extends DESedeCipherTestBase {
@Override
protected String getTransformation() {
return "DESede/ECB/NoPadding";
}
@Override
protected byte[] getIv(AlgorithmParameters params) throws InvalidParameterSpecException {
if (params != null) {
fail("ECB does not use IV");
}
return null;
}
@Override
protected AlgorithmParameterSpec getKatAlgorithmParameterSpec() {
return null;
}
@Override
protected byte[] getKatCiphertext() {
return HexEncoding.decode("ade119f9e35ab3e9ade119f9e35ab3e9");
}
@Override
protected byte[] getKatIv() {
return null;
}
}