| 1 | /** |
| 2 | * EdDSA-Java by str4d |
| 3 | * |
| 4 | * To the extent possible under law, the person who associated CC0 with |
| 5 | * EdDSA-Java has waived all copyright and related or neighboring rights |
| 6 | * to EdDSA-Java. |
| 7 | * |
| 8 | * You should have received a copy of the CC0 legalcode along with this |
| 9 | * work. If not, see <https://creativecommons.org/publicdomain/zero/1.0/>. |
| 10 | * |
| 11 | */ |
| 12 | package net.i2p.crypto.eddsa; |
| 13 | |
| 14 | import net.i2p.crypto.eddsa.spec.EdDSAParameterSpec; |
| 15 | |
| 16 | /** |
| 17 | * Common interface for all EdDSA keys. |
| 18 | * @author str4d |
| 19 | */ |
| 20 | public interface EdDSAKey { |
| 21 | /** |
| 22 | * The reported key algorithm for all EdDSA keys |
| 23 | */ |
| 24 | String KEY_ALGORITHM = "EdDSA"; |
| 25 | |
| 26 | /** |
| 27 | * @return a parameter specification representing the EdDSA domain |
| 28 | * parameters for the key. |
| 29 | */ |
| 30 | EdDSAParameterSpec getParams(); |
| 31 | } |