RECLAIM/OIDC: fix key derivation
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 27 Apr 2019 19:50:57 +0000 (21:50 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Sat, 27 Apr 2019 19:50:57 +0000 (21:50 +0200)
src/reclaim/oidc_helper.c

index 89e0920f000301cd6703190e251b759975f8e99b..167ee1729fc1600ffdd07877344f974950ea010a 100644 (file)
@@ -303,16 +303,16 @@ derive_aes_key (struct GNUNET_CRYPTO_SymmetricSessionKey *key,
                      sizeof (struct GNUNET_CRYPTO_SymmetricSessionKey),
                      ctx_key,
                      strlen (ctx_key),
-                     &key_material,
-                     sizeof (key_material),
+                     key_material,
+                     sizeof (struct GNUNET_HashCode),
                      NULL);
   GNUNET_CRYPTO_kdf (iv,
                      sizeof (
                        struct GNUNET_CRYPTO_SymmetricInitializationVector),
                      ctx_iv,
                      strlen (ctx_iv),
-                     &key_material,
-                     sizeof (key_material),
+                     key_material,
+                     sizeof (struct GNUNET_HashCode),
                      NULL);
 }