Examples of SRP6CryptoParams


Examples of com.nimbusds.srp6.SRP6CryptoParams

   *            The large safe prime in radix10
   * @param g
   *            The safe prime generator in radix10
   */
  public SRP6JavascriptServerSessionSHA256(String N, String g) {
    super(new SRP6CryptoParams(fromDecimal(N), fromDecimal(g), SHA_256));
  }
View Full Code Here

Examples of com.nimbusds.srp6.SRP6CryptoParams

   *            The large safe prime in radix10
   * @param g
   *            The safe prime generator in radix10
   */
  public SRP6JavascriptServerSessionSHA1(String N, String g) {
    super(new SRP6CryptoParams(fromDecimal(N), fromDecimal(g), SHA_1));
  }
View Full Code Here

Examples of com.nimbusds.srp6.SRP6CryptoParams

*/
public class JavaVerifierGenerator {
  private final SRP6CryptoParams config;

  public JavaVerifierGenerator(String N, String g){
    config = new SRP6CryptoParams(SRP6JavascriptServerSession.fromDecimal(N), SRP6JavascriptServerSession.fromDecimal(g),
        SRP6JavascriptServerSessionSHA1.SHA_1);
  }
View Full Code Here

Examples of com.nimbusds.srp6.SRP6CryptoParams

   */
  private void generatePasswordVerifier()
    throws IOException {
   
    System.out.println("Initialize verifier generator");
    SRP6CryptoParams config = getConfig("\t");
   
    SRP6VerifierGenerator vGen = new SRP6VerifierGenerator(config);
   
    User user = getUser("");
    System.out.println();
View Full Code Here

Examples of com.nimbusds.srp6.SRP6CryptoParams

   
    // Step 2
   
    System.out.println("Client session step 2");
   
    SRP6CryptoParams config = getConfig("\t");
   
    System.out.print("\tEnter salt 's' (hex): ");
    BigInteger s = readBigInteger();
    System.out.println();
   
View Full Code Here

Examples of com.nimbusds.srp6.SRP6CryptoParams

    System.out.println("*** Nimbus SRP-6a server ***");
    System.out.println();
   
    // Step INIT
    System.out.println("Initialize server session");
    SRP6CryptoParams config = getConfig("\t");
   
    SRP6ServerSession server = new SRP6ServerSession(config);
   
   
    // Step 1
View Full Code Here

Examples of com.nimbusds.srp6.SRP6CryptoParams

   
    System.out.print(prefix + "Enter hash algorithm 'H' [SHA-1]: ");
    String H = readInput("SHA-1");
    System.out.println();
   
    return new SRP6CryptoParams(N, g, H);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.