Commit e9481397 authored by calocedre TAC's avatar calocedre TAC
Browse files

Do not log thrown error

parent 67ce0291
Pipeline #227406 passed with stage
in 1 minute and 50 seconds
......@@ -44,8 +44,6 @@ import org.bouncycastle.jce.spec.ECPublicKeySpec;
import org.bouncycastle.math.ec.ECPoint;
import org.bouncycastle.util.encoders.Hex;
import lombok.extern.slf4j.Slf4j;
/**
* Encryption/Decription respecting ECIES-KEM (Elliptic Curve Integrated
* Encryption Scheme with Key encapsulation mechanisms )
......@@ -58,7 +56,6 @@ import lombok.extern.slf4j.Slf4j;
* for Public-Key Encryption”, 2006</a>
*
*/
@Slf4j
public class CleaEciesEncoder {
/* Type of the elliptic curve */
......@@ -329,7 +326,6 @@ public class CleaEciesEncoder {
return locationTemporarySecretKey;
} catch (IOException | NoSuchAlgorithmException e) {
log.error("Error when computing location temporary secret key!", e);
throw new CleaEncryptionException(e);
}
}
......@@ -359,7 +355,6 @@ public class CleaEciesEncoder {
return locationTemporaryPublicID;
} catch (InvalidKeyException | NoSuchAlgorithmException | IllegalStateException | UnsupportedEncodingException e) {
log.error("Error when computing location temporary secret key!", e);
throw new CleaEncryptionException(e);
}
}
......
......@@ -33,7 +33,6 @@ public class LocationContactMessageEncoder {
} catch (NoSuchAlgorithmException | InvalidKeySpecException | NoSuchProviderException
| InvalidAlgorithmParameterException | IllegalStateException | InvalidCipherTextException
| IOException e) {
log.error("Cannot encrypt Location Contact Message", e);
throw new CleaEncryptionException(e);
}
}
......@@ -111,7 +110,6 @@ public class LocationContactMessageEncoder {
return new LocationContact(locationPhone.toString(), locationPin.toString(), periodStartTime);
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IllegalStateException | InvalidCipherTextException
| IOException e) {
log.error("Cannot encrypt Location Contact Message", e);
throw new CleaEncryptionException(e);
}
}
......
......@@ -100,7 +100,6 @@ public class LocationSpecificPartDecoder {
binaryLocationSpecificPart = this.cleaEciesEncoder.decrypt(encryptedLocationSpecificPart, this.serverAuthoritySecretKey, true);
} catch (NoSuchAlgorithmException | InvalidKeySpecException | IllegalStateException | InvalidCipherTextException
| IOException e) {
log.error("Cannot decrypt Location Specific Part", e);
throw new CleaEncryptionException(e);
}
return this.decodeMessage(binaryLocationSpecificPart);
......
......@@ -117,7 +117,6 @@ public class LocationSpecificPartEncoder {
log.debug("message length: {}, encrypted message length: {} ", message.length, encryptedMessage.length);
return encryptedMessage;
} catch (Exception e) {
log.error("Cannot encrypt Location Specific Part", e);
throw new CleaEncryptionException(e);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment