Commit 66186aee authored by Matt Caswell's avatar Matt Caswell
Browse files

Manually reformat aes_x86core.c and add it to the list of files skipped by


openssl-format-source

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent 1ab6c607
Loading
Loading
Loading
Loading
+521 −514
Original line number Diff line number Diff line
@@ -470,7 +470,8 @@ static const u32 rcon[] = {
 * Expand the cipher key into the encryption key schedule.
 */
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
			AES_KEY *key) {
                        AES_KEY *key)
{

    u32 *rk;
    int i = 0;
@@ -571,7 +572,8 @@ int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
 * Expand the cipher key into the decryption key schedule.
 */
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
			 AES_KEY *key) {
                        AES_KEY *key)
{

    u32 *rk;
    int i, j, status;
@@ -652,7 +654,8 @@ int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
 * in and out can overlap
 */
void AES_encrypt(const unsigned char *in, unsigned char *out,
		 const AES_KEY *key) {
                 const AES_KEY *key)
{

    const u32 *rk;
    u32 s0, s1, s2, s3, t[4];
@@ -757,7 +760,8 @@ void AES_encrypt(const unsigned char *in, unsigned char *out,
            Te4[(s2 >> 24)       ] << 24;

        /* now do the linear transform using words */
	{	int i;
        {
            int i;
            u32 r0, r1, r2;

            for (i = 0; i < 4; i++) {
@@ -864,7 +868,8 @@ void AES_encrypt(const unsigned char *in, unsigned char *out,
 * in and out can overlap
 */
void AES_decrypt(const unsigned char *in, unsigned char *out,
		 const AES_KEY *key) {
                 const AES_KEY *key)
{

    const u32 *rk;
    u32 s0, s1, s2, s3, t[4];
@@ -903,7 +908,8 @@ void AES_decrypt(const unsigned char *in, unsigned char *out,
    Td4[(s0 >> 24)       ] << 24;

    /* now do the linear transform using words */ 
	{	int i;
    {
        int i;
        u32 tp1, tp2, tp4, tp8, tp9, tpb, tpd, tpe, m;

        for (i = 0; i < 4; i++) {
@@ -979,7 +985,8 @@ void AES_decrypt(const unsigned char *in, unsigned char *out,
        Td4[(s0 >> 24)       ] << 24;

    /* now do the linear transform using words */ 
	{	int i;
    {
        int i;
        u32 tp1, tp2, tp4, tp8, tp9, tpb, tpd, tpe, m;

        for (i = 0; i < 4; i++) {
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ do
      case `basename $j` in 
	# the list of files that indent is unable to handle correctly
	# that we simply leave alone for manual formatting now
	obj_dat.h|aes_core.c)
	obj_dat.h|aes_core.c|aes_x86core.c)
	  echo "skipping $j"
	  ;;
	*)