Changeset 5634055 for core


Ignore:
Timestamp:
Jan 5, 2019 2:22:46 PM (23 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
30ea6f3
Parents:
3b7284c
Message:

Crypto: Stub out EdDSA blinding (proposal 123)

Location:
core/java/src/net/i2p
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/SigningPrivateKey.java

    r3b7284c r5634055  
    1212import java.util.Arrays;
    1313
     14import net.i2p.crypto.Blinding;
    1415import net.i2p.crypto.KeyGenerator;
    1516import net.i2p.crypto.SigType;
     
    9091
    9192    /**
     93     *  Only for SigType EdDSA_SHA512_Ed25519
     94     *
     95     *  @param h hash of secret data, same length as this key
     96     *  @throws UnsupportedOperationException unless supported
     97     *  @since 0.9.38
     98     */
     99    public SigningPrivateKey blind(SimpleDataStructure h) {
     100        return Blinding.blind(this, h);
     101    }
     102
     103    /**
    92104     *  @since 0.9.8
    93105     */
  • core/java/src/net/i2p/data/SigningPublicKey.java

    r3b7284c r5634055  
    1515import java.util.Arrays;
    1616
     17import net.i2p.crypto.Blinding;
    1718import net.i2p.crypto.SigType;
    1819
     
    198199
    199200    /**
     201     *  Only for SigType EdDSA_SHA512_Ed25519
     202     *
     203     *  @param h hash of secret data, same length as this key
     204     *  @throws UnsupportedOperationException unless supported
     205     *  @since 0.9.38
     206     */
     207    public SigningPublicKey blind(SimpleDataStructure h) {
     208        return Blinding.blind(this, h);
     209    }
     210
     211    /**
    200212     *  @since 0.9.8
    201213     */
Note: See TracChangeset for help on using the changeset viewer.