diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 11:32:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 11:32:30 +0000 |
commit | 45b5c1f11144bc14fae34c991ae9db89d6ba8913 (patch) | |
tree | f4a2fbe70573e0d9bb56d4ccb8be29fcf0c50c55 /src/fs/fs_publish_ublock.c | |
parent | 05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0 (diff) | |
download | gnunet-45b5c1f11144bc14fae34c991ae9db89d6ba8913.tar.gz gnunet-45b5c1f11144bc14fae34c991ae9db89d6ba8913.zip |
-rename files/symbols from _aes to _symmetric
Diffstat (limited to 'src/fs/fs_publish_ublock.c')
-rw-r--r-- | src/fs/fs_publish_ublock.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/fs_publish_ublock.c b/src/fs/fs_publish_ublock.c index 1c46f0d29..c84b21ba8 100644 --- a/src/fs/fs_publish_ublock.c +++ b/src/fs/fs_publish_ublock.c | |||
@@ -43,8 +43,8 @@ | |||
43 | * @param pub public key to use for key derivation | 43 | * @param pub public key to use for key derivation |
44 | */ | 44 | */ |
45 | static void | 45 | static void |
46 | derive_ublock_encryption_key (struct GNUNET_CRYPTO_AesSessionKey *skey, | 46 | derive_ublock_encryption_key (struct GNUNET_CRYPTO_SymmetricSessionKey *skey, |
47 | struct GNUNET_CRYPTO_AesInitializationVector *iv, | 47 | struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, |
48 | const char *label, | 48 | const char *label, |
49 | const struct GNUNET_CRYPTO_EccPublicSignKey *pub) | 49 | const struct GNUNET_CRYPTO_EccPublicSignKey *pub) |
50 | { | 50 | { |
@@ -77,12 +77,12 @@ GNUNET_FS_ublock_decrypt_ (const void *input, | |||
77 | const char *label, | 77 | const char *label, |
78 | void *output) | 78 | void *output) |
79 | { | 79 | { |
80 | struct GNUNET_CRYPTO_AesInitializationVector iv; | 80 | struct GNUNET_CRYPTO_SymmetricInitializationVector iv; |
81 | struct GNUNET_CRYPTO_AesSessionKey skey; | 81 | struct GNUNET_CRYPTO_SymmetricSessionKey skey; |
82 | 82 | ||
83 | derive_ublock_encryption_key (&skey, &iv, | 83 | derive_ublock_encryption_key (&skey, &iv, |
84 | label, ns); | 84 | label, ns); |
85 | GNUNET_CRYPTO_aes_decrypt (input, input_len, | 85 | GNUNET_CRYPTO_symmetric_decrypt (input, input_len, |
86 | &skey, &iv, | 86 | &skey, &iv, |
87 | output); | 87 | output); |
88 | } | 88 | } |
@@ -167,8 +167,8 @@ GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, | |||
167 | { | 167 | { |
168 | struct GNUNET_FS_PublishUblockContext *uc; | 168 | struct GNUNET_FS_PublishUblockContext *uc; |
169 | struct GNUNET_HashCode query; | 169 | struct GNUNET_HashCode query; |
170 | struct GNUNET_CRYPTO_AesInitializationVector iv; | 170 | struct GNUNET_CRYPTO_SymmetricInitializationVector iv; |
171 | struct GNUNET_CRYPTO_AesSessionKey skey; | 171 | struct GNUNET_CRYPTO_SymmetricSessionKey skey; |
172 | struct GNUNET_CRYPTO_EccPrivateKey *nsd; | 172 | struct GNUNET_CRYPTO_EccPrivateKey *nsd; |
173 | struct GNUNET_CRYPTO_EccPublicSignKey pub; | 173 | struct GNUNET_CRYPTO_EccPublicSignKey pub; |
174 | char *uris; | 174 | char *uris; |
@@ -232,7 +232,7 @@ GNUNET_FS_publish_ublock_ (struct GNUNET_FS_Handle *h, | |||
232 | 232 | ||
233 | /* encrypt ublock */ | 233 | /* encrypt ublock */ |
234 | ub_enc = GNUNET_malloc (size); | 234 | ub_enc = GNUNET_malloc (size); |
235 | GNUNET_CRYPTO_aes_encrypt (&ub_plain[1], | 235 | GNUNET_CRYPTO_symmetric_encrypt (&ub_plain[1], |
236 | ulen + slen + mdsize, | 236 | ulen + slen + mdsize, |
237 | &skey, &iv, | 237 | &skey, &iv, |
238 | &ub_enc[1]); | 238 | &ub_enc[1]); |