예제 #1
0
파일: TheBallEKE.cs 프로젝트: michlG/Caloom
            private void Alice3_1_DecryptSessionKey()
            {
                var sessionKeyAndIV = PublicAndPrivateKeys.Decrypt(EncryptedSessionKey, false);

                SessionKeyEnc = new SymmetricSupport();
                SessionKeyEnc.InitializeFromKeyAndIV(sessionKeyAndIV);
            }
예제 #2
0
파일: TheBallEKE.cs 프로젝트: michlG/Caloom
 public void InitiateCurrentSymmetricFromSecret(string textvalue)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(textvalue);
 }
예제 #3
0
파일: TheBallEKE.cs 프로젝트: michlG/Caloom
 private async Task Bob2_2_GenerateRandomSessionKeyWithIVAsync()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
예제 #4
0
파일: TheBallEKE.cs 프로젝트: michlG/Caloom
 private async Task Bob4_2_GenerateBobsRandomAndCombineWithAlicesRandomAsync()
 {
     BobsRandom = SymmetricSupport.GetRandomBytes(16);
     AlicesRandomWithBobsRandom          = AlicesRandom.Concat(BobsRandom).ToArray();
     AlicesRandomWithBobsRandomEncrypted = SessionKeyEnc.EncryptData(AlicesRandomWithBobsRandom);
 }
예제 #5
0
파일: TheBallEKE.cs 프로젝트: michlG/Caloom
 private void Bob2_2_GenerateRandomSessionKeyWithIV()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
예제 #6
0
파일: TheBallEKE.cs 프로젝트: michlG/Caloom
 private void Alice3_2_GenerateAliceRandomValue()
 {
     AlicesRandom = SymmetricSupport.GetRandomBytes(16);
 }
예제 #7
0
 private void Bob2_2_GenerateRandomSessionKeyWithIV()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }
예제 #8
0
 private void Alice3_1_DecryptSessionKey()
 {
     var sessionKeyAndIV = PublicAndPrivateKeys.Decrypt(EncryptedSessionKey, false);
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeFromKeyAndIV(sessionKeyAndIV);
 }
예제 #9
0
 private void InitiateCurrentSymmetricFromSecret(string textvalue)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(textvalue);
 }
예제 #10
0
파일: TheBallEKE.cs 프로젝트: kallex/Caloom
 public void InitiateCurrentSymmetricFromSecret(byte[] sharedSecret)
 {
     SharedSecretEnc = new SymmetricSupport();
     SharedSecretEnc.InitializeFromSharedSecret(sharedSecret);
 }
예제 #11
0
파일: TheBallEKE.cs 프로젝트: kallex/Caloom
 private async Task Bob2_2_GenerateRandomSessionKeyWithIVAsync()
 {
     SessionKeyEnc = new SymmetricSupport();
     SessionKeyEnc.InitializeNew();
 }