public abstract class NTRUParameterSet
extends java.lang.Object
| Constructor and Description |
|---|
NTRUParameterSet(int n,
int logQ,
int seedBytes,
int prfKeyBytes,
int sharedKeyBytes) |
| Modifier and Type | Method and Description |
|---|---|
abstract Polynomial |
createPolynomial()
Creates a polynomial based on this parameter set.
|
int |
logQ()
logq
|
int |
n()
n
|
int |
ntruCiphertextBytes()
The number of bytes in a ciphertext for the KEM.
|
int |
ntruPublicKeyBytes()
The number of bytes in a public key for the KEM.
|
int |
ntruSecretKeyBytes()
The number of bytes in a private key for the KEM.
|
int |
owcpaBytes()
The number of bytes in a ciphertext for the DPKE.
|
int |
owcpaMsgBytes()
The number of bytes in a plaintext for the DPKE.
|
int |
owcpaPublicKeyBytes()
The number of bytes in a public key for the DPKE.
|
int |
owcpaSecretKeyBytes()
The number of bytes in a private key for the DPKE.
|
int |
packDegree() |
int |
packTrinaryBytes() |
int |
prfKeyBytes()
The number of bytes used to key the implicit rejection mechanism.
|
int |
q()
q
|
abstract int |
sampleFgBytes() |
int |
sampleFixedTypeBytes() |
int |
sampleIidBytes() |
abstract int |
sampleRmBytes() |
int |
seedBytes()
The number of random bytes consumed by keygen.
|
int |
sharedKeyBytes() |
public NTRUParameterSet(int n,
int logQ,
int seedBytes,
int prfKeyBytes,
int sharedKeyBytes)
public abstract Polynomial createPolynomial()
Polynomialpublic int n()
public int logQ()
public int q()
public int seedBytes()
key_seed_bits/8public int prfKeyBytes()
prf_key_bits/8public int sharedKeyBytes()
kem_shared_key_bits/8public int sampleIidBytes()
sample_iid_bits/8public int sampleFixedTypeBytes()
sample_xed_type_bitspublic abstract int sampleFgBytes()
sample_key_bits/8public abstract int sampleRmBytes()
sample_plaintext_bits/8public int packDegree()
public int packTrinaryBytes()
packed_s3_bytespublic int owcpaMsgBytes()
dpke_plaintext_bytespublic int owcpaPublicKeyBytes()
dpke_public_key_bytespublic int owcpaSecretKeyBytes()
dpke_private_key_bytespublic int owcpaBytes()
dpke_ciphertext_bytespublic int ntruPublicKeyBytes()
kem_public_key_bytespublic int ntruSecretKeyBytes()
kem_private_key_bytespublic int ntruCiphertextBytes()
kem_ciphertext_bytes