> Also, I take it that pub_key and pub_key_len are the buffers into where the
> key is written. The current descriptions of the parameters don't really
> explain that at all. Currently it says:
>
>  @param dh a Diffie-Hellmann context
>  @param pub_key public key
>
>  @param pub_key_len length of the public key
>
> Does that mean that I should already have the public key in pub_key, and dh
> is just any context?

Yes, it's required to already have the pub_key initialized in the
given dh context.

>
> Wouldn't this be more descriptive?

Indeed, this description is more accurate.

>
>  @param dh the Diffie-Hellmann context, containing the public key to write
>  @param buf the buffer where the public key is written
>  @param len the length of the buffer
>
> Then it is much clearer what their roles actually are with respect to this
> function.
>
> // Martin
>
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel



-- 
Best regards,
Samuel Pitoiset.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to