Calculate and verify signature and MAC for Introduction ACKs
Before the introducee sends her ACK, she derives a master key from the ephemeral shared secret as before. Two nonces and a MAC key are then derived from the master key. The local introducee signs one of the nonces and calculates a MAC over her own identity public key, ephemeral public key, transport properties and timestamp. The local introducee includes the signature and MAC in her ACK. On receiving the remote introducee's ACK, the local introducee verifies the signature and MAC. Should the verification fail, an ABORT is sent to the introducer and the remote introducee that was added as inactive is deleted again.
Showing
- briar-android-tests/src/test/java/org/briarproject/IntroductionIntegrationTest.java 213 additions, 158 deletions...st/java/org/briarproject/IntroductionIntegrationTest.java
- briar-android-tests/src/test/java/org/briarproject/IntroductionIntegrationTestComponent.java 3 additions, 0 deletions...rg/briarproject/IntroductionIntegrationTestComponent.java
- briar-api/src/org/briarproject/api/contact/ContactManager.java 5 additions, 1 deletion...-api/src/org/briarproject/api/contact/ContactManager.java
- briar-api/src/org/briarproject/api/crypto/CryptoComponent.java 6 additions, 0 deletions...-api/src/org/briarproject/api/crypto/CryptoComponent.java
- briar-api/src/org/briarproject/api/introduction/IntroductionConstants.java 8 additions, 0 deletions.../briarproject/api/introduction/IntroductionConstants.java
- briar-core/src/org/briarproject/contact/ContactManagerImpl.java 4 additions, 9 deletions...core/src/org/briarproject/contact/ContactManagerImpl.java
- briar-core/src/org/briarproject/crypto/CryptoComponentImpl.java 8 additions, 0 deletions...core/src/org/briarproject/crypto/CryptoComponentImpl.java
- briar-core/src/org/briarproject/introduction/IntroduceeEngine.java 12 additions, 2 deletions...e/src/org/briarproject/introduction/IntroduceeEngine.java
- briar-core/src/org/briarproject/introduction/IntroduceeManager.java 105 additions, 13 deletions.../src/org/briarproject/introduction/IntroduceeManager.java
- briar-core/src/org/briarproject/introduction/IntroductionValidator.java 2 additions, 1 deletion.../org/briarproject/introduction/IntroductionValidator.java
- briar-tests/src/org/briarproject/introduction/IntroduceeManagerTest.java 28 additions, 28 deletions.../org/briarproject/introduction/IntroduceeManagerTest.java
Loading
Please register or sign in to comment