Skip to content
Snippets Groups Projects
Commit 442e1c51 authored by Thai Duong's avatar Thai Duong
Browse files

Fix Lint errors.

Change-Id: Idf5526bb6d5d10e5692b5c99544f200fb24b1ff7
ORIGINAL_AUTHOR=Thai Duong <thaidn@google.com>
GitOrigin-RevId: 7f9877d277d3b700de16721d27402a2121b8310f
parent 3a4f9564
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ import java.security.interfaces.ECPublicKey;
*/
class EciesAeadHkdfHybridEncrypt implements HybridEncrypt {
private static final byte[] EMPTY_AAD = new byte[0];
private final ECPublicKey recipientPublicKey;
private final EciesHkdfSenderKem senderKem;
private final String hkdfHmacAlgo;
private final byte[] hkdfSalt;
......@@ -45,7 +44,6 @@ class EciesAeadHkdfHybridEncrypt implements HybridEncrypt {
KeyTemplate aeadDemTemplate, EcPointFormat ecPointFormat)
throws GeneralSecurityException {
EcUtil.checkPublicKey(recipientPublicKey);
this.recipientPublicKey = recipientPublicKey;
this.senderKem = new EciesHkdfSenderKem(recipientPublicKey);
this.hkdfSalt = hkdfSalt;
this.hkdfHmacAlgo = hkdfHmacAlgo;
......
......@@ -24,10 +24,14 @@ import com.google.crypto.tink.TinkProto.KeyData;
import com.google.crypto.tink.subtle.Ed25519Sign;
import com.google.crypto.tink.subtle.SubtleUtil;
import com.google.protobuf.ByteString;
import com.google.protobuf.MessageLite;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.MessageLite;
import java.security.GeneralSecurityException;
/**
* This instance of {@code KeyManager} generates new {@code Ed25519PrivateKey} keys and
* produces new instances of {@code Ed25519Sign}.
*/
public final class Ed25519PrivateKeyManager implements KeyManager<PublicKeySign> {
Ed25519PrivateKeyManager() {}
/**
......
......@@ -23,10 +23,14 @@ import com.google.crypto.tink.TinkProto.KeyData;
import com.google.crypto.tink.subtle.Ed25519Verify;
import com.google.crypto.tink.subtle.SubtleUtil;
import com.google.protobuf.ByteString;
import com.google.protobuf.MessageLite;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.MessageLite;
import java.security.GeneralSecurityException;
/**
* This key manager produces new instances of {@code Ed25519Verify}.
* It doesn't support key generation.
*/
public final class Ed25519PublicKeyManager implements
KeyManager<PublicKeyVerify> {
Ed25519PublicKeyManager() {}
......
......@@ -21,13 +21,9 @@ import static junit.framework.Assert.assertTrue;
import static junit.framework.Assert.fail;
import com.google.crypto.tink.Ed25519Proto.Ed25519PrivateKey;
import com.google.crypto.tink.Ed25519Proto.Ed25519PublicKey;
import com.google.crypto.tink.PublicKeySign;
import com.google.crypto.tink.PublicKeyVerify;
import com.google.crypto.tink.TestUtil;
import com.google.crypto.tink.TinkProto.KeyTemplate;
import com.google.crypto.tink.Registry;
import com.google.crypto.tink.Util;
import com.google.crypto.tink.subtle.Ed25519Sign;
import com.google.crypto.tink.subtle.Ed25519Verify;
import com.google.crypto.tink.subtle.Random;
......
......@@ -16,22 +16,14 @@
package com.google.crypto.tink.signature;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertTrue;
import static junit.framework.Assert.fail;
import com.google.crypto.tink.Ed25519Proto.Ed25519PrivateKey;
import com.google.crypto.tink.Ed25519Proto.Ed25519PublicKey;
import com.google.crypto.tink.PublicKeySign;
import com.google.crypto.tink.PublicKeyVerify;
import com.google.crypto.tink.TestUtil;
import com.google.crypto.tink.TinkProto.KeyTemplate;
import com.google.crypto.tink.Registry;
import com.google.crypto.tink.Util;
import com.google.crypto.tink.subtle.Ed25519Sign;
import com.google.crypto.tink.subtle.Ed25519Verify;
import com.google.crypto.tink.subtle.Random;
import com.google.protobuf.ByteString;
import com.google.protobuf.MessageLite;
import java.security.GeneralSecurityException;
import java.util.Arrays;
......
......@@ -21,4 +21,4 @@ package com.google.crypto.tink.tinkey;
*/
public interface Command {
public void run() throws Exception;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment