projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates. New data types.
[silc.git]
/
lib
/
silccrypt
/
silchmac.h
diff --git
a/lib/silccrypt/silchmac.h
b/lib/silccrypt/silchmac.h
index 19f8505277bdbe6aace6868753ef038265479118..7e70974cfd94d8e022aff672f29d3dc3a210e4ec 100644
(file)
--- a/
lib/silccrypt/silchmac.h
+++ b/
lib/silccrypt/silchmac.h
@@
-36,7
+36,7
@@
Name of the HMAC.
Name of the HMAC.
- u
nsigned int
len
+ u
int32
len
Length of the MAC the HMAC is to produce (bytes).
Length of the MAC the HMAC is to produce (bytes).
@@
-53,7
+53,7
@@
must not be freed.
unsigned char *key
must not be freed.
unsigned char *key
- u
nsigned int
len
+ u
int32
len
The key and its length used to make the HMAC. This is set
with silc_hmac_set_key function.
The key and its length used to make the HMAC. This is set
with silc_hmac_set_key function.
@@
-63,7
+63,7
@@
typedef struct SilcHmacStruct *SilcHmac;
typedef struct {
char *name;
typedef struct {
char *name;
- u
nsigned int
len;
+ u
int32
len;
} SilcHmacObject;
struct SilcHmacStruct {
} SilcHmacObject;
struct SilcHmacStruct {
@@
-71,7
+71,7
@@
struct SilcHmacStruct {
SilcHash hash;
char allocated_hash;
unsigned char *key;
SilcHash hash;
char allocated_hash;
unsigned char *key;
- u
nsigned int
key_len;
+ u
int32
key_len;
};
/* Prototypes */
};
/* Prototypes */
@@
-81,21
+81,21
@@
int silc_hmac_alloc(char *name, SilcHash hash, SilcHmac *new_hmac);
void silc_hmac_free(SilcHmac hmac);
int silc_hmac_is_supported(const char *name);
char *silc_hmac_get_supported();
void silc_hmac_free(SilcHmac hmac);
int silc_hmac_is_supported(const char *name);
char *silc_hmac_get_supported();
-u
nsigned int
silc_hmac_len(SilcHmac hmac);
+u
int32
silc_hmac_len(SilcHmac hmac);
void silc_hmac_set_key(SilcHmac hmac, const unsigned char *key,
void silc_hmac_set_key(SilcHmac hmac, const unsigned char *key,
- u
nsigned int
key_len);
+ u
int32
key_len);
void silc_hmac_make(SilcHmac hmac, unsigned char *data,
void silc_hmac_make(SilcHmac hmac, unsigned char *data,
- u
nsigned int
data_len, unsigned char *return_hash,
- u
nsigned int
*return_len);
+ u
int32
data_len, unsigned char *return_hash,
+ u
int32
*return_len);
void silc_hmac_make_with_key(SilcHmac hmac, unsigned char *data,
void silc_hmac_make_with_key(SilcHmac hmac, unsigned char *data,
- u
nsigned int
data_len,
- unsigned char *key, u
nsigned int
key_len,
+ u
int32
data_len,
+ unsigned char *key, u
int32
key_len,
unsigned char *return_hash,
unsigned char *return_hash,
- u
nsigned int
*return_len);
+ u
int32
*return_len);
void silc_hmac_make_truncated(SilcHmac hmac,
unsigned char *data,
void silc_hmac_make_truncated(SilcHmac hmac,
unsigned char *data,
- u
nsigned int
data_len,
- u
nsigned int
truncated_len,
+ u
int32
data_len,
+ u
int32
truncated_len,
unsigned char *return_hash);
#endif
unsigned char *return_hash);
#endif