OCBv3: small review
* better LTC_ARGCHK() * move unnecessary functions from API to be static * limit malloc'ed data in ocb3_decrypt_verify_memory()
This commit is contained in:
@@ -302,8 +302,6 @@ int ocb3_test(void);
|
||||
|
||||
#ifdef LTC_SOURCE
|
||||
/* internal helper functions */
|
||||
int ocb3_int_aad_add_block(ocb3_state *ocb, const unsigned char *aad_block);
|
||||
void ocb3_int_calc_offset_zero(ocb3_state *ocb, const unsigned char *nonce, unsigned long noncelen, unsigned long taglen);
|
||||
int ocb3_int_ntz(unsigned long x);
|
||||
void ocb3_int_xor_blocks(unsigned char *out, const unsigned char *block_a, const unsigned char *block_b, unsigned long block_len);
|
||||
#endif /* LTC_SOURCE */
|
||||
|
||||
Reference in New Issue
Block a user