Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • a3483c2
  • /
  • ntrulpr953
  • /
  • m4f
  • /
  • NTT.h
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:710085633d7b31f3305cc042a86ba0a3dc96bb5b
directory badge Iframe embedding
swh:1:dir:44be9ddb9504e88bf972d1897669f3ceb2eda5b8
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
NTT.h
#ifndef NTT_H
#define NTT_H

#ifndef NTRU_Q
#define NTRU_Q 6343
#endif
#ifndef NTRU_P
#define NTRU_P 953
#endif

#define ARRAY_N 640
#define NTT_N 128
#define LOGNTT_N 7

#define MOD 6045313
#define Mhalf 3022656
#define pr 5

#define omega3 -522136
// -522136 = -(7 * 2^16 + 63384)
#define omega3_2 522135
// 522135 = 7 * 2^16 + 63383

#define omega3_RmodM 475667
// 475667 = 7 * 2^16 + 16915
#define omega3_2_RmodM 2774580
// 2774580 = 42 * 2^16 + 22068

#define _inv_3 -2015104

#define RmodM 2795066
// 2795066 = 42 * 2^16 + 42554
#define R2modM -317422
#define Mprime -1581646209
#define invN -47229
#define invN_RmodM -2717446
#define invN_R2modM -852602
#define invN_inv3_R2modM -2299305
// -2299305 = -(35 * 2^16 + 5545)

#define O_Mbar 677119
// 677119 = 10 * 2^16 + 21759
#define O_M 6343

#endif

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top