Merge pull request #332 from larseggert/rename-xor
Rename arguments to do_xor_iv to avoid clashing with a reserved keyword
diff --git a/include/picotls.h b/include/picotls.h
index 90a3e53..0162fe8 100644
--- a/include/picotls.h
+++ b/include/picotls.h
@@ -324,7 +324,7 @@
const struct st_ptls_aead_algorithm_t *algo;
/* field above this line must not be altered by the crypto binding */
void (*dispose_crypto)(struct st_ptls_aead_context_t *ctx);
- void (*do_xor_iv)(struct st_ptls_aead_context_t *ctx, const void * xor, size_t xorlen);
+ void (*do_xor_iv)(struct st_ptls_aead_context_t *ctx, const void * bytes, size_t len);
void (*do_encrypt_init)(struct st_ptls_aead_context_t *ctx, uint64_t seq, const void *aad, size_t aadlen);
size_t (*do_encrypt_update)(struct st_ptls_aead_context_t *ctx, void *output, const void *input, size_t inlen);
size_t (*do_encrypt_final)(struct st_ptls_aead_context_t *ctx, void *output);
@@ -1233,7 +1233,7 @@
* Permutes the static IV by applying given bytes using bit-wise XOR. This API can be used for supplying nonces longer than 64-
* bits.
*/
-static void ptls_aead_xor_iv(ptls_aead_context_t *ctx, const void *bytes, size_t len);
+static void ptls_aead_xor_iv(ptls_aead_context_t *ctx, const void *bytes, size_t len);
/**
*
*/