-rw-r--r-- 2394 libntruprime-20240825/doc/man/ntruprime-speed.1 raw
.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "ntruprime-speed" "1" "" "" "" .hy .SS NAME .PP ntruprime-speed - run some libntruprime speed tests .SS SYNOPSIS .IP .nf \f[C] ntruprime-speed \f[R] .fi .SS DESCRIPTION .PP \f[V]ntruprime-speed\f[R] runs some tests of the speed of the libntruprime implementation of the Streamlined NTRU Prime cryptosystem. .PP The \f[V]ntruprime-speed\f[R] output format is subject to change. Examples of output lines with the current format, from a \f[V]ntruprime-speed\f[R] run on an Intel Skylake CPU core, include the following: .IP .nf \f[C] kem_sntrup761 selected implementation factored compiler clang -Wall -fPIC -fwrapv -Qunused-arguments -O2; Ubuntu clang version 14.0.0-1ubuntu1.1; Target: x86_64-pc-linux-gnu; Thread model: posix; InstalledDir: /usr/bin kem_sntrup761_keypair selected 1158 779846 +112137+5141+1312+565-207-153+66-18+35+1650-109+4-144+414-119-69-243+66+82-110-1-16+174+864+741-52-1+57-180-538-312-116 kem_sntrup761_enc selected 1039 40275 +8153+1104+323-39+36-1-107-27-99-17-15-65+74-33-102-24-30+69+99-106+7+33+59-5+175-60-29+152+21-82+90-78 kem_sntrup761_dec selected 32 52834 +36240+2014+438+165+96+109+62-8-78+20+67-30-112-59+27-25-3+31+15-118+102-64-84+19-121+57-35+120-125-147-80-75 \f[R] .fi .PP These lines say that the automatically selected implementation for the \f[V]sntrup761\f[R] parameter set was the \f[V]factored\f[R] implementation compiled with the \f[V]clang\f[R] options shown, taking an interquartile mean (IQM) of 779846 CPU cycles to generate a key pair, 40275 CPU cycles to encapsulate a session key, and 52834 CPU cycles to decapsulate a session key. The numbers \f[V]52834 +36240+2014+...\f[R] show the timings for a series of consecutive operations: the IQM was 52834 cycles, the first run took 36240 cycles more than the IQM, the second run took 2014 cycles more than the IQM, etc. .PP The numbers immediately after \f[V]selected\f[R] on the \f[V]keypair\f[R], \f[V]enc\f[R], and \f[V]dec\f[R] lines say that a public key has 1158 bytes, a ciphertext has 1039 bytes, and a session key has 3 bytes. .SS SEE ALSO .PP \f[B]sntrup\f[R](1), \f[B]sntrup\f[R](3)