blob: 6e73b76c4899c45b5f134c741b6ddc330095b658 (
plain)
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
|
/** BEGIN COPYRIGHT BLOCK
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
* END COPYRIGHT BLOCK **/
/* Private tructures and #defines used in the attribute encryption code. */
#ifndef _ATTRCRYPT_H_
#define _ATTRCRYPT_H_
/* structure which holds our stuff in the attrinfo objects */
struct attrcrypt_private
{
int attrcrypt_cipher;
};
typedef struct _attrcrypt_cipher_entry
{
int cipher_number;
char *cipher_display_name;
CK_MECHANISM_TYPE cipher_mechanism;
CK_MECHANISM_TYPE wrap_mechanism;
CK_MECHANISM_TYPE key_gen_mechanism;
int key_size;
int iv_length;
} attrcrypt_cipher_entry;
extern attrcrypt_cipher_entry attrcrypt_cipher_list[];
/* The ciphers we support (used in attrcrypt_cipher above) */
#define ATTRCRYPT_CIPHER_AES 1
#define ATTRCRYPT_CIPHER_DES3 2
#endif /* _ATTRCRYPT_H_ */
|