xref: /aosp_15_r20/external/mesa3d/src/gallium/frontends/nine/cryptosession9.c (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright 2011 Joakim Sindholt <[email protected]>
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #include "cryptosession9.h"
7 
8 #define DBG_CHANNEL DBG_CRYPTOSESSION
9 
10 HRESULT NINE_WINAPI
NineCryptoSession9_GetCertificateSize(struct NineCryptoSession9 * This,UINT * pCertificateSize)11 NineCryptoSession9_GetCertificateSize( struct NineCryptoSession9 *This,
12                                        UINT *pCertificateSize )
13 {
14     STUB(D3DERR_INVALIDCALL);
15 }
16 
17 HRESULT NINE_WINAPI
NineCryptoSession9_GetCertificate(struct NineCryptoSession9 * This,UINT CertifacteSize,BYTE * ppCertificate)18 NineCryptoSession9_GetCertificate( struct NineCryptoSession9 *This,
19                                    UINT CertifacteSize,
20                                    BYTE *ppCertificate )
21 {
22     STUB(D3DERR_INVALIDCALL);
23 }
24 
25 HRESULT NINE_WINAPI
NineCryptoSession9_NegotiateKeyExchange(struct NineCryptoSession9 * This,UINT DataSize,void * pData)26 NineCryptoSession9_NegotiateKeyExchange( struct NineCryptoSession9 *This,
27                                          UINT DataSize,
28                                          void *pData )
29 {
30     STUB(D3DERR_INVALIDCALL);
31 }
32 
33 HRESULT NINE_WINAPI
NineCryptoSession9_EncryptionBlt(struct NineCryptoSession9 * This,IDirect3DSurface9 * pSrcSurface,IDirect3DSurface9 * pDstSurface,UINT DstSurfaceSize,void * pIV)34 NineCryptoSession9_EncryptionBlt( struct NineCryptoSession9 *This,
35                                   IDirect3DSurface9 *pSrcSurface,
36                                   IDirect3DSurface9 *pDstSurface,
37                                   UINT DstSurfaceSize,
38                                   void *pIV )
39 {
40     STUB(D3DERR_INVALIDCALL);
41 }
42 
43 HRESULT NINE_WINAPI
NineCryptoSession9_DecryptionBlt(struct NineCryptoSession9 * This,IDirect3DSurface9 * pSrcSurface,IDirect3DSurface9 * pDstSurface,UINT SrcSurfaceSize,D3DENCRYPTED_BLOCK_INFO * pEncryptedBlockInfo,void * pContentKey,void * pIV)44 NineCryptoSession9_DecryptionBlt( struct NineCryptoSession9 *This,
45                                   IDirect3DSurface9 *pSrcSurface,
46                                   IDirect3DSurface9 *pDstSurface,
47                                   UINT SrcSurfaceSize,
48                                   D3DENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo,
49                                   void *pContentKey,
50                                   void *pIV )
51 {
52     STUB(D3DERR_INVALIDCALL);
53 }
54 
55 HRESULT NINE_WINAPI
NineCryptoSession9_GetSurfacePitch(struct NineCryptoSession9 * This,IDirect3DSurface9 * pSrcSurface,UINT * pSurfacePitch)56 NineCryptoSession9_GetSurfacePitch( struct NineCryptoSession9 *This,
57                                     IDirect3DSurface9 *pSrcSurface,
58                                     UINT *pSurfacePitch )
59 {
60     STUB(D3DERR_INVALIDCALL);
61 }
62 
63 HRESULT NINE_WINAPI
NineCryptoSession9_StartSessionKeyRefresh(struct NineCryptoSession9 * This,void * pRandomNumber,UINT RandomNumberSize)64 NineCryptoSession9_StartSessionKeyRefresh( struct NineCryptoSession9 *This,
65                                            void *pRandomNumber,
66                                            UINT RandomNumberSize )
67 {
68     STUB(D3DERR_INVALIDCALL);
69 }
70 
71 HRESULT NINE_WINAPI
NineCryptoSession9_FinishSessionKeyRefresh(struct NineCryptoSession9 * This)72 NineCryptoSession9_FinishSessionKeyRefresh( struct NineCryptoSession9 *This )
73 {
74     STUB(D3DERR_INVALIDCALL);
75 }
76 
77 HRESULT NINE_WINAPI
NineCryptoSession9_GetEncryptionBltKey(struct NineCryptoSession9 * This,void * pReadbackKey,UINT KeySize)78 NineCryptoSession9_GetEncryptionBltKey( struct NineCryptoSession9 *This,
79                                         void *pReadbackKey,
80                                         UINT KeySize )
81 {
82     STUB(D3DERR_INVALIDCALL);
83 }
84 
85 IDirect3DCryptoSession9Vtbl NineCryptoSession9_vtable = {
86     (void *)NineUnknown_QueryInterface,
87     (void *)NineUnknown_AddRef,
88     (void *)NineUnknown_Release,
89     (void *)NineCryptoSession9_GetCertificateSize,
90     (void *)NineCryptoSession9_GetCertificate,
91     (void *)NineCryptoSession9_NegotiateKeyExchange,
92     (void *)NineCryptoSession9_EncryptionBlt,
93     (void *)NineCryptoSession9_DecryptionBlt,
94     (void *)NineCryptoSession9_GetSurfacePitch,
95     (void *)NineCryptoSession9_StartSessionKeyRefresh,
96     (void *)NineCryptoSession9_FinishSessionKeyRefresh,
97     (void *)NineCryptoSession9_GetEncryptionBltKey
98 };
99