|
@@ -25,6 +25,9 @@ int ccm_add_nonce(ccm_state *ccm,
|
|
unsigned long x, y, len;
|
|
unsigned long x, y, len;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
|
|
+ LTC_ARGCHK(ccm != NULL);
|
|
|
|
+ LTC_ARGCHK(nonce != NULL);
|
|
|
|
+
|
|
/* increase L to match the nonce len */
|
|
/* increase L to match the nonce len */
|
|
ccm->noncelen = (noncelen > 13) ? 13 : noncelen;
|
|
ccm->noncelen = (noncelen > 13) ? 13 : noncelen;
|
|
if ((15 - ccm->noncelen) > ccm->L) {
|
|
if ((15 - ccm->noncelen) > ccm->L) {
|