Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1540205 - Do not define ChaCha20Xor if NSS_DISABLE_CHACHAPOLY is …
…defined. r=jcj

Differential Revision: https://phabricator.services.mozilla.com/D25439

--HG--
extra : moz-landing-system : lando
  • Loading branch information
eoger committed Apr 1, 2019
1 parent f7c881f commit eec0db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/freebl/chacha20poly1305.c
Expand Up @@ -157,6 +157,7 @@ ChaCha20Poly1305_DestroyContext(ChaCha20Poly1305Context *ctx, PRBool freeit)
#endif
}

#ifndef NSS_DISABLE_CHACHAPOLY
void
ChaCha20Xor(uint8_t *output, uint8_t *block, uint32_t len, uint8_t *k,
uint8_t *nonce, uint32_t ctr)
Expand All @@ -167,6 +168,7 @@ ChaCha20Xor(uint8_t *output, uint8_t *block, uint32_t len, uint8_t *k,
Hacl_Chacha20_chacha20(output, block, len, k, nonce, ctr);
}
}
#endif /* NSS_DISABLE_CHACHAPOLY */

SECStatus
ChaCha20Poly1305_Seal(const ChaCha20Poly1305Context *ctx, unsigned char *output,
Expand Down

0 comments on commit eec0db8

Please sign in to comment.