| 49 | typedef TempBuffer<BYTE, 384> EmeBuffer_t; |
| 50 | |
| 51 | class EmeCryptContext { |
| 52 | public: |
| 53 | |
| 54 | private: |
| 55 | |
| 56 | LockZeroBuffer<AES_KEY> *m_pKeyBuf; |
| 57 | LockZeroBuffer<BYTE> *m_pLTableBuf; |
| 58 | public: |
| 59 | AES m_aes_ctx; |
| 60 | LPBYTE *m_LTable; |
| 61 | |
| 62 | EmeCryptContext(); |
| 63 | |
| 64 | // disallow copying |
| 65 | EmeCryptContext(EmeCryptContext const&) = delete; |
| 66 | void operator=(EmeCryptContext const&) = delete; |
| 67 | |
| 68 | virtual ~EmeCryptContext(); |
| 69 | |
| 70 | void tabulateL(int m, CryptConfig *pConfig); |
| 71 | |
| 72 | |
| 73 | bool init(const BYTE *key, bool hkdf, CryptConfig *pConfig); |
| 74 | |
| 75 | }; |
| 76 | |
| 77 | |
| 78 | bool EmeTransform(const EmeCryptContext *eme_context, |
nothing calls this directly
no outgoing calls
no test coverage detected