| 1 | 
 /** | 
 
 
 
 
 
 | 2 | 
  * This file has no copyright assigned and is placed in the Public Domain. | 
 
 
 
 
 
 | 3 | 
  * This file is part of the mingw-w64 runtime package. | 
 
 
 
 
 
 | 4 | 
  * No warranty is given; refer to the file DISCLAIMER.PD within this package. | 
 
 
 
 
 
 | 5 | 
  */ | 
 
 
 
 
 
 | 6 | 
  | 
 
 
 
 
 
 | 7 | 
 #ifdef __WIDL__ | 
 
 
 
 
 
 | 8 | 
 #pragma winrt ns_prefix | 
 
 
 
 
 
 | 9 | 
 #endif | 
 
 
 
 
 
 | 10 | 
  | 
 
 
 
 
 
 | 11 | 
 import "inspectable.idl"; | 
 
 
 
 
 
 | 12 | 
 import "windows.storage.streams.idl"; | 
 
 
 
 
 
 | 13 | 
  | 
 
 
 
 
 
 | 14 | 
 namespace Windows { | 
 
 
 
 
 
 | 15 | 
   namespace Storage { | 
 
 
 
 
 
 | 16 | 
     namespace Streams { | 
 
 
 
 
 
 | 17 | 
       interface IBuffer; | 
 
 
 
 
 
 | 18 | 
     } | 
 
 
 
 
 
 | 19 | 
   } | 
 
 
 
 
 
 | 20 | 
 } | 
 
 
 
 
 
 | 21 | 
  | 
 
 
 
 
 
 | 22 | 
 namespace Windows { | 
 
 
 
 
 
 | 23 | 
   namespace Security { | 
 
 
 
 
 
 | 24 | 
     namespace Cryptography { | 
 
 
 
 
 
 | 25 | 
       interface ICryptographicBufferStatics; | 
 
 
 
 
 
 | 26 | 
       typedef enum BinaryStringEncoding BinaryStringEncoding; | 
 
 
 
 
 
 | 27 | 
     } | 
 
 
 
 
 
 | 28 | 
   } | 
 
 
 
 
 
 | 29 | 
 } | 
 
 
 
 
 
 | 30 | 
  | 
 
 
 
 
 
 | 31 | 
 namespace Windows { | 
 
 
 
 
 
 | 32 | 
   namespace Security { | 
 
 
 
 
 
 | 33 | 
     namespace Cryptography { | 
 
 
 
 
 
 | 34 | 
       enum BinaryStringEncoding { | 
 
 
 
 
 
 | 35 | 
         Utf8, | 
 
 
 
 
 
 | 36 | 
         Utf16LE, | 
 
 
 
 
 
 | 37 | 
         Utf16BE | 
 
 
 
 
 
 | 38 | 
       }; | 
 
 
 
 
 
 | 39 | 
  | 
 
 
 
 
 
 | 40 | 
       [uuid(320B7E22-3CB0-4CDF-8663-1D28910065EB)] | 
 
 
 
 
 
 | 41 | 
       interface ICryptographicBufferStatics : IInspectable { | 
 
 
 
 
 
 | 42 | 
         HRESULT Compare(Windows.Storage.Streams.IBuffer* object1, Windows.Storage.Streams.IBuffer* object2, boolean* isEqual); | 
 
 
 
 
 
 | 43 | 
         HRESULT GenerateRandom(UINT32 length, Windows.Storage.Streams.IBuffer** buffer); | 
 
 
 
 
 
 | 44 | 
         HRESULT GenerateRandomNumber(UINT32* value); | 
 
 
 
 
 
 | 45 | 
         HRESULT CreateFromByteArray(UINT32 __valueSize, BYTE* value,Windows.Storage.Streams.IBuffer** buffer); | 
 
 
 
 
 
 | 46 | 
         HRESULT CopyToByteArray(Windows.Storage.Streams.IBuffer* buffer, UINT32* __valueSize, BYTE** value); | 
 
 
 
 
 
 | 47 | 
         HRESULT DecodeFromHexString(HSTRING value, Windows.Storage.Streams.IBuffer** buffer); | 
 
 
 
 
 
 | 48 | 
         HRESULT EncodeToHexString(Windows.Storage.Streams.IBuffer* buffer, HSTRING* value); | 
 
 
 
 
 
 | 49 | 
         HRESULT DecodeFromBase64String(HSTRING value, Windows.Storage.Streams.IBuffer** buffer); | 
 
 
 
 
 
 | 50 | 
         HRESULT EncodeToBase64String(Windows.Storage.Streams.IBuffer* buffer, HSTRING* value); | 
 
 
 
 
 
 | 51 | 
         HRESULT ConvertStringToBinary(HSTRING value, BinaryStringEncoding encoding, Windows.Storage.Streams.IBuffer** buffer); | 
 
 
 
 
 
 | 52 | 
         HRESULT ConvertBinaryToString(BinaryStringEncoding encoding, Windows.Storage.Streams.IBuffer* buffer, HSTRING* value); | 
 
 
 
 
 
 | 53 | 
       } | 
 
 
 
 
 
 | 54 | 
     } | 
 
 
 
 
 
 | 55 | 
   } | 
 
 
 
 
 
 | 56 | 
 } |