use of org.bouncycastle.pqc.asn1.RainbowPublicKey in project jmulticard by ctt-gob-es.
the class BCRainbowPublicKey method getEncoded.
public byte[] getEncoded() {
RainbowPublicKey key = new RainbowPublicKey(docLength, coeffquadratic, coeffsingular, coeffscalar);
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PQCObjectIdentifiers.rainbow, DERNull.INSTANCE);
return KeyUtil.getEncodedSubjectPublicKeyInfo(algorithmIdentifier, key);
}
use of org.bouncycastle.pqc.asn1.RainbowPublicKey in project LinLong-Java by zhenwei1108.
the class BCRainbowPublicKey method getEncoded.
public byte[] getEncoded() {
RainbowPublicKey key = new RainbowPublicKey(docLength, coeffquadratic, coeffsingular, coeffscalar);
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PQCObjectIdentifiers.rainbow, DERNull.INSTANCE);
return KeyUtil.getEncodedSubjectPublicKeyInfo(algorithmIdentifier, key);
}
Aggregations