Browse Source

teeny tiny performance fix

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

+ 1
- 1
daemon/crypto.c View File

@ -204,7 +204,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, out->len >= 16 ? 32 : 16);
str_init_len(&in_s, in, out->len > 16 ? 32 : 16);
aes_ctr_128_no_ctx(o, &in_s, key, iv);
memcpy(out->s, o, out->len);


Loading…
Cancel
Save