Top Description Constructors Methods
org.bouncycastle.pqc.legacy.crypto.mceliece

pack-priv final Class McElieceCCA2Primitives

extends Object
Class Inheritance
Imports
org.bouncycastle.pqc.legacy.math.linearalgebra.GF2Matrix, .GF2Vector, .GF2mField, .GoppaCode, .Permutation, .PolynomialGF2mSmallM, .Vector

Core operations for the CCA-secure variants of McEliece.

Constructor Summary

AccessConstructor and Description
private
McElieceCCA2Primitives()

Default constructor (private).

Method Summary

Modifier and TypeMethod and Description
public static GF2Vector[]

Returns:

the message vector m and the error vector z
decryptionPrimitive
(McElieceCCA2PrivateKeyParameters
the private key
privKey
,
GF2Vector
the ciphertext vector c = m*G + z
c
)

The McEliece decryption primitive.

public static GF2Vector

Returns:

m*G + z
encryptionPrimitive
(McElieceCCA2PublicKeyParameters
the public key
pubKey
,
GF2Vector
the message vector
m
,
GF2Vector
the error vector
z
)

The McEliece encryption primitive.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

McElieceCCA2Primitivesback to summary
private McElieceCCA2Primitives()

Default constructor (private).

Method Detail

decryptionPrimitiveback to summary
public static GF2Vector[] decryptionPrimitive(McElieceCCA2PrivateKeyParameters privKey, GF2Vector c)

The McEliece decryption primitive.

Parameters
privKey:McElieceCCA2PrivateKeyParameters

the private key

c:GF2Vector

the ciphertext vector c = m*G + z

Returns:GF2Vector[]

the message vector m and the error vector z

encryptionPrimitiveback to summary
public static GF2Vector encryptionPrimitive(McElieceCCA2PublicKeyParameters pubKey, GF2Vector m, GF2Vector z)

The McEliece encryption primitive.

Parameters
pubKey:McElieceCCA2PublicKeyParameters

the public key

m:GF2Vector

the message vector

z:GF2Vector

the error vector

Returns:GF2Vector

m*G + z