public void initialize(int keySize, SecureRandom random) { kpg = new McElieceCCA2KeyPairGenerator(); McElieceCCA2KeyGenerationParameters mccca2KGParams = new McElieceCCA2KeyGenerationParameters(random, new McElieceCCA2Parameters()); kpg.init(mccca2KGParams); }
public void initCipherDecrypt(McElieceCCA2PrivateKeyParameters privKey) { this.messDigest = privKey.getParameters().getDigest(); n = privKey.getN(); k = privKey.getK(); t = privKey.getT(); }
private void initCipherEncrypt(McElieceCCA2PublicKeyParameters pubKey) { this.messDigest = pubKey.getParameters().getDigest(); n = pubKey.getN(); k = pubKey.getK(); t = pubKey.getT(); }
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException { kpg = new McElieceKeyPairGenerator(); McElieceKeyGenParameterSpec ecc = (McElieceKeyGenParameterSpec)params; McElieceKeyGenerationParameters mccKGParams = new McElieceKeyGenerationParameters( random, new McElieceParameters(ecc.getM(), ecc.getT())); kpg.init(mccKGParams); }
/** * Default initialization of the key pair generator. */ private void initializeDefault() { McElieceKeyGenerationParameters mcParams = new McElieceKeyGenerationParameters(new SecureRandom(), new McElieceParameters()); initialize(mcParams); }
/** * @return the dimension of the code */ public int getK() { return params.getK(); }
/** * @return the error correction capability of the code */ public int getT() { return params.getT(); }
/** * @return the length of the code */ public int getN() { return params.getN(); }
/** * @return the canonical check matrix */ public GF2Matrix getH() { return params.getH(); }
/** * @return the matrix used to compute square roots in <tt>(GF(2^m))^t</tt> */ public PolynomialGF2mSmallM[] getQInv() { return params.getQInv(); }
/** * @return the irreducible Goppa polynomial */ public PolynomialGF2mSmallM getGoppaPoly() { return params.getGoppaPoly(); }
/** * @return the k x k random binary non-singular matrix S */ public GF2Matrix getSInv() { return params.getSInv(); }
public void initCipherDecrypt(McElieceCCA2PrivateKeyParameters privKey) { this.messDigest = privKey.getParameters().getDigest(); n = privKey.getN(); t = privKey.getT(); }
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException { kpg = new McElieceCCA2KeyPairGenerator(); McElieceCCA2KeyGenParameterSpec ecc = (McElieceCCA2KeyGenParameterSpec)params; McElieceCCA2KeyGenerationParameters mccca2KGParams = new McElieceCCA2KeyGenerationParameters( random, new McElieceCCA2Parameters(ecc.getM(), ecc.getT(), ecc.getDigest())); kpg.init(mccca2KGParams); }
/** * Default initialization of the key pair generator. */ private void initializeDefault() { McElieceKeyGenerationParameters mcParams = new McElieceKeyGenerationParameters(CryptoServicesRegistrar.getSecureRandom(), new McElieceParameters()); initialize(mcParams); }
public void initCipherDecrypt(McElieceCCA2PrivateKeyParameters privKey) { this.messDigest = privKey.getParameters().getDigest(); n = privKey.getN(); k = privKey.getK(); t = privKey.getT(); }