public final class McElieceCCA2Primitives
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.spongycastle.pqc.math.linearalgebra.GF2Vector[] |
decryptionPrimitive(BCMcElieceCCA2PrivateKey privKey,
org.spongycastle.pqc.math.linearalgebra.GF2Vector c)
The McEliece decryption primitive.
|
static org.spongycastle.pqc.math.linearalgebra.GF2Vector[] |
decryptionPrimitive(org.spongycastle.pqc.crypto.mceliece.McElieceCCA2PrivateKeyParameters privKey,
org.spongycastle.pqc.math.linearalgebra.GF2Vector c) |
static org.spongycastle.pqc.math.linearalgebra.GF2Vector |
encryptionPrimitive(BCMcElieceCCA2PublicKey pubKey,
org.spongycastle.pqc.math.linearalgebra.GF2Vector m,
org.spongycastle.pqc.math.linearalgebra.GF2Vector z)
The McEliece encryption primitive.
|
static org.spongycastle.pqc.math.linearalgebra.GF2Vector |
encryptionPrimitive(org.spongycastle.pqc.crypto.mceliece.McElieceCCA2PublicKeyParameters pubKey,
org.spongycastle.pqc.math.linearalgebra.GF2Vector m,
org.spongycastle.pqc.math.linearalgebra.GF2Vector z) |
public static org.spongycastle.pqc.math.linearalgebra.GF2Vector encryptionPrimitive(BCMcElieceCCA2PublicKey pubKey, org.spongycastle.pqc.math.linearalgebra.GF2Vector m, org.spongycastle.pqc.math.linearalgebra.GF2Vector z)
pubKey - the public keym - the message vectorz - the error vectorpublic static org.spongycastle.pqc.math.linearalgebra.GF2Vector encryptionPrimitive(org.spongycastle.pqc.crypto.mceliece.McElieceCCA2PublicKeyParameters pubKey,
org.spongycastle.pqc.math.linearalgebra.GF2Vector m,
org.spongycastle.pqc.math.linearalgebra.GF2Vector z)
public static org.spongycastle.pqc.math.linearalgebra.GF2Vector[] decryptionPrimitive(BCMcElieceCCA2PrivateKey privKey, org.spongycastle.pqc.math.linearalgebra.GF2Vector c)
privKey - the private keyc - the ciphertext vector c = m*G + zpublic static org.spongycastle.pqc.math.linearalgebra.GF2Vector[] decryptionPrimitive(org.spongycastle.pqc.crypto.mceliece.McElieceCCA2PrivateKeyParameters privKey,
org.spongycastle.pqc.math.linearalgebra.GF2Vector c)