LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStreamCipher.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/security/manager/ssl/public/nsIStreamCipher.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIStreamCipher_h__
       6                 : #define __gen_nsIStreamCipher_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIKeyModule_h__
      14                 : #include "nsIKeyModule.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : class nsIInputStream; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsIStreamCipher */
      25                 : #define NS_ISTREAMCIPHER_IID_STR "1d507cd6-1630-4710-af1b-4012dbcc514c"
      26                 : 
      27                 : #define NS_ISTREAMCIPHER_IID \
      28                 :   {0x1d507cd6, 0x1630, 0x4710, \
      29                 :     { 0xaf, 0x1b, 0x40, 0x12, 0xdb, 0xcc, 0x51, 0x4c }}
      30                 : 
      31               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStreamCipher : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTREAMCIPHER_IID)
      35                 : 
      36                 :   /* void init (in nsIKeyObject aKey); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIKeyObject *aKey) = 0;
      38                 : 
      39                 :   /* void initWithIV (in nsIKeyObject aKey, [array, size_is (aIVLen), const] in octet aIV, in unsigned long aIVLen); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD InitWithIV(nsIKeyObject *aKey, const PRUint8 *aIV, PRUint32 aIVLen) = 0;
      41                 : 
      42                 :   /* void update ([array, size_is (aLen), const] in octet aData, in unsigned long aLen); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD Update(const PRUint8 *aData, PRUint32 aLen) = 0;
      44                 : 
      45                 :   /* void updateFromStream (in nsIInputStream aStream, in long aLen); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromStream(nsIInputStream *aStream, PRInt32 aLen) = 0;
      47                 : 
      48                 :   /* void updateFromString (in ACString aInput); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromString(const nsACString & aInput) = 0;
      50                 : 
      51                 :   /* ACString finish (in boolean aASCII); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD Finish(bool aASCII, nsACString & _retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* void discard (in long aLen); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD Discard(PRInt32 aLen) = 0;
      56                 : 
      57                 : };
      58                 : 
      59                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStreamCipher, NS_ISTREAMCIPHER_IID)
      60                 : 
      61                 : /* Use this macro when declaring classes that implement this interface. */
      62                 : #define NS_DECL_NSISTREAMCIPHER \
      63                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIKeyObject *aKey); \
      64                 :   NS_SCRIPTABLE NS_IMETHOD InitWithIV(nsIKeyObject *aKey, const PRUint8 *aIV, PRUint32 aIVLen); \
      65                 :   NS_SCRIPTABLE NS_IMETHOD Update(const PRUint8 *aData, PRUint32 aLen); \
      66                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromStream(nsIInputStream *aStream, PRInt32 aLen); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromString(const nsACString & aInput); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD Finish(bool aASCII, nsACString & _retval NS_OUTPARAM); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD Discard(PRInt32 aLen); 
      70                 : 
      71                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      72                 : #define NS_FORWARD_NSISTREAMCIPHER(_to) \
      73                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIKeyObject *aKey) { return _to Init(aKey); } \
      74                 :   NS_SCRIPTABLE NS_IMETHOD InitWithIV(nsIKeyObject *aKey, const PRUint8 *aIV, PRUint32 aIVLen) { return _to InitWithIV(aKey, aIV, aIVLen); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD Update(const PRUint8 *aData, PRUint32 aLen) { return _to Update(aData, aLen); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromStream(nsIInputStream *aStream, PRInt32 aLen) { return _to UpdateFromStream(aStream, aLen); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromString(const nsACString & aInput) { return _to UpdateFromString(aInput); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD Finish(bool aASCII, nsACString & _retval NS_OUTPARAM) { return _to Finish(aASCII, _retval); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD Discard(PRInt32 aLen) { return _to Discard(aLen); } 
      80                 : 
      81                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      82                 : #define NS_FORWARD_SAFE_NSISTREAMCIPHER(_to) \
      83                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIKeyObject *aKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aKey); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD InitWithIV(nsIKeyObject *aKey, const PRUint8 *aIV, PRUint32 aIVLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithIV(aKey, aIV, aIVLen); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD Update(const PRUint8 *aData, PRUint32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aData, aLen); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromStream(nsIInputStream *aStream, PRInt32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateFromStream(aStream, aLen); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD UpdateFromString(const nsACString & aInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateFromString(aInput); } \
      88                 :   NS_SCRIPTABLE NS_IMETHOD Finish(bool aASCII, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(aASCII, _retval); } \
      89                 :   NS_SCRIPTABLE NS_IMETHOD Discard(PRInt32 aLen) { return !_to ? NS_ERROR_NULL_POINTER : _to->Discard(aLen); } 
      90                 : 
      91                 : #if 0
      92                 : /* Use the code below as a template for the implementation class for this interface. */
      93                 : 
      94                 : /* Header file */
      95                 : class nsStreamCipher : public nsIStreamCipher
      96                 : {
      97                 : public:
      98                 :   NS_DECL_ISUPPORTS
      99                 :   NS_DECL_NSISTREAMCIPHER
     100                 : 
     101                 :   nsStreamCipher();
     102                 : 
     103                 : private:
     104                 :   ~nsStreamCipher();
     105                 : 
     106                 : protected:
     107                 :   /* additional members */
     108                 : };
     109                 : 
     110                 : /* Implementation file */
     111                 : NS_IMPL_ISUPPORTS1(nsStreamCipher, nsIStreamCipher)
     112                 : 
     113                 : nsStreamCipher::nsStreamCipher()
     114                 : {
     115                 :   /* member initializers and constructor code */
     116                 : }
     117                 : 
     118                 : nsStreamCipher::~nsStreamCipher()
     119                 : {
     120                 :   /* destructor code */
     121                 : }
     122                 : 
     123                 : /* void init (in nsIKeyObject aKey); */
     124                 : NS_IMETHODIMP nsStreamCipher::Init(nsIKeyObject *aKey)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* void initWithIV (in nsIKeyObject aKey, [array, size_is (aIVLen), const] in octet aIV, in unsigned long aIVLen); */
     130                 : NS_IMETHODIMP nsStreamCipher::InitWithIV(nsIKeyObject *aKey, const PRUint8 *aIV, PRUint32 aIVLen)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* void update ([array, size_is (aLen), const] in octet aData, in unsigned long aLen); */
     136                 : NS_IMETHODIMP nsStreamCipher::Update(const PRUint8 *aData, PRUint32 aLen)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* void updateFromStream (in nsIInputStream aStream, in long aLen); */
     142                 : NS_IMETHODIMP nsStreamCipher::UpdateFromStream(nsIInputStream *aStream, PRInt32 aLen)
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* void updateFromString (in ACString aInput); */
     148                 : NS_IMETHODIMP nsStreamCipher::UpdateFromString(const nsACString & aInput)
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* ACString finish (in boolean aASCII); */
     154                 : NS_IMETHODIMP nsStreamCipher::Finish(bool aASCII, nsACString & _retval NS_OUTPARAM)
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* void discard (in long aLen); */
     160                 : NS_IMETHODIMP nsStreamCipher::Discard(PRInt32 aLen)
     161                 : {
     162                 :     return NS_ERROR_NOT_IMPLEMENTED;
     163                 : }
     164                 : 
     165                 : /* End of implementation class template. */
     166                 : #endif
     167                 : 
     168                 : 
     169                 : #endif /* __gen_nsIStreamCipher_h__ */

Generated by: LCOV version 1.7