Intel HEXL
Intel Homomorphic Encryption Acceleration Library, accelerating the modular arithmetic operations used in homomorphic encryption.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
eltwise-sub-mod.hpp
Go to the documentation of this file.
1 // Copyright (C) 2020-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include <stdint.h>
7 
8 namespace intel {
9 namespace hexl {
10 
22 void EltwiseSubMod(uint64_t* result, const uint64_t* operand1,
23  const uint64_t* operand2, uint64_t n, uint64_t modulus);
24 
36 void EltwiseSubMod(uint64_t* result, const uint64_t* operand1,
37  uint64_t operand2, uint64_t n, uint64_t modulus);
38 
39 } // namespace hexl
40 } // namespace intel
void EltwiseSubMod(uint64_t *result, const uint64_t *operand1, const uint64_t *operand2, uint64_t n, uint64_t modulus)
Subtracts two vectors elementwise with modular reduction.
Definition: eltwise-add-mod.hpp:8