Search in sources :

Example 1 with RainbowPublicKey

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);
}
Also used : RainbowPublicKey(org.bouncycastle.pqc.asn1.RainbowPublicKey) AlgorithmIdentifier(org.bouncycastle.asn1.x509.AlgorithmIdentifier)

Example 2 with RainbowPublicKey

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);
}
Also used : RainbowPublicKey(com.github.zhenwei.core.pqc.asn1.RainbowPublicKey) AlgorithmIdentifier(com.github.zhenwei.core.asn1.x509.AlgorithmIdentifier)

Aggregations

AlgorithmIdentifier (com.github.zhenwei.core.asn1.x509.AlgorithmIdentifier)1 RainbowPublicKey (com.github.zhenwei.core.pqc.asn1.RainbowPublicKey)1 AlgorithmIdentifier (org.bouncycastle.asn1.x509.AlgorithmIdentifier)1 RainbowPublicKey (org.bouncycastle.pqc.asn1.RainbowPublicKey)1