Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Side by Side Diff: srtp/crypto/test/rand_gen.c

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Updated to libsrtp 1.5.1 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « srtp/crypto/test/kernel_driver.c ('k') | srtp/crypto/test/rand_gen_soak.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * rand_gen.c 2 * rand_gen.c
3 * 3 *
4 * a random source (random number generator) 4 * a random source (random number generator)
5 * 5 *
6 * David A. McGrew 6 * David A. McGrew
7 * Cisco Systems, Inc. 7 * Cisco Systems, Inc.
8 */ 8 */
9 /* 9 /*
10 * 10 *
(...skipping 25 matching lines...) Expand all
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
41 * OF THE POSSIBILITY OF SUCH DAMAGE. 41 * OF THE POSSIBILITY OF SUCH DAMAGE.
42 * 42 *
43 */ 43 */
44 44
45 45
46 #ifdef HAVE_CONFIG_H
47 #include <config.h>
48 #endif
49
46 #include <stdio.h> /* for printf() */ 50 #include <stdio.h> /* for printf() */
47 #include <unistd.h> /* for getopt() */ 51 #include <unistd.h> /* for getopt() */
48 #include "crypto_kernel.h" 52 #include "crypto_kernel.h"
49 53
50 /* 54 /*
51 * MAX_PRINT_STRING_LEN is defined in datatypes.h, and is the length 55 * MAX_PRINT_STRING_LEN is defined in datatypes.h, and is the length
52 * of the largest hexadecimal string that can be generated by the 56 * of the largest hexadecimal string that can be generated by the
53 * function octet_string_hex_string(). 57 * function octet_string_hex_string().
54 */ 58 */
55 59
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 135
132 status = crypto_kernel_shutdown(); 136 status = crypto_kernel_shutdown();
133 if (status) { 137 if (status) {
134 printf("error: crypto_kernel shutdown failed\n"); 138 printf("error: crypto_kernel shutdown failed\n");
135 exit(1); 139 exit(1);
136 } 140 }
137 141
138 return 0; 142 return 0;
139 } 143 }
140 144
OLDNEW
« no previous file with comments | « srtp/crypto/test/kernel_driver.c ('k') | srtp/crypto/test/rand_gen_soak.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698