Interface V1LocalCryptoProvider

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] encryptedBytes, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)  
      static byte[] doCipher​(int mode, byte[] key, byte[] nonce, byte[] input)  
      byte[] encrypt​(byte[] payload, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)  
      default byte[] nonce​(byte[] payload, byte[] randomBytes)  
    • Method Detail

      • encrypt

        byte[] encrypt​(byte[] payload,
                       byte[] footer,
                       byte[] nonce,
                       javax.crypto.SecretKey sharedSecret)
      • decrypt

        byte[] decrypt​(byte[] encryptedBytes,
                       byte[] footer,
                       byte[] nonce,
                       javax.crypto.SecretKey sharedSecret)
      • nonce

        default byte[] nonce​(byte[] payload,
                             byte[] randomBytes)
      • doCipher

        static byte[] doCipher​(int mode,
                               byte[] key,
                               byte[] nonce,
                               byte[] input)