Remove pointless free, and use preferred way of calling d2i_* functions
[openssl.git] / crypto / seed / seed_ecb.c
index e63f5ae14eb944252687633bfd81f6e719da1ff9..937a31b42a8765b54d0973b9620582e4dcea81be 100644 (file)
@@ -7,7 +7,7 @@
  * are met:
  *
  * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer. 
+ *    notice, this list of conditions and the following disclaimer.
  *
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in
 
 #include <openssl/seed.h>
 
-void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out, const SEED_KEY_SCHEDULE *ks, int enc) 
-       {
-       if (enc)
-               SEED_encrypt(in, out, ks);
-       else
-               SEED_decrypt(in, out, ks);
-       }
+void SEED_ecb_encrypt(const unsigned char *in, unsigned char *out,
+                      const SEED_KEY_SCHEDULE *ks, int enc)
+{
+    if (enc)
+        SEED_encrypt(in, out, ks);
+    else
+        SEED_decrypt(in, out, ks);
+}