feat(cuda): implement negation of an LWE ciphertext vector

This commit is contained in:
Agnes Leroy
2022-10-26 16:08:13 +02:00
committed by Agnès Leroy
parent 841c1e6952
commit bc66816341
5 changed files with 100 additions and 6 deletions

20
include/negation.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef CUDA_NEGATE_H_
#define CUDA_NEGATE_H_
#include <cstdint>
extern "C" {
void cuda_negate_lwe_ciphertext_vector_32(void *v_stream, uint32_t gpu_index,
void *lwe_array_out,
void *lwe_array_in,
uint32_t input_lwe_dimension,
uint32_t input_lwe_ciphertext_count);
void cuda_negate_lwe_ciphertext_vector_64(void *v_stream, uint32_t gpu_index,
void *lwe_array_out,
void *lwe_array_in,
uint32_t input_lwe_dimension,
uint32_t input_lwe_ciphertext_count);
}
#endif // CUDA_NEGATE_H_