< prev index next >

src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/NativeCipher.java

Print this page

        

*** 472,490 **** byte[] key, byte[] iv, int tagLen, byte[] aad); /** * calls ucrypto_encrypt_update(...) or ucrypto_decrypt_update(...) ! * @returns the length of output or if negative, an error status code */ private native static int nativeUpdate(long pContext, boolean encrypt, byte[] in, int inOfs, int inLen, byte[] out, int outOfs); /** * calls ucrypto_encrypt_final(...) or ucrypto_decrypt_final(...) ! * @returns the length of output or if negative, an error status code */ native static int nativeFinal(long pContext, boolean encrypt, byte[] out, int outOfs); protected void ensureInitialized() { --- 472,490 ---- byte[] key, byte[] iv, int tagLen, byte[] aad); /** * calls ucrypto_encrypt_update(...) or ucrypto_decrypt_update(...) ! * @return the length of output or if negative, an error status code */ private native static int nativeUpdate(long pContext, boolean encrypt, byte[] in, int inOfs, int inLen, byte[] out, int outOfs); /** * calls ucrypto_encrypt_final(...) or ucrypto_decrypt_final(...) ! * @return the length of output or if negative, an error status code */ native static int nativeFinal(long pContext, boolean encrypt, byte[] out, int outOfs); protected void ensureInitialized() {
< prev index next >