fixed invalid method declarations
This commit is contained in:
parent
b75d831fb7
commit
fc8ade72c5
@ -27,12 +27,12 @@ typedef struct sha512_functions_ {
|
|||||||
} sha512_functions;
|
} sha512_functions;
|
||||||
extern sha512_functions _ed_sha512_functions;
|
extern sha512_functions _ed_sha512_functions;
|
||||||
|
|
||||||
void _ed_sha512_validate() {
|
inline void _ed_sha512_validate() {
|
||||||
assert(_ed_sha512_functions._ed_sha512_init);
|
assert(_ed_sha512_functions._ed_sha512_init);
|
||||||
assert(_ed_sha512_functions._ed_sha512_final);
|
assert(_ed_sha512_functions._ed_sha512_final);
|
||||||
assert(_ed_sha512_functions._ed_sha512_update);
|
assert(_ed_sha512_functions._ed_sha512_update);
|
||||||
}
|
}
|
||||||
int _ed_sha512(const unsigned char *message, size_t message_len, unsigned char *out) {
|
inline int _ed_sha512(const unsigned char *message, size_t message_len, unsigned char *out) {
|
||||||
_ed_sha512_validate();
|
_ed_sha512_validate();
|
||||||
|
|
||||||
int result = 1;
|
int result = 1;
|
||||||
|
@ -270,7 +270,7 @@ int _ed_sha512(const unsigned char *message, size_t message_len, unsigned char *
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern sha512_functions _ed_sha512_functions = {
|
sha512_functions _ed_sha512_functions = {
|
||||||
_ed_sha512_init,
|
_ed_sha512_init,
|
||||||
_ed_sha512_final,
|
_ed_sha512_final,
|
||||||
_ed_sha512_update
|
_ed_sha512_update
|
||||||
|
@ -14,7 +14,7 @@ int _ed_sha512_update(sha512_context * md, const unsigned char *in, size_t inlen
|
|||||||
return SHA512_Update(md, in, inlen) != 1; /* Returns 0 on success */
|
return SHA512_Update(md, in, inlen) != 1; /* Returns 0 on success */
|
||||||
}
|
}
|
||||||
|
|
||||||
extern sha512_functions _ed_sha512_functions = {
|
sha512_functions _ed_sha512_functions = {
|
||||||
_ed_sha512_init,
|
_ed_sha512_init,
|
||||||
_ed_sha512_final,
|
_ed_sha512_final,
|
||||||
_ed_sha512_update
|
_ed_sha512_update
|
||||||
|
Loading…
Reference in New Issue
Block a user