Class RSA


  • public class RSA
    extends java.lang.Object
    Wrapper for the native WolfCrypt RSA implementation, used for examples. This class contains a subset of the WolfCrypt RSA implementation and was written to be used with this package's example RSA 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
      RSA()  
    • Method Summary

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

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

      • RSA

        public RSA()
    • Method Detail

      • doSign

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

        public int doVerify​(java.nio.ByteBuffer sig,
                            long sigSz,
                            java.nio.ByteBuffer out,
                            long outSz,
                            java.nio.ByteBuffer keyDer,
                            long keySz)
      • doEnc

        public int doEnc​(java.nio.ByteBuffer in,
                         long inSz,
                         java.nio.ByteBuffer out,
                         int[] outSz,
                         java.nio.ByteBuffer keyDer,
                         long keySz)
      • doDec

        public int doDec​(java.nio.ByteBuffer in,
                         long inSz,
                         java.nio.ByteBuffer out,
                         long outSz,
                         java.nio.ByteBuffer keyDer,
                         long keySz)