services/crypto/component/nsSyncJPAKE.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/services/crypto/component/nsSyncJPAKE.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +#ifndef nsSyncJPAKE_h__
     1.8 +#define nsSyncJPAKE_h__
     1.9 +
    1.10 +#include "nsISyncJPAKE.h"
    1.11 +
    1.12 +#define NS_SYNCJPAKE_CONTRACTID \
    1.13 +  "@mozilla.org/services-crypto/sync-jpake;1"
    1.14 +
    1.15 +#define NS_SYNCJPAKE_CID \
    1.16 +  {0x0b9721c0, 0x1805, 0x47c3, {0x86, 0xce, 0x68, 0x13, 0x79, 0x5a, 0x78, 0x3f}}
    1.17 +
    1.18 +typedef struct PK11SymKeyStr PK11SymKey;
    1.19 +
    1.20 +class nsSyncJPAKE : public nsISyncJPAKE
    1.21 +{
    1.22 +public:
    1.23 +  NS_DECL_ISUPPORTS
    1.24 +  NS_DECL_NSISYNCJPAKE
    1.25 +  nsSyncJPAKE();
    1.26 +  virtual ~nsSyncJPAKE();
    1.27 +private:
    1.28 +  enum { JPAKENotStarted, JPAKEBeforeRound2, JPAKEAfterRound2 } round;
    1.29 +  PK11SymKey * key;
    1.30 +};
    1.31 +
    1.32 +NS_IMPL_ISUPPORTS(nsSyncJPAKE, nsISyncJPAKE)
    1.33 +
    1.34 +#endif // nsSyncJPAKE_h__

mercurial