[#SRP_Calc_server_key]
= SRP&lowbar;Calc&lowbar;server&lowbar;key
:mrdocs:

Compute the SRP server shared secret S &equals; (A&ast;v&circ;u)&circ;b mod N (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;srp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:BIGNUM.adoc[BIGNUM]*
SRP&lowbar;Calc&lowbar;server&lowbar;key(
    xref:BIGNUM.adoc[BIGNUM] const* A,
    xref:BIGNUM.adoc[BIGNUM] const* v,
    xref:BIGNUM.adoc[BIGNUM] const* u,
    xref:BIGNUM.adoc[BIGNUM] const* b,
    xref:BIGNUM.adoc[BIGNUM] const* N);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

Newly allocated shared secret, or NULL on error&period; Caller must free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *A*
| Client public value&period;
| *v*
| User password verifier&period;
| *u*
| Scrambling parameter from SRP&lowbar;Calc&lowbar;u()&period;
| *b*
| Server secret exponent&period;
| *N*
| Safe prime modulus&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
