Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.pqc.crypto.mceliece;
 
 
 
     extends McElieceKeyParameters
 {
 
    // the OID of the algorithm
    private String oid;
    // the length of the code
    private int n;
    // the error correction capability of the code
    private int t;
    // the generator matrix
    private GF2Matrix g;

    
Constructor (used by McElieceKeyFactory).

Parameters:
oid
n the length of the code
t the error correction capability of the code
g the generator matrix
params McElieceParameters
    public McEliecePublicKeyParameters(String oidint nint tGF2Matrix gMcElieceParameters params)
    {
        super(falseparams);
        this. = oid;
        this. = n;
        this. = t;
        this. = new GF2Matrix(g);
    }

    
Constructor (used by McElieceKeyFactory).

Parameters:
oid
n the length of the code
t the error correction capability of the code
encG the encoded generator matrix
params McElieceParameters
    public McEliecePublicKeyParameters(String oidint tint nbyte[] encGMcElieceParameters params)
    {
        super(falseparams);
        this. = oid;
        this. = n;
        this. = t;
        this. = new GF2Matrix(encG);
    }

    

Returns:
the length of the code
    public int getN()
    {
        return ;
    }

    

Returns:
the error correction capability of the code
    public int getT()
    {
        return ;
    }

    

Returns:
the generator matrix
    public GF2Matrix getG()
    {
        return ;
    }
    public String getOIDString()
    {
        return ;
    }

    

Returns:
the dimension of the code
    public int getK()
    {
        return .getNumRows();
    }
New to GrepCode? Check out our FAQ X