aboutsummaryrefslogtreecommitdiff
path: root/crypto/chacha
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-11-10 16:21:54 +0100
committerRichard Levitte <levitte@openssl.org>2016-11-10 16:24:02 +0100
commit10b0b5ecd93097179a2b13a7d34e0ab580d23fa2 (patch)
tree4b974e700ad368575e55b8abe3ce8d8b97c11845 /crypto/chacha
parentde4d764e3271ce09d28c0d6d7bce3dc9d8b85ab9 (diff)
downloadopenssl-10b0b5ecd93097179a2b13a7d34e0ab580d23fa2.zip
openssl-10b0b5ecd93097179a2b13a7d34e0ab580d23fa2.tar.gz
openssl-10b0b5ecd93097179a2b13a7d34e0ab580d23fa2.tar.bz2
Revert "Move algorithm specific ppccap code from crypto/ppccap.c"
Now that we can link specifically with static libraries, the immediate need to split ppccap.c (and eventually other *cap.c files) is no more. This reverts commit e3fb4d3d52e188b83ccb8506aa2f16cb686f4d6c. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/chacha')
-rw-r--r--crypto/chacha/chacha_ppccap.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/crypto/chacha/chacha_ppccap.c b/crypto/chacha/chacha_ppccap.c
deleted file mode 100644
index 10dd06e..0000000
--- a/crypto/chacha/chacha_ppccap.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2009-2016 The OpenSSL Project Authors. All Rights Reserved.
- *
- * Licensed under the OpenSSL license (the "License"). You may not use
- * this file except in compliance with the License. You can obtain a copy
- * in the file LICENSE in the source distribution or at
- * https://www.openssl.org/source/license.html
- */
-
-#include <openssl/opensslconf.h>
-#include <openssl/crypto.h>
-#include "../ppc_arch.h"
-
-#ifdef OPENSSL_NO_CHACHA
-NON_EMPTY_TRANSLATION_UNIT
-#else
-void ChaCha20_ctr32_int(unsigned char *out, const unsigned char *inp,
- size_t len, const unsigned int key[8],
- const unsigned int counter[4]);
-void ChaCha20_ctr32_vmx(unsigned char *out, const unsigned char *inp,
- size_t len, const unsigned int key[8],
- const unsigned int counter[4]);
-void ChaCha20_ctr32(unsigned char *out, const unsigned char *inp,
- size_t len, const unsigned int key[8],
- const unsigned int counter[4])
-{
- OPENSSL_ppccap_P & PPC_ALTIVEC
- ? ChaCha20_ctr32_vmx(out, inp, len, key, counter)
- : ChaCha20_ctr32_int(out, inp, len, key, counter);
-}
-#endif