1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: crypto_CipherMode.h 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 46347 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_CRYPTO_CRYPTO_CIPHERMODE_H_ 17 #define NN_CRYPTO_CRYPTO_CIPHERMODE_H_ 18 19 #include <nn/math.h> 20 21 22 namespace nn { 23 namespace crypto { 24 25 26 27 /* Please see man pages for details 28 29 30 31 32 33 34 35 */ 36 class CipherMode 37 { 38 public: CipherMode()39 CipherMode(){} ~CipherMode()40 virtual ~CipherMode(){} 41 42 /* Please see man pages for details 43 44 45 46 */ 47 virtual void Finalize() = 0; 48 49 50 51 /* Please see man pages for details 52 53 54 55 56 57 58 */ 59 virtual size_t GetIvSize() const = 0; 60 61 /* Please see man pages for details 62 63 64 65 66 67 68 69 */ 70 virtual size_t GetUnitSize() const = 0; 71 }; 72 73 74 75 } // namespace crypto 76 } // namespace nn 77 78 79 80 #endif /* NN_CRYPTO_CRYPTO_CIPHERMODE_H_ */ 81