From d8144ef38f7e18230349100bbdee1da4c723fd94 Mon Sep 17 00:00:00 2001
From: Andreas Schultz
Date: Wed, 12 Sep 2012 20:57:01 +0200
Subject: CRYPTO: add support for RFC-2945 SRP-3 and RFC-5054 SRP-6a
authentication
---
lib/crypto/doc/src/crypto.xml | 88 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 87 insertions(+), 1 deletion(-)
(limited to 'lib/crypto/doc/src/crypto.xml')
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index 6b9b2ef207..d4224e773c 100755
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -973,7 +973,17 @@ Mpint() = >]]>
using the crypto library.
-
+
+ mod_exp_prime(N, P, M) -> Result
+ Computes the function: N^P mod M
+
+ N, P, M = binary()
+ Result = binary() | error
+
+
+ Computes the function N^P mod M.
+
+
rsa_sign(DataOrDigest, Key) -> Signature
rsa_sign(DigestType, DataOrDigest, Key) -> Signature
@@ -1256,6 +1266,82 @@ Mpint() = >]]>
+
+ srp_value_B(Multiplier, Verifier, Generator, Exponent, Prime) -> ValueB
+ Computes the SRP function: B = k*v + g^b % N
+
+ Verifier (v), Generator (g), Exponent (b), Prime (N), ValueB (B) = binary()
+ Multiplier (k) = integer() | binary()
+
+
+ Computes the SRP value B according to RFC-2945, Sect. 3 and RFC-5054, Sect. 2.5.3
+ B = k*v + g^b % N
+
+
+
+
+ srp_client_secret(A, U, B, Multiplier, Generator, Exponent, Prime) -> Secret
+ Computes the SRP client secret
+
+ A (a), U (u), B, Multiplier (k), Generator (g), Exponent (x), Prime (N), Secret = binary()
+ Multiplier (k) = integer() | binary()
+
+
+ Computes the SRP client secret according to RFC-2945, Sect. 3 and RFC-5054, Sect. 2.6
+ Secret = (B - (k * g^x)) ^ (a + (u * x)) % N
+
+
+
+
+ srp_server_secret(Verifier, B, U, A, Prime) -> Secret
+ Computes the SRP host secret
+
+ Verifier (v), B (b), U (u), A, Prime (N), Secret = binary()
+
+
+ Computes the SRP host secret according to RFC-2945, Sect. 3 and RFC-5054, Sect. 2.6
+ Secret = (A * v^u) ^ b % N
+
+
+
+
+ srp3_value_u(B) -> Result
+ Computes the SRP3-SHA value u
+
+ B = binary()
+ Result = integer()
+
+
+ Computes the SRP-3 value u according to RFC-2945, Sect. 3
+
+
+
+
+
+ srp6_value_u(A, B, Prime) -> Result
+ Computes the SRP6a value u as u = SHA1(PAD(A) | PAD(B))
+
+ A, B, Prime = binary()
+ Result = integer()
+
+
+ Computes the SRP-6 value u according to RFC-5054, Sect. 2.6
+
+
+
+
+
+ srp6a_multiplier(Generator, Prime) -> Result
+ Computes the SRP-SHA function: k = SHA1(N | PAD(g))
+
+ Generator, Prime = binary()
+ Result = integer()
+
+
+ Computes the SRP-6a function SHA1(N | PAD(g)) as the multiplier
+
+
+
exor(Data1, Data2) -> Result
--
cgit v1.2.3