Exemplo n.º 1
0
            private void Alice3_1_DecryptSessionKey()
            {
                var sessionKeyAndIV = PublicAndPrivateKeys.Decrypt(EncryptedSessionKey, false);

                SessionKeyEnc = new SymmetricSupport();
                SessionKeyEnc.InitializeFromKeyAndIV(sessionKeyAndIV);
            }
Exemplo n.º 2
0
 public void InitiateCurrentSymmetricFromSecret(string textvalue)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(textvalue);
 }
Exemplo n.º 3
0
 private async Task Bob2_2_GenerateRandomSessionKeyWithIVAsync()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
Exemplo n.º 4
0
 private async Task Bob4_2_GenerateBobsRandomAndCombineWithAlicesRandomAsync()
 {
     BobsRandom = SymmetricSupport.GetRandomBytes(16);
     AlicesRandomWithBobsRandom          = AlicesRandom.Concat(BobsRandom).ToArray();
     AlicesRandomWithBobsRandomEncrypted = SessionKeyEnc.EncryptData(AlicesRandomWithBobsRandom);
 }
Exemplo n.º 5
0
 private void Bob2_2_GenerateRandomSessionKeyWithIV()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
Exemplo n.º 6
0
 private void Alice3_2_GenerateAliceRandomValue()
 {
     AlicesRandom = SymmetricSupport.GetRandomBytes(16);
 }
Exemplo n.º 7
0
 private void Bob2_2_GenerateRandomSessionKeyWithIV()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
Exemplo n.º 8
0
 private void Alice3_1_DecryptSessionKey()
 {
     var sessionKeyAndIV = PublicAndPrivateKeys.Decrypt(EncryptedSessionKey, false);
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeFromKeyAndIV(sessionKeyAndIV);
 }
Exemplo n.º 9
0
 private void InitiateCurrentSymmetricFromSecret(string textvalue)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(textvalue);
 }
Exemplo n.º 10
0
 public void InitiateCurrentSymmetricFromSecret(byte[] sharedSecret)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(sharedSecret);
 }
Exemplo n.º 11
0
 private async Task Bob2_2_GenerateRandomSessionKeyWithIVAsync()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }