X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=crypto%2Faes%2Faes_wrap.c;h=b7b64d57a4870a4397bca6a8b6e8488562498080;hb=301a6dcd4590fb2f69d08259577e215b4cc3caa3;hp=b30df8883fd01f5578a20fa609e0f6278060ab17;hpb=c6f338657758d5f83c25912bed94ab4fd5058168;p=oweals%2Fopenssl.git diff --git a/crypto/aes/aes_wrap.c b/crypto/aes/aes_wrap.c index b30df8883f..b7b64d57a4 100644 --- a/crypto/aes/aes_wrap.c +++ b/crypto/aes/aes_wrap.c @@ -1,5 +1,6 @@ /* crypto/aes/aes_wrap.c */ -/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL +/* + * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ /* ==================================================================== @@ -10,7 +11,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 @@ -56,15 +57,16 @@ #include int AES_wrap_key(AES_KEY *key, const unsigned char *iv, - unsigned char *out, - const unsigned char *in, unsigned int inlen) - { - return CRYPTO_128_wrap(key, iv, out, in, inlen, (block128_f)AES_encrypt); - } + unsigned char *out, + const unsigned char *in, unsigned int inlen) +{ + return CRYPTO_128_wrap(key, iv, out, in, inlen, (block128_f) AES_encrypt); +} int AES_unwrap_key(AES_KEY *key, const unsigned char *iv, - unsigned char *out, - const unsigned char *in, unsigned int inlen) - { - return CRYPTO_128_unwrap(key, iv, out, in, inlen, (block128_f)AES_decrypt); - } + unsigned char *out, + const unsigned char *in, unsigned int inlen) +{ + return CRYPTO_128_unwrap(key, iv, out, in, inlen, + (block128_f) AES_decrypt); +}