diff options
Diffstat (limited to 'plugins/MirOTR/libotr-3.2.0/src/dh.c')
-rw-r--r-- | plugins/MirOTR/libotr-3.2.0/src/dh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/libotr-3.2.0/src/dh.c b/plugins/MirOTR/libotr-3.2.0/src/dh.c index 610c84e143..e23788dd08 100644 --- a/plugins/MirOTR/libotr-3.2.0/src/dh.c +++ b/plugins/MirOTR/libotr-3.2.0/src/dh.c @@ -273,7 +273,7 @@ gcry_error_t otrl_dh_compute_v2_auth_keys(const DH_keypair *our_dh, } sdata[0] = 0x00; gcry_md_hash_buffer(GCRY_MD_SHA256, hashdata, sdata, slen+5); - memmove(sessionid, hashdata, 8); + memcpy(sessionid, hashdata, 8); *sessionidlenp = 8; /* Calculate the encryption keys */ @@ -398,7 +398,7 @@ gcry_error_t otrl_dh_compute_v1_session_id(const DH_keypair *our_dh, } sdata[0] = 0x00; gcry_md_hash_buffer(GCRY_MD_SHA1, hashdata, sdata, slen+5); - memmove(sessionid, hashdata, 20); + memcpy(sessionid, hashdata, 20); *sessionidlenp = 20; /* Which half should be bold? */ |