Beispiel #1
0
 public PushSettings(CryptoSettings cryptoSettings, GcmRegistration gcmRegistration, FcmRegistration fcmRegistration, HashSet <string> persistentIds)
 {
     CryptoSettings  = cryptoSettings;
     GcmRegistration = gcmRegistration;
     FcmRegistration = fcmRegistration;
     PersistentIds   = persistentIds;
 }
        internal Decryptor(CryptoSettings cryptoSettings)
        {
            ECPoint pt = ecCurve.DecodePoint(cryptoSettings.PublicKey);

            publicKey  = new ECPublicKeyParameters(pt, ecDomainParameters);
            privateKey = new ECPrivateKeyParameters(new BigInteger(1, cryptoSettings.PrivateKey), ecDomainParameters);

            AuthSecret = cryptoSettings.AuthSecret;
            PublicKey  = publicKey.Q.GetEncoded();
        }