~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/lib/crypto/crypto_tests/aes-test.c

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 
2
/* lib/crypto/crypto_tests/aes-test.c */
2
3
/*
3
 
 * lib/crypto/aes/aes-test.c
4
 
 *
5
4
 * Copyright (C) 2002 by the Massachusetts Institute of Technology.
6
5
 * All Rights Reserved.
7
6
 *
23
22
 * M.I.T. makes no representations about the suitability of
24
23
 * this software for any purpose.  It is provided "as is" without express
25
24
 * or implied warranty.
26
 
 *
27
 
 *
 
25
 */
 
26
 
 
27
/*
28
28
 * Subset of NIST tests for AES; specifically, the variable-key and
29
29
 * variable-text tests for 128- and 256-bit keys.
30
30
 */
31
31
 
32
32
#include <stdio.h>
33
 
#include "k5-int.h"
 
33
#include "crypto_int.h"
34
34
 
35
35
static char key[32];
36
36
static char plain[16], cipher[16], zero[16];