Changeset 91c59df


Ignore:
Timestamp:
Mar 12, 2019 12:37:28 PM (16 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d7d1dcb5
Parents:
9d17066
Message:

Crypto: Fix Ed25519ph conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/SigUtil.java

    r9d17066 r91c59df  
    373373            EdDSAPrivateKeySpec pkspec;
    374374            SigType type = pk.getType();
    375             if (type == SigType.EdDSA_SHA512_Ed25519)
     375            if (type == SigType.EdDSA_SHA512_Ed25519 ||
     376                type == SigType.EdDSA_SHA512_Ed25519ph)
    376377                pkspec = new EdDSAPrivateKeySpec(pk.getData(), paramspec);
    377378            else if (type == SigType.RedDSA_SHA512_Ed25519)
     
    399400            throws GeneralSecurityException {
    400401        byte[] data;
    401         if (type == SigType.EdDSA_SHA512_Ed25519)
     402        if (type == SigType.EdDSA_SHA512_Ed25519 ||
     403            type == SigType.EdDSA_SHA512_Ed25519ph)
    402404            data = pk.getSeed();
    403405        else if (type == SigType.RedDSA_SHA512_Ed25519)
Note: See TracChangeset for help on using the changeset viewer.