96979899100101102103104105106
int t = bigT.intValue(); // decode <matrixG> byte[] matrixG = ((ASN1OctetString)publicKey.getObjectAt(3)).getOctets(); return new BCMcElieceCCA2PublicKey(new McElieceCCA2PublicKeySpec( OID, n, t, matrixG)); } catch (IOException cce) { throw new InvalidKeySpecException(
249250251252253254255256257258259
} else if (McElieceCCA2PublicKeySpec.class .isAssignableFrom(keySpec)) { BCMcElieceCCA2PublicKey pubKey = (BCMcElieceCCA2PublicKey)key; return new McElieceCCA2PublicKeySpec(OID, pubKey.getN(), pubKey .getT(), pubKey.getG()); } } else {