-
Notifications
You must be signed in to change notification settings - Fork 484
Add a new header file for private functions #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
65cc288 to
4091768
Compare
src/headers/tomcrypt_private.h
Outdated
|
|
||
| /* tomcrypt_math.h */ | ||
|
|
||
| #if !defined(DESC_DEF_ONLY) && defined(LTC_SOURCE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop && defined(LTC_SOURCE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/headers/tomcrypt_private.h
Outdated
| */ | ||
|
|
||
| typedef struct Oid { | ||
| const unsigned long *OID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsigned long OID[16];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, that one slipped in from my pkcs8 refactor... :)
makefile.unix
Outdated
| -@rm -f test.exe constants.exe sizes.exe tv_gen.exe hashsum.exe ltcrypt.exe small.exe timing.exe | ||
|
|
||
| #Install the library + headers | ||
| install: $(LIBMAIN_S) $(HEADERS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe install: $(LIBMAIN_S) $(HEADERS_PUB)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it entirely, as it's already an indirect dependency of LIBMAIN_S
|
consider also changing - install -p -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
+ install -p -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH) |
|
One more |
4091768 to
7e65c6b
Compare
regarding the deprecation I think we shouldn't do that in 1.18.2 but only in develop (as already done for the math initializers). To prevent warnings in our internal code I'd leave the |
|
I'm probably the only one, but I use |
|
Oh okay, then we'll leave them in the public API! |
7e65c6b to
e1caead
Compare
e1caead to
c725be2
Compare
karel-m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now looks good
This adds
tomcrypt_private.hwith all the declarations that were protected byLTC_SOURCEbefore.Additionally this makes
blake2[sb]_init()private.I'd accompany that change by marking both functions as deprecated in the upcoming 1.18.2 release.
[Edit]: I just realized we can't simply deprecate them w/o having our source complain as well on compilation... I'll have to think about it a bit more...