Class BaseV1LocalCryptoProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] encryptedBytes, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)  
      byte[] encrypt​(byte[] payload, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)  
      protected abstract byte[] hkdfSha384​(javax.crypto.SecretKey sharedSecret, byte[] salt, byte[] info)  
      • Methods inherited from class java.lang.Object

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

      • BaseV1LocalCryptoProvider

        public BaseV1LocalCryptoProvider()
    • Method Detail

      • encrypt

        public byte[] encrypt​(byte[] payload,
                              byte[] footer,
                              byte[] nonce,
                              javax.crypto.SecretKey sharedSecret)
        Specified by:
        encrypt in interface V1LocalCryptoProvider
      • decrypt

        public byte[] decrypt​(byte[] encryptedBytes,
                              byte[] footer,
                              byte[] nonce,
                              javax.crypto.SecretKey sharedSecret)
        Specified by:
        decrypt in interface V1LocalCryptoProvider
      • hkdfSha384

        protected abstract byte[] hkdfSha384​(javax.crypto.SecretKey sharedSecret,
                                             byte[] salt,
                                             byte[] info)