Class ECC


  • public class ECC
    extends java.lang.Object
    Wrapper for the native WolfCrypt ECC implementation, used for examples. This class contains a subset of the WolfCrypt ECC implementation and was written to be used with this package's example ECC public key callbacks. Usage can be found in examples/Client.java and examples/Server.java.
    Version:
    1.0, August 2013
    Author:
    wolfSSL
    • Constructor Summary

      Constructors 
      Constructor Description
      ECC()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doSign​(java.nio.ByteBuffer in, long inSz, java.nio.ByteBuffer out, long[] outSz, java.nio.ByteBuffer key, long keySz)  
      int doVerify​(java.nio.ByteBuffer sig, long sigSz, java.nio.ByteBuffer hash, long hashLen, java.nio.ByteBuffer keyDer, long keySz, int[] result)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ECC

        public ECC()
    • Method Detail

      • doVerify

        public int doVerify​(java.nio.ByteBuffer sig,
                            long sigSz,
                            java.nio.ByteBuffer hash,
                            long hashLen,
                            java.nio.ByteBuffer keyDer,
                            long keySz,
                            int[] result)
      • doSign

        public int doSign​(java.nio.ByteBuffer in,
                          long inSz,
                          java.nio.ByteBuffer out,
                          long[] outSz,
                          java.nio.ByteBuffer key,
                          long keySz)