libaacs | branch: master | npzacs <[email protected]> | Tue May 17 14:50:23 2011 
+0300| [ddd765f6885e8a69706f64def86efd0988fc062e] | committer: npzacs

Fixed key length in crypto_create_host_key_pair()

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=ddd765f6885e8a69706f64def86efd0988fc062e
---

 src/libaacs/crypto.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libaacs/crypto.c b/src/libaacs/crypto.c
index 6dcadf8..0c6601e 100644
--- a/src/libaacs/crypto.c
+++ b/src/libaacs/crypto.c
@@ -501,8 +501,8 @@ void crypto_create_host_key_pair(uint8_t *host_key, uint8_t 
*host_key_point)
     gcry_mpi_t q_y = mpi_new(0);
     _gcry_mpi_ec_get_affine (q_x, q_y, &Q, ctx);
 
-    gcry_mpi_print (GCRYMPI_FMT_USG, host_key_point,      0, NULL, q_x);
-    gcry_mpi_print (GCRYMPI_FMT_USG, host_key_point + 20, 0, NULL, q_y);
+    gcry_mpi_print (GCRYMPI_FMT_USG, host_key_point,      20, NULL, q_x);
+    gcry_mpi_print (GCRYMPI_FMT_USG, host_key_point + 20, 20, NULL, q_y);
 
     /* cleanup */
 

_______________________________________________
libaacs-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to