aboutsummaryrefslogtreecommitdiff
path: root/client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-07-22 08:40:38 -0700
committerauth12 <[email protected]>2020-07-22 08:40:38 -0700
commit4ff89e85e74884e8f04edb5c31a94b4323e895e9 (patch)
tree65f98ebf9af0d0947e44bf397b1fac0f107d7a2f /client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i
parentClient injection. (diff)
downloadloader-4ff89e85e74884e8f04edb5c31a94b4323e895e9.tar.xz
loader-4ff89e85e74884e8f04edb5c31a94b4323e895e9.zip
Removed wolfssl
Diffstat (limited to 'client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i')
-rw-r--r--client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i61
1 files changed, 0 insertions, 61 deletions
diff --git a/client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i b/client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i
deleted file mode 100644
index 0befff8..0000000
--- a/client/wolfssl/wolfcrypt/src/fp_mul_comba_3.i
+++ /dev/null
@@ -1,61 +0,0 @@
-/* fp_mul_comba_3.i
- *
- * Copyright (C) 2006-2020 wolfSSL Inc.
- *
- * This file is part of wolfSSL.
- *
- * wolfSSL is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * wolfSSL is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
- */
-
-
-
-#ifdef TFM_MUL3
-int fp_mul_comba3(fp_int *A, fp_int *B, fp_int *C)
-{
- fp_digit c0, c1, c2, at[6];
-
- XMEMCPY(at, A->dp, 3 * sizeof(fp_digit));
- XMEMCPY(at+3, B->dp, 3 * sizeof(fp_digit));
- COMBA_START;
-
- COMBA_CLEAR;
- /* 0 */
- MULADD(at[0], at[3]);
- COMBA_STORE(C->dp[0]);
- /* 1 */
- COMBA_FORWARD;
- MULADD(at[0], at[4]); MULADD(at[1], at[3]);
- COMBA_STORE(C->dp[1]);
- /* 2 */
- COMBA_FORWARD;
- MULADD(at[0], at[5]); MULADD(at[1], at[4]); MULADD(at[2], at[3]);
- COMBA_STORE(C->dp[2]);
- /* 3 */
- COMBA_FORWARD;
- MULADD(at[1], at[5]); MULADD(at[2], at[4]);
- COMBA_STORE(C->dp[3]);
- /* 4 */
- COMBA_FORWARD;
- MULADD(at[2], at[5]);
- COMBA_STORE(C->dp[4]);
- COMBA_STORE2(C->dp[5]);
- C->used = 6;
- C->sign = A->sign ^ B->sign;
- fp_clamp(C);
- COMBA_FINI;
-
- return FP_OKAY;
-}
-#endif