File tree Expand file tree Collapse file tree 6 files changed +31
-31
lines changed Expand file tree Collapse file tree 6 files changed +31
-31
lines changed Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $Id: internal.c,v 1.9 2001/11/20 15:50:53 momjian Exp $
29
+ * $Id: internal.c,v 1.10 2001/11/20 18:54:07 momjian Exp $
30
30
*/
31
31
32
32
@@ -77,13 +77,13 @@ static struct int_digest
77
77
78
78
/* MD5 */
79
79
80
- static uint
80
+ static unsigned
81
81
int_md5_len (PX_MD * h )
82
82
{
83
83
return MD5_DIGEST_LENGTH ;
84
84
}
85
85
86
- static uint
86
+ static unsigned
87
87
int_md5_block_len (PX_MD * h )
88
88
{
89
89
return MD5_BLOCK_SIZE ;
@@ -124,13 +124,13 @@ int_md5_free(PX_MD * h)
124
124
125
125
/* SHA1 */
126
126
127
- static uint
127
+ static unsigned
128
128
int_sha1_len (PX_MD * h )
129
129
{
130
130
return SHA1_DIGEST_LENGTH ;
131
131
}
132
132
133
- static uint
133
+ static unsigned
134
134
int_sha1_block_len (PX_MD * h )
135
135
{
136
136
return SHA1_BLOCK_SIZE ;
@@ -250,19 +250,19 @@ intctx_free(PX_Cipher * c)
250
250
#define MODE_ECB 0
251
251
#define MODE_CBC 1
252
252
253
- static uint
253
+ static unsigned
254
254
rj_block_size (PX_Cipher * c )
255
255
{
256
256
return 128 / 8 ;
257
257
}
258
258
259
- static uint
259
+ static unsigned
260
260
rj_key_size (PX_Cipher * c )
261
261
{
262
262
return 256 / 8 ;
263
263
}
264
264
265
- static uint
265
+ static unsigned
266
266
rj_iv_size (PX_Cipher * c )
267
267
{
268
268
return 128 / 8 ;
@@ -388,19 +388,19 @@ rj_load(int mode)
388
388
* blowfish
389
389
*/
390
390
391
- static uint
391
+ static unsigned
392
392
bf_block_size (PX_Cipher * c )
393
393
{
394
394
return 8 ;
395
395
}
396
396
397
- static uint
397
+ static unsigned
398
398
bf_key_size (PX_Cipher * c )
399
399
{
400
400
return BLF_MAXKEYLEN ;
401
401
}
402
402
403
- static uint
403
+ static unsigned
404
404
bf_iv_size (PX_Cipher * c )
405
405
{
406
406
return 8 ;
Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $Id: mhash.c,v 1.6 2001/11/20 15:50:53 momjian Exp $
29
+ * $Id: mhash.c,v 1.7 2001/11/20 18:54:07 momjian Exp $
30
30
*/
31
31
32
32
#include <postgres.h>
44
44
45
45
/* DIGEST */
46
46
47
- static uint
47
+ static unsigned
48
48
digest_result_size (PX_MD * h )
49
49
{
50
50
MHASH mh = (MHASH ) h -> p .ptr ;
@@ -53,7 +53,7 @@ digest_result_size(PX_MD * h)
53
53
return mhash_get_block_size (id );
54
54
}
55
55
56
- static uint
56
+ static unsigned
57
57
digest_block_size (PX_MD * h )
58
58
{
59
59
MHASH mh = (MHASH ) h -> p .ptr ;
@@ -110,23 +110,23 @@ digest_free(PX_MD * h)
110
110
111
111
/* ENCRYPT / DECRYPT */
112
112
113
- static uint
113
+ static unsigned
114
114
cipher_block_size (PX_Cipher * c )
115
115
{
116
116
MCRYPT ctx = (MCRYPT ) c -> ptr ;
117
117
118
118
return mcrypt_enc_get_block_size (ctx );
119
119
}
120
120
121
- static uint
121
+ static unsigned
122
122
cipher_key_size (PX_Cipher * c )
123
123
{
124
124
MCRYPT ctx = (MCRYPT ) c -> ptr ;
125
125
126
126
return mcrypt_enc_get_key_size (ctx );
127
127
}
128
128
129
- static uint
129
+ static unsigned
130
130
cipher_iv_size (PX_Cipher * c )
131
131
{
132
132
MCRYPT ctx = (MCRYPT ) c -> ptr ;
Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $Id: openssl.c,v 1.9 2001/11/20 15:50:53 momjian Exp $
29
+ * $Id: openssl.c,v 1.10 2001/11/20 18:54:07 momjian Exp $
30
30
*/
31
31
32
32
#include <postgres.h>
36
36
#include <openssl/evp.h>
37
37
#include <openssl/blowfish.h>
38
38
39
- static uint
39
+ static unsigned
40
40
digest_result_size (PX_MD * h )
41
41
{
42
42
return EVP_MD_CTX_size ((EVP_MD_CTX * ) h -> p .ptr );
43
43
}
44
44
45
- static uint
45
+ static unsigned
46
46
digest_block_size (PX_MD * h )
47
47
{
48
48
return EVP_MD_CTX_block_size ((EVP_MD_CTX * ) h -> p .ptr );
@@ -114,23 +114,23 @@ typedef struct
114
114
115
115
/* generic EVP */
116
116
117
- static uint
117
+ static unsigned
118
118
gen_evp_block_size (PX_Cipher * c )
119
119
{
120
120
ossldata * od = (ossldata * ) c -> ptr ;
121
121
122
122
return EVP_CIPHER_block_size (od -> evp_ciph );
123
123
}
124
124
125
- static uint
125
+ static unsigned
126
126
gen_evp_key_size (PX_Cipher * c )
127
127
{
128
128
ossldata * od = (ossldata * ) c -> ptr ;
129
129
130
130
return EVP_CIPHER_key_length (od -> evp_ciph );
131
131
}
132
132
133
- static uint
133
+ static unsigned
134
134
gen_evp_iv_size (PX_Cipher * c )
135
135
{
136
136
unsigned ivlen ;
Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $Id: px-crypt.c,v 1.5 2001/11/05 17:46:23 momjian Exp $
29
+ * $Id: px-crypt.c,v 1.6 2001/11/20 18:54:07 momjian Exp $
30
30
*/
31
31
32
32
#include <postgres.h>
@@ -158,7 +158,7 @@ static struct generator gen_list[] = {
158
158
{NULL , NULL , 0 , 0 , 0 }
159
159
};
160
160
161
- uint
161
+ unsigned
162
162
px_gen_salt (const char * salt_type , char * buf , int rounds )
163
163
{
164
164
int i ,
Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $Id: px-hmac.c,v 1.3 2001/11/20 15:50:53 momjian Exp $
29
+ * $Id: px-hmac.c,v 1.4 2001/11/20 18:54:07 momjian Exp $
30
30
*/
31
31
32
32
37
37
#define HMAC_IPAD 0x36
38
38
#define HMAC_OPAD 0x5C
39
39
40
- static uint
40
+ static unsigned
41
41
hmac_result_size (PX_HMAC * h )
42
42
{
43
43
return px_md_result_size (h -> md );
44
44
}
45
45
46
- static uint
46
+ static unsigned
47
47
hmac_block_size (PX_HMAC * h )
48
48
{
49
49
return px_md_block_size (h -> md );
Original file line number Diff line number Diff line change 26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $Id: px.c,v 1.5 2001/11/20 15:50:53 momjian Exp $
29
+ * $Id: px.c,v 1.6 2001/11/20 18:54:07 momjian Exp $
30
30
*/
31
31
32
32
#include <postgres.h>
@@ -50,13 +50,13 @@ px_resolve_alias(const PX_Alias * list, const char *name)
50
50
* combo - cipher + padding (+ checksum)
51
51
*/
52
52
53
- static uint
53
+ static unsigned
54
54
combo_encrypt_len (PX_Combo * cx , unsigned dlen )
55
55
{
56
56
return dlen + 512 ;
57
57
}
58
58
59
- static uint
59
+ static unsigned
60
60
combo_decrypt_len (PX_Combo * cx , unsigned dlen )
61
61
{
62
62
return dlen ;
You can’t perform that action at this time.
0 commit comments