OLD | NEW |
1 /* Software-Based Trusted Platform Module (TPM) Emulator for Linux | 1 /* Software-based Trusted Platform Module (TPM) Emulator |
2 * Copyright (C) 2004 Mario Strasser <mast@gmx.net>, | 2 * Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net> |
3 * | 3 * |
4 * This module is free software; you can redistribute it and/or modify | 4 * This module is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published | 5 * it under the terms of the GNU General Public License as published |
6 * by the Free Software Foundation; either version 2 of the License, | 6 * by the Free Software Foundation; either version 2 of the License, |
7 * or (at your option) any later version. | 7 * or (at your option) any later version. |
8 * | 8 * |
9 * This module is distributed in the hope that it will be useful, | 9 * This module is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * $Id$ | 14 * $Id: rsa.h 364 2010-02-11 10:24:45Z mast $ |
15 */ | 15 */ |
16 | 16 |
17 #ifndef _RSA_H_ | 17 #ifndef _RSA_H_ |
18 #define _RSA_H_ | 18 #define _RSA_H_ |
19 | 19 |
20 #include <stddef.h> | 20 #include <stddef.h> |
21 #include <stdint.h> | 21 #include <stdint.h> |
22 #include "bn.h" | 22 #include "bn.h" |
23 | 23 |
24 typedef struct { | 24 typedef struct { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const uint8_t *data, size_t data_len, uint8_t *sig); | 115 const uint8_t *data, size_t data_len, uint8_t *sig); |
116 | 116 |
117 int tpm_rsa_decrypt(tpm_rsa_private_key_t *key, int type, | 117 int tpm_rsa_decrypt(tpm_rsa_private_key_t *key, int type, |
118 const uint8_t *in, size_t in_len, uint8_t *out, size_t *out_
len); | 118 const uint8_t *in, size_t in_len, uint8_t *out, size_t *out_
len); |
119 | 119 |
120 int tpm_rsa_encrypt(tpm_rsa_public_key_t *key, int type, | 120 int tpm_rsa_encrypt(tpm_rsa_public_key_t *key, int type, |
121 const uint8_t *in, size_t in_len, uint8_t *out, size_t *out_
len); | 121 const uint8_t *in, size_t in_len, uint8_t *out, size_t *out_
len); |
122 | 122 |
123 #endif /* _RSA_H_ */ | 123 #endif /* _RSA_H_ */ |
124 | 124 |
OLD | NEW |