summaryrefslogtreecommitdiff
path: root/include/user/paf/misc.h
blob: 8b0d8db83ab1f107801d4265397799f292db8efb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_USER_PAF_MISC_H
#define _VDSUITE_USER_PAF_MISC_H

#include <libsha1.h>

namespace paf {

	namespace misc {

		class Misc
		{
		public:

			Misc();

			~Misc();

			static SceBool IsDolce();
		};

		class Sha1
		{
		public:

			Sha1();

			~Sha1() { };

			SceInt32 BlockUpdate(const ScePVoid plain, SceUInt32 len);

			SceInt32 BlockResult(SceUChar8 *digest);

		private:

			SceSha1Context m_sha;

		};
	}
}

#endif /* _VDSUITE_USER_PAF_MISC_H */