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