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()
Polynomial
public int n()
public int logQ()
public int q()
public int seedBytes()
key_seed_bits/8
public int prfKeyBytes()
prf_key_bits/8
public int sharedKeyBytes()
kem_shared_key_bits/8
public int sampleIidBytes()
sample_iid_bits/8
public int sampleFixedTypeBytes()
sample_xed_type_bits
public abstract int sampleFgBytes()
sample_key_bits/8
public abstract int sampleRmBytes()
sample_plaintext_bits/8
public int packDegree()
public int packTrinaryBytes()
packed_s3_bytes
public int owcpaMsgBytes()
dpke_plaintext_bytes
public int owcpaPublicKeyBytes()
dpke_public_key_bytes
public int owcpaSecretKeyBytes()
dpke_private_key_bytes
public int owcpaBytes()
dpke_ciphertext_bytes
public int ntruPublicKeyBytes()
kem_public_key_bytes
public int ntruSecretKeyBytes()
kem_private_key_bytes
public int ntruCiphertextBytes()
kem_ciphertext_bytes