Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61856cc9 authored by Treehugger Robot's avatar Treehugger Robot
Browse files

Merge "Update counters for session encryption to start at 1." am: ae97b320

Change-Id: I1f84c61f0b1d4d7c7468420de28f612d4f1f7460
parents ac609b99 ae97b320
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -152,8 +152,8 @@ class CredstoreIdentityCredential extends IdentityCredential {
            derivedKey = Util.computeHkdf("HmacSha256", sharedSecret, salt, info, 32);
            mReaderSecretKey = new SecretKeySpec(derivedKey, "AES");

            mEphemeralCounter = 0;
            mReadersExpectedEphemeralCounter = 0;
            mEphemeralCounter = 1;
            mReadersExpectedEphemeralCounter = 1;

        } catch (NoSuchAlgorithmException e) {
            throw new RuntimeException("Error performing key agreement", e);