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