Browse Source

fix keystream generation

git.mgm/mediaproxy-ng/github/master
Richard Fuchs 13 years ago
parent
commit
f821646de7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/crypto.c

+ 1
- 1
daemon/crypto.c View File

@ -175,7 +175,7 @@ static void prf_n(str *out, char *key, char *x) {
memcpy(iv, x, 14);
/* iv[14] = iv[15] = 0; := x << 16 */
ZERO(in); /* outputs the key stream */
str_init_len(&in_s, in, 16);
str_init_len(&in_s, in, sizeof(in));
aes_ctr_128(o, &in_s, key, iv);
memcpy(out->s, o, out->len);


Loading…
Cancel
Save