Skip to content

Conversation

@sjaeckel
Copy link
Member

@sjaeckel sjaeckel commented Jun 2, 2018

As said in the commit-message:

probably we want to add more options in the future

I could think of support for some options of `xxd` resp. `hexdump`

e.g. the little-endian encoding of 2**n byte values

@sjaeckel sjaeckel force-pushed the improve/base16_api branch from b38d800 to a2fa76f Compare June 3, 2018 11:07
doc/crypt.tex Outdated
int base16_encode(const unsigned char *in, unsigned long inlen,
char *out, unsigned long *outlen,
int caps);
unsigned long options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer unsigned int which is 32bit pretty everywhere. With unsigned long there might be a trouble that it is only 32bit on Windows/x86 but 64bit on many other platforms.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sjaeckel sjaeckel force-pushed the improve/base16_api branch 2 times, most recently from 844d266 to 93b2983 Compare June 3, 2018 17:22
sjaeckel added 2 commits June 3, 2018 20:50
probably we want to add more options in the future

I could think of support for some options of `xxd` resp. `hexdump`
@sjaeckel sjaeckel force-pushed the improve/base16_api branch from 93b2983 to 06c0606 Compare June 3, 2018 18:50
@karel-m karel-m merged commit 1035567 into develop Jun 4, 2018
@karel-m karel-m deleted the improve/base16_api branch June 4, 2018 06:55
@karel-m
Copy link
Member

karel-m commented Jun 4, 2018

I have merged this one so that I can continue with merging #400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants