Class Ed25519

java.lang.Object

public class Ed25519
extends NativeStruct
Wrapper for the native WolfCrypt ed25519 implementation.
Version:
1.0, March 2018
Author:
Daniele Lacamera
  • Constructor Details

  • Method Details

    • releaseNativeStruct

      public void releaseNativeStruct()
      Description copied from class: NativeStruct
      Releases the host data stored in a NativeStruct. This method provides a way to release host data without depending on the garbage collector to get around to releasing it. Derived objects whose native data structures have their own free functions, should be override this method to call that function.
      Overrides:
      releaseNativeStruct in class NativeStruct
    • mallocNativeStruct

      protected long mallocNativeStruct() throws java.lang.OutOfMemoryError
      Specified by:
      mallocNativeStruct in class NativeStruct
      Throws:
      java.lang.OutOfMemoryError
    • init

      protected void init()
    • free

      protected void free()
    • makeKey

      public void makeKey​(Rng rng, int size)
    • checkKey

      public void checkKey()
    • importPrivate

      public void importPrivate​(byte[] privKey, byte[] Key)
    • importPrivateOnly

      public void importPrivateOnly​(byte[] privKey)
    • importPublic

      public void importPublic​(byte[] Key)
    • exportPrivate

      public byte[] exportPrivate()
    • exportPrivateOnly

      public byte[] exportPrivateOnly()
    • exportPublic

      public byte[] exportPublic()
    • sign_msg

      public byte[] sign_msg​(byte[] msg_in)
    • verify_msg

      public boolean verify_msg​(byte[] msg, byte[] signature)