Esempio n. 1
0
 public void InitiateCurrentSymmetricFromSecret(byte[] sharedSecret)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(sharedSecret);
 }
Esempio n. 2
0
 private void Bob2_2_GenerateRandomSessionKeyWithIV()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
Esempio n. 3
0
 private async Task Bob2_2_GenerateRandomSessionKeyWithIVAsync()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
Esempio n. 4
0
 private void Alice3_1_DecryptSessionKey()
 {
     var sessionKeyAndIV = PublicAndPrivateKeys.Decrypt(EncryptedSessionKey, false);
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeFromKeyAndIV(sessionKeyAndIV);
 }