xref: /netbsd-src/crypto/external/cpl/trousers/dist/src/include/tcs_key_ps.h (revision 2d5f7628c5531eb583b9313ac2fd1cf8582b4479)
1 
2 /*
3  * Licensed Materials - Property of IBM
4  *
5  * trousers - An open source TCG Software Stack
6  *
7  * (C) Copyright International Business Machines Corp. 2004-2006
8  *
9  */
10 
11 #ifndef _TCS_KEY_PS_H_
12 #define _TCS_KEY_PS_H_
13 
14 TSS_RESULT ps_init_disk_cache();
15 void       ps_close_disk_cache();
16 TSS_BOOL   ps_is_key_registered(TCPA_STORE_PUBKEY *);
17 TSS_RESULT getParentUUIDByUUID(TSS_UUID *, TSS_UUID *);
18 TSS_RESULT isUUIDRegistered(TSS_UUID *, TSS_BOOL *);
19 void       disk_cache_shift(struct key_disk_cache *);
20 TSS_RESULT ps_remove_key(TSS_UUID *);
21 TSS_RESULT clean_disk_cache(int);
22 TSS_RESULT ps_get_key_by_uuid(TSS_UUID *, BYTE *, UINT16 *);
23 TSS_RESULT ps_get_key_by_cache_entry(struct key_disk_cache *, BYTE *, UINT16 *);
24 TSS_RESULT ps_is_pub_registered(TCPA_STORE_PUBKEY *);
25 TSS_RESULT ps_get_uuid_by_pub(TCPA_STORE_PUBKEY *, TSS_UUID **);
26 TSS_RESULT ps_get_key_by_pub(TCPA_STORE_PUBKEY *, UINT32 *, BYTE **);
27 TSS_RESULT ps_write_key(TSS_UUID *, TSS_UUID *, BYTE *, UINT32, BYTE *, UINT32);
28 
29 #endif
30