diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-06 18:17:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-06 18:17:17 -0400 |
commit | 80cee03bf1d626db0278271b505d7f5febb37bba (patch) | |
tree | 6fc86272106f526a9d07343c524612aa493539e6 /lib | |
parent | aae3dbb4776e7916b6cd442d00159bea27a695c1 (diff) | |
parent | 2d45a7e89833f88b38112292ff227af437f81f2f (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto updates from Herbert Xu:
"Here is the crypto update for 4.14:
API:
- Defer scompress scratch buffer allocation to first use.
- Add __crypto_xor that takes separte src and dst operands.
- Add ahash multiple registration interface.
- Revamped aead/skcipher algif code to fix async IO properly.
Drivers:
- Add non-SIMD fallback code path on ARM for SVE.
- Add AMD Security Processor framework for ccp.
- Add support for RSA in ccp.
- Add XTS-AES-256 support for CCP version 5.
- Add support for PRNG in sun4i-ss.
- Add support for DPAA2 in caam.
- Add ARTPEC crypto support.
- Add Freescale RNGC hwrng support.
- Add Microchip / Atmel ECC driver.
- Add support for STM32 HASH module"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (116 commits)
crypto: af_alg - get_page upon reassignment to TX SGL
crypto: cavium/nitrox - Fix an error handling path in 'nitrox_probe()'
crypto: inside-secure - fix an error handling path in safexcel_probe()
crypto: rockchip - Don't dequeue the request when device is busy
crypto: cavium - add release_firmware to all return case
crypto: sahara - constify platform_device_id
MAINTAINERS: Add ARTPEC crypto maintainer
crypto: axis - add ARTPEC-6/7 crypto accelerator driver
crypto: hash - add crypto_(un)register_ahashes()
dt-bindings: crypto: add ARTPEC crypto
crypto: algif_aead - fix comment regarding memory layout
crypto: ccp - use dma_mapping_error to check map error
lib/mpi: fix build with clang
crypto: sahara - Remove leftover from previous used spinlock
crypto: sahara - Fix dma unmap direction
crypto: af_alg - consolidation of duplicate code
crypto: caam - Remove unused dentry members
crypto: ccp - select CONFIG_CRYPTO_RSA
crypto: ccp - avoid uninitialized variable warning
crypto: serpent - improve __serpent_setkey with UBSAN
...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mpi/longlong.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h index 93336502af08..57fd45ab7af1 100644 --- a/lib/mpi/longlong.h +++ b/lib/mpi/longlong.h | |||
@@ -176,8 +176,8 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype); | |||
176 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ | 176 | #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ |
177 | __asm__ ("adds %1, %4, %5\n" \ | 177 | __asm__ ("adds %1, %4, %5\n" \ |
178 | "adc %0, %2, %3" \ | 178 | "adc %0, %2, %3" \ |
179 | : "=r" ((USItype)(sh)), \ | 179 | : "=r" (sh), \ |
180 | "=&r" ((USItype)(sl)) \ | 180 | "=&r" (sl) \ |
181 | : "%r" ((USItype)(ah)), \ | 181 | : "%r" ((USItype)(ah)), \ |
182 | "rI" ((USItype)(bh)), \ | 182 | "rI" ((USItype)(bh)), \ |
183 | "%r" ((USItype)(al)), \ | 183 | "%r" ((USItype)(al)), \ |
@@ -185,15 +185,15 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype); | |||
185 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ | 185 | #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ |
186 | __asm__ ("subs %1, %4, %5\n" \ | 186 | __asm__ ("subs %1, %4, %5\n" \ |
187 | "sbc %0, %2, %3" \ | 187 | "sbc %0, %2, %3" \ |
188 | : "=r" ((USItype)(sh)), \ | 188 | : "=r" (sh), \ |
189 | "=&r" ((USItype)(sl)) \ | 189 | "=&r" (sl) \ |
190 | : "r" ((USItype)(ah)), \ | 190 | : "r" ((USItype)(ah)), \ |
191 | "rI" ((USItype)(bh)), \ | 191 | "rI" ((USItype)(bh)), \ |
192 | "r" ((USItype)(al)), \ | 192 | "r" ((USItype)(al)), \ |
193 | "rI" ((USItype)(bl))) | 193 | "rI" ((USItype)(bl))) |
194 | #if defined __ARM_ARCH_2__ || defined __ARM_ARCH_3__ | 194 | #if defined __ARM_ARCH_2__ || defined __ARM_ARCH_3__ |
195 | #define umul_ppmm(xh, xl, a, b) \ | 195 | #define umul_ppmm(xh, xl, a, b) \ |
196 | __asm__ ("%@ Inlined umul_ppmm\n" \ | 196 | __asm__ ("@ Inlined umul_ppmm\n" \ |
197 | "mov %|r0, %2, lsr #16 @ AAAA\n" \ | 197 | "mov %|r0, %2, lsr #16 @ AAAA\n" \ |
198 | "mov %|r2, %3, lsr #16 @ BBBB\n" \ | 198 | "mov %|r2, %3, lsr #16 @ BBBB\n" \ |
199 | "bic %|r1, %2, %|r0, lsl #16 @ aaaa\n" \ | 199 | "bic %|r1, %2, %|r0, lsl #16 @ aaaa\n" \ |
@@ -206,19 +206,19 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype); | |||
206 | "addcs %|r2, %|r2, #65536\n" \ | 206 | "addcs %|r2, %|r2, #65536\n" \ |
207 | "adds %1, %|r1, %|r0, lsl #16\n" \ | 207 | "adds %1, %|r1, %|r0, lsl #16\n" \ |
208 | "adc %0, %|r2, %|r0, lsr #16" \ | 208 | "adc %0, %|r2, %|r0, lsr #16" \ |
209 | : "=&r" ((USItype)(xh)), \ | 209 | : "=&r" (xh), \ |
210 | "=r" ((USItype)(xl)) \ | 210 | "=r" (xl) \ |
211 | : "r" ((USItype)(a)), \ | 211 | : "r" ((USItype)(a)), \ |
212 | "r" ((USItype)(b)) \ | 212 | "r" ((USItype)(b)) \ |
213 | : "r0", "r1", "r2") | 213 | : "r0", "r1", "r2") |
214 | #else | 214 | #else |
215 | #define umul_ppmm(xh, xl, a, b) \ | 215 | #define umul_ppmm(xh, xl, a, b) \ |
216 | __asm__ ("%@ Inlined umul_ppmm\n" \ | 216 | __asm__ ("@ Inlined umul_ppmm\n" \ |
217 | "umull %r1, %r0, %r2, %r3" \ | 217 | "umull %1, %0, %2, %3" \ |
218 | : "=&r" ((USItype)(xh)), \ | 218 | : "=&r" (xh), \ |
219 | "=&r" ((USItype)(xl)) \ | 219 | "=&r" (xl) \ |
220 | : "r" ((USItype)(a)), \ | 220 | : "r" ((USItype)(a)), \ |
221 | "r" ((USItype)(b)) \ | 221 | "r" ((USItype)(b)) \ |
222 | : "r0", "r1") | 222 | : "r0", "r1") |
223 | #endif | 223 | #endif |
224 | #define UMUL_TIME 20 | 224 | #define UMUL_TIME 20 |