Path: blob/21.2-virgl/src/gallium/frontends/nine/cryptosession9.c
4561 views
/*1* Copyright 2011 Joakim Sindholt <[email protected]>2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* on the rights to use, copy, modify, merge, publish, distribute, sub7* license, and/or sell copies of the Software, and to permit persons to whom8* the Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice (including the next11* paragraph) shall be included in all copies or substantial portions of the12* Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL17* THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,18* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR19* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE20* USE OR OTHER DEALINGS IN THE SOFTWARE. */2122#include "cryptosession9.h"2324#define DBG_CHANNEL DBG_CRYPTOSESSION2526HRESULT NINE_WINAPI27NineCryptoSession9_GetCertificateSize( struct NineCryptoSession9 *This,28UINT *pCertificateSize )29{30STUB(D3DERR_INVALIDCALL);31}3233HRESULT NINE_WINAPI34NineCryptoSession9_GetCertificate( struct NineCryptoSession9 *This,35UINT CertifacteSize,36BYTE *ppCertificate )37{38STUB(D3DERR_INVALIDCALL);39}4041HRESULT NINE_WINAPI42NineCryptoSession9_NegotiateKeyExchange( struct NineCryptoSession9 *This,43UINT DataSize,44void *pData )45{46STUB(D3DERR_INVALIDCALL);47}4849HRESULT NINE_WINAPI50NineCryptoSession9_EncryptionBlt( struct NineCryptoSession9 *This,51IDirect3DSurface9 *pSrcSurface,52IDirect3DSurface9 *pDstSurface,53UINT DstSurfaceSize,54void *pIV )55{56STUB(D3DERR_INVALIDCALL);57}5859HRESULT NINE_WINAPI60NineCryptoSession9_DecryptionBlt( struct NineCryptoSession9 *This,61IDirect3DSurface9 *pSrcSurface,62IDirect3DSurface9 *pDstSurface,63UINT SrcSurfaceSize,64D3DENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo,65void *pContentKey,66void *pIV )67{68STUB(D3DERR_INVALIDCALL);69}7071HRESULT NINE_WINAPI72NineCryptoSession9_GetSurfacePitch( struct NineCryptoSession9 *This,73IDirect3DSurface9 *pSrcSurface,74UINT *pSurfacePitch )75{76STUB(D3DERR_INVALIDCALL);77}7879HRESULT NINE_WINAPI80NineCryptoSession9_StartSessionKeyRefresh( struct NineCryptoSession9 *This,81void *pRandomNumber,82UINT RandomNumberSize )83{84STUB(D3DERR_INVALIDCALL);85}8687HRESULT NINE_WINAPI88NineCryptoSession9_FinishSessionKeyRefresh( struct NineCryptoSession9 *This )89{90STUB(D3DERR_INVALIDCALL);91}9293HRESULT NINE_WINAPI94NineCryptoSession9_GetEncryptionBltKey( struct NineCryptoSession9 *This,95void *pReadbackKey,96UINT KeySize )97{98STUB(D3DERR_INVALIDCALL);99}100101IDirect3DCryptoSession9Vtbl NineCryptoSession9_vtable = {102(void *)NineUnknown_QueryInterface,103(void *)NineUnknown_AddRef,104(void *)NineUnknown_Release,105(void *)NineCryptoSession9_GetCertificateSize,106(void *)NineCryptoSession9_GetCertificate,107(void *)NineCryptoSession9_NegotiateKeyExchange,108(void *)NineCryptoSession9_EncryptionBlt,109(void *)NineCryptoSession9_DecryptionBlt,110(void *)NineCryptoSession9_GetSurfacePitch,111(void *)NineCryptoSession9_StartSessionKeyRefresh,112(void *)NineCryptoSession9_FinishSessionKeyRefresh,113(void *)NineCryptoSession9_GetEncryptionBltKey114};115116117