/** * Extended unwrap method for multiple source and destination buffers. * * @param engine the target engine for the unwrap * @param srcs the source buffers * @param dsts the destination buffers * @return the result of the unwrap operation * @throws SSLException thrown if an SSL error occurred */ public static SSLEngineResult unwrap(SSLEngine engine, final ByteBuffer[] srcs, final ByteBuffer[] dsts) throws SSLException { return toConscrypt(engine).unwrap(srcs, dsts); }
/** * Extended unwrap method for multiple source and destination buffers. * * @param engine the target engine for the unwrap * @param srcs the source buffers * @param dsts the destination buffers * @return the result of the unwrap operation * @throws SSLException thrown if an SSL error occurred */ public static SSLEngineResult unwrap(SSLEngine engine, final ByteBuffer[] srcs, final ByteBuffer[] dsts) throws SSLException { return toConscrypt(engine).unwrap(srcs, dsts); }
/** * Exteneded unwrap method for multiple source and destination buffers. * * @param engine the target engine for the unwrap. * @param srcs the source buffers * @param srcsOffset the offset in the {@code srcs} array of the first source buffer * @param srcsLength the number of source buffers starting at {@code srcsOffset} * @param dsts the destination buffers * @param dstsOffset the offset in the {@code dsts} array of the first destination buffer * @param dstsLength the number of destination buffers starting at {@code dstsOffset} * @return the result of the unwrap operation * @throws SSLException thrown if an SSL error occurred */ public static SSLEngineResult unwrap(SSLEngine engine, final ByteBuffer[] srcs, int srcsOffset, final int srcsLength, final ByteBuffer[] dsts, final int dstsOffset, final int dstsLength) throws SSLException { return toConscrypt(engine).unwrap( srcs, srcsOffset, srcsLength, dsts, dstsOffset, dstsLength); }
/** * Exteneded unwrap method for multiple source and destination buffers. * * @param engine the target engine for the unwrap. * @param srcs the source buffers * @param srcsOffset the offset in the {@code srcs} array of the first source buffer * @param srcsLength the number of source buffers starting at {@code srcsOffset} * @param dsts the destination buffers * @param dstsOffset the offset in the {@code dsts} array of the first destination buffer * @param dstsLength the number of destination buffers starting at {@code dstsOffset} * @return the result of the unwrap operation * @throws SSLException thrown if an SSL error occurred */ public static SSLEngineResult unwrap(SSLEngine engine, final ByteBuffer[] srcs, int srcsOffset, final int srcsLength, final ByteBuffer[] dsts, final int dstsOffset, final int dstsLength) throws SSLException { return toConscrypt(engine).unwrap( srcs, srcsOffset, srcsLength, dsts, dstsOffset, dstsLength); }