Interface TlsSrp6Client
- Namespace
- Org.BouncyCastle.Tls.Crypto
- Assembly
- BouncyCastle.Cryptography.dll
Basic interface for an SRP-6 client implementation.
public interface TlsSrp6Client
Methods
CalculateSecret(BigInteger)
Generates the secret S given the server's credentials
BigInteger CalculateSecret(BigInteger serverB)
Parameters
serverBBigIntegerThe server's credentials
Returns
- BigInteger
Client's verification message for the server
Exceptions
- IOException
If server's credentials are invalid
GenerateClientCredentials(byte[], byte[], byte[])
Generates client's credentials given the client's salt, identity and password
BigInteger GenerateClientCredentials(byte[] salt, byte[] identity, byte[] password)
Parameters
saltbyte[]The salt used in the client's verifier.
identitybyte[]The user's identity (eg. username)
passwordbyte[]The user's password
Returns
- BigInteger
Client's public value to send to server