diff options
author | Andy Polyakov <appro@openssl.org> | 2016-04-27 15:42:36 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-04-29 11:52:06 +0200 |
commit | fa79c543d28c3543b3fcaa8adf5fe3d43cdba1c8 (patch) | |
tree | e86e42eeddac1e87a54f149025cc64162939b678 /crypto | |
parent | 10a57adc606b86949007c076336e74970c2f336f (diff) |
crypto/ppccap.c: permit build with no-chacha and no-poly1305.
RT#4508
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ppccap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ppccap.c b/crypto/ppccap.c index 2c98daf5b4..c825568e02 100644 --- a/crypto/ppccap.c +++ b/crypto/ppccap.c @@ -79,6 +79,7 @@ void sha512_block_data_order(void *ctx, const void *inp, size_t len) sha512_block_ppc(ctx, inp, len); } +#ifndef OPENSSL_NO_CHACHA void ChaCha20_ctr32_int(unsigned char *out, const unsigned char *inp, size_t len, const unsigned int key[8], const unsigned int counter[4]); @@ -93,7 +94,9 @@ void ChaCha20_ctr32(unsigned char *out, const unsigned char *inp, ? ChaCha20_ctr32_vmx(out, inp, len, key, counter) : ChaCha20_ctr32_int(out, inp, len, key, counter); } +#endif +#ifndef OPENSSL_NO_POLY1305 void poly1305_init_int(void *ctx, const unsigned char key[16]); void poly1305_blocks(void *ctx, const unsigned char *inp, size_t len, unsigned int padbit); @@ -117,6 +120,7 @@ int poly1305_init(void *ctx, const unsigned char key[16], void *func[2]) } return 1; } +#endif static sigjmp_buf ill_jmp; static void ill_handler(int sig) |