crypton 0.32 → 0.33
raw patch · 4 files changed
+11/−6 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- cbits/aes/x86ni.c +3/−3
- cbits/blake2/sse/blake2s.c +2/−2
- crypton.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+## 0.33++* Add "crypton_" prefix to the final C symbols.+ [#9](https://github.com/kazu-yamamoto/crypton/pull/9)+ ## 0.32 * All C symbols now have the "crypton_" prefix.
cbits/aes/x86ni.c view
@@ -174,8 +174,8 @@ #ifdef WITH_PCLMUL -__m128i (*gfmul_branch_ptr)(__m128i a, const table_4bit t) = gfmul_generic;-#define gfmul(a,t) ((*gfmul_branch_ptr)(a,t))+__m128i (*crypton_gfmul_branch_ptr)(__m128i a, const table_4bit t) = gfmul_generic;+#define gfmul(a,t) ((*crypton_gfmul_branch_ptr)(a,t)) /* See Intel carry-less-multiplication-instruction-in-gcm-mode-paper.pdf *@@ -257,7 +257,7 @@ void crypton_aesni_init_pclmul(void) {- gfmul_branch_ptr = gfmul_pclmuldq;+ crypton_gfmul_branch_ptr = gfmul_pclmuldq; } #else
cbits/blake2/sse/blake2s.c view
@@ -258,7 +258,7 @@ } /* inlen, at least, should be uint64_t. Others can be size_t. */-int blake2s( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen )+int crypton_blake2s( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen ) { blake2s_state S[1]; @@ -290,7 +290,7 @@ #if defined(SUPERCOP) int crypto_hash( unsigned char *out, unsigned char *in, unsigned long long inlen ) {- return blake2s( out, BLAKE2S_OUTBYTES, in, inlen, NULL, 0 );+ return crypton_blake2s( out, BLAKE2S_OUTBYTES, in, inlen, NULL, 0 ); } #endif
crypton.cabal view
@@ -1,5 +1,5 @@ Name: crypton-version: 0.32+version: 0.33 Synopsis: Cryptography Primitives sink Description: A repository of cryptographic primitives.