1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     crypto_PublicKeyContextBase.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_PUBLICKEYCONTEXTBASE_H_
17 #define NN_CRYPTO_CRYPTO_PUBLICKEYCONTEXTBASE_H_
18 
19 #include <nn/types.h>
20 #include <nn/config.h>
21 #include <nn/Result.h>
22 
23 #ifdef __cplusplus
24 
25 namespace nn{ namespace crypto{
26 
27 /*
28 
29 
30 
31 
32 */
33 class PublicKeyContextBase
34 {
35 public:
36 
37     /*
38 
39 
40 
41     */
42     virtual nn::Result Decrypt(void* pDest, const void* pSrc, size_t size) = 0;
43 
44     /*
45 
46 
47 
48     */
49     virtual nn::Result Encrypt(void* pDest, const void* pSrc, size_t size) = 0;
50 
51 protected:
52 
53     // Prohibit individual instantiation
PublicKeyContextBase()54     PublicKeyContextBase() {}
~PublicKeyContextBase()55     virtual ~PublicKeyContextBase() {}
56 
57 };
58 
59 
60 }} // namespace nn::crypto
61 
62 #endif // __cplusplus
63 
64 
65 #endif /* NN_CRYPTO_CRYPTO_PUBLICKEYCONTEXTBASE_H_ */
66