Skip to content

Add Ed (edwards curve), EdDSA (Ed25519/Ed448) and XDH (X25519/X448) interfaces #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 145 additions & 0 deletions cryptography-core/api/cryptography-core.api
Original file line number Diff line number Diff line change
@@ -1,3 +1,144 @@
public abstract interface class algorithms/Ed : dev/whyoleg/cryptography/CryptographyAlgorithm {
public abstract fun keyPairGenerator-48_mLeQ (Ljava/lang/String;)Ldev/whyoleg/cryptography/materials/key/KeyGenerator;
public abstract fun privateKeyDecoder-48_mLeQ (Ljava/lang/String;)Ldev/whyoleg/cryptography/materials/key/KeyDecoder;
public abstract fun publicKeyDecoder-48_mLeQ (Ljava/lang/String;)Ldev/whyoleg/cryptography/materials/key/KeyDecoder;
}

public final class algorithms/Ed$Curve {
public static final field Companion Lalgorithms/Ed$Curve$Companion;
public static final synthetic fun box-impl (Ljava/lang/String;)Lalgorithms/Ed$Curve;
public static fun constructor-impl (Ljava/lang/String;)Ljava/lang/String;
public fun equals (Ljava/lang/Object;)Z
public static fun equals-impl (Ljava/lang/String;Ljava/lang/Object;)Z
public static final fun equals-impl0 (Ljava/lang/String;Ljava/lang/String;)Z
public final fun getName ()Ljava/lang/String;
public fun hashCode ()I
public static fun hashCode-impl (Ljava/lang/String;)I
public fun toString ()Ljava/lang/String;
public static fun toString-impl (Ljava/lang/String;)Ljava/lang/String;
public final synthetic fun unbox-impl ()Ljava/lang/String;
}

public final class algorithms/Ed$Curve$Companion {
public final fun getEd25519-ZWrx85M ()Ljava/lang/String;
public final fun getEd448-ZWrx85M ()Ljava/lang/String;
public final fun getX25519-ZWrx85M ()Ljava/lang/String;
public final fun getX448-ZWrx85M ()Ljava/lang/String;
}

public abstract interface class algorithms/Ed$KeyPair : dev/whyoleg/cryptography/materials/key/Key {
public abstract fun getPrivateKey ()Lalgorithms/Ed$PrivateKey;
public abstract fun getPublicKey ()Lalgorithms/Ed$PublicKey;
}

public abstract interface class algorithms/Ed$PrivateKey : dev/whyoleg/cryptography/materials/key/EncodableKey {
}

public abstract class algorithms/Ed$PrivateKey$Format : dev/whyoleg/cryptography/materials/key/KeyFormat {
public final fun toString ()Ljava/lang/String;
}

public final class algorithms/Ed$PrivateKey$Format$DER : algorithms/Ed$PrivateKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PrivateKey$Format$DER;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public final class algorithms/Ed$PrivateKey$Format$JWK : algorithms/Ed$PrivateKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PrivateKey$Format$JWK;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public final class algorithms/Ed$PrivateKey$Format$PEM : algorithms/Ed$PrivateKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PrivateKey$Format$PEM;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public final class algorithms/Ed$PrivateKey$Format$RAW : algorithms/Ed$PrivateKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PrivateKey$Format$RAW;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public abstract interface class algorithms/Ed$PublicKey : dev/whyoleg/cryptography/materials/key/EncodableKey {
}

public abstract class algorithms/Ed$PublicKey$Format : dev/whyoleg/cryptography/materials/key/KeyFormat {
public final fun toString ()Ljava/lang/String;
}

public final class algorithms/Ed$PublicKey$Format$DER : algorithms/Ed$PublicKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PublicKey$Format$DER;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public final class algorithms/Ed$PublicKey$Format$JWK : algorithms/Ed$PublicKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PublicKey$Format$JWK;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public final class algorithms/Ed$PublicKey$Format$PEM : algorithms/Ed$PublicKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PublicKey$Format$PEM;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public final class algorithms/Ed$PublicKey$Format$RAW : algorithms/Ed$PublicKey$Format {
public static final field INSTANCE Lalgorithms/Ed$PublicKey$Format$RAW;
public fun equals (Ljava/lang/Object;)Z
public fun getName ()Ljava/lang/String;
public fun hashCode ()I
}

public abstract interface class algorithms/EdDSA : algorithms/Ed {
public static final field Companion Lalgorithms/EdDSA$Companion;
public fun getId ()Ldev/whyoleg/cryptography/CryptographyAlgorithmId;
}

public final class algorithms/EdDSA$Companion : dev/whyoleg/cryptography/CryptographyAlgorithmId {
}

public abstract interface class algorithms/EdDSA$KeyPair : algorithms/Ed$KeyPair {
}

public abstract interface class algorithms/EdDSA$PrivateKey : algorithms/Ed$PrivateKey {
public abstract fun signatureGenerator ()Ldev/whyoleg/cryptography/operations/SignatureGenerator;
}

public abstract interface class algorithms/EdDSA$PublicKey : algorithms/Ed$PublicKey {
public abstract fun signatureVerifier ()Ldev/whyoleg/cryptography/operations/SignatureVerifier;
}

public abstract interface class algorithms/XDH : algorithms/Ed {
public static final field Companion Lalgorithms/XDH$Companion;
public fun getId ()Ldev/whyoleg/cryptography/CryptographyAlgorithmId;
}

public final class algorithms/XDH$Companion : dev/whyoleg/cryptography/CryptographyAlgorithmId {
}

public abstract interface class algorithms/XDH$KeyPair : algorithms/Ed$KeyPair {
}

public abstract interface class algorithms/XDH$PrivateKey : algorithms/Ed$PrivateKey {
public abstract fun sharedSecretGenerator ()Ldev/whyoleg/cryptography/operations/SharedSecretGenerator;
}

public abstract interface class algorithms/XDH$PublicKey : algorithms/Ed$PublicKey {
public abstract fun sharedSecretGenerator ()Ldev/whyoleg/cryptography/operations/SharedSecretGenerator;
}

public final class dev/whyoleg/cryptography/BinarySize : java/lang/Comparable {
public static final field Companion Ldev/whyoleg/cryptography/BinarySize$Companion;
public static final synthetic fun box-impl (I)Ldev/whyoleg/cryptography/BinarySize;
Expand Down Expand Up @@ -253,9 +394,13 @@ public final class dev/whyoleg/cryptography/algorithms/EC$Curve {
}

public final class dev/whyoleg/cryptography/algorithms/EC$Curve$Companion {
public final fun getBrainpoolP256r1-pVITJAk ()Ljava/lang/String;
public final fun getBrainpoolP384r1-pVITJAk ()Ljava/lang/String;
public final fun getBrainpoolP512r1-pVITJAk ()Ljava/lang/String;
public final fun getP256-pVITJAk ()Ljava/lang/String;
public final fun getP384-pVITJAk ()Ljava/lang/String;
public final fun getP521-pVITJAk ()Ljava/lang/String;
public final fun getSecp256k1-pVITJAk ()Ljava/lang/String;
}

public abstract interface class dev/whyoleg/cryptography/algorithms/EC$KeyPair : dev/whyoleg/cryptography/materials/key/Key {
Expand Down
Loading