2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright 2008 by the Massachusetts Institute of Technology. 2N/A * All Rights Reserved. 2N/A * Export of this software from the United States of America may 2N/A * require a specific license from the United States Government. 2N/A * It is the responsibility of any person or organization contemplating 2N/A * export to obtain such a license before exporting. 2N/A * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 2N/A * distribute this software and its documentation for any purpose and 2N/A * without fee is hereby granted, provided that the above copyright 2N/A * notice appear in all copies and that both that copyright notice and 2N/A * this permission notice appear in supporting documentation, and that 2N/A * the name of M.I.T. not be used in advertising or publicity pertaining 2N/A * to distribution of the software without specific, written prior 2N/A * permission. Furthermore if you modify this software you must label 2N/A * your software as modified software and not distribute it in such a 2N/A * fashion that it might be confused with the original M.I.T. software. 2N/A * M.I.T. makes no representations about the suitability of 2N/A * this software for any purpose. It is provided "as is" without express 2N/A * or implied warranty. 2N/A return NULL;
/* can't appear twice */ 2N/A * Returns TRUE if, having reached the end of the current buffer, 2N/A * we should pad the rest of the block with zeros. 2N/A /* If the pad_to_boundary flag is unset, return FALSE */ 2N/A /* If we haven't got any data, we need to get some */ 2N/A /* No boundary between adjacent buffers marked for processing */ 2N/A /* Use empty padding since tokens don't indicate the padding length. */ 2N/A * Add in the header length since the header is encrypted along with the 2N/A * data. (arcfour violates this assumption since not all of the header is 2N/A * encrypted, but that's okay since it has no padding. If there is ever an 2N/A * enctype using a similar token format and a block cipher, we will have to 2N/A * move this logic into an enctype-dependent function.)