mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8171277: Elliptic Curves for Security in Crypto
Implementations of X25519 and X448 key agreement in SunEC Reviewed-by: mullan
This commit is contained in:
parent
f15ab37909
commit
f5a247a85f
28 changed files with 7938 additions and 95 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -34,9 +34,7 @@ package java.security.spec;
|
|||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public class ECGenParameterSpec implements AlgorithmParameterSpec {
|
||||
|
||||
private String name;
|
||||
public class ECGenParameterSpec extends NamedParameterSpec {
|
||||
|
||||
/**
|
||||
* Creates a parameter specification for EC parameter
|
||||
|
@ -44,25 +42,15 @@ public class ECGenParameterSpec implements AlgorithmParameterSpec {
|
|||
* {@code stdName} in order to generate the corresponding
|
||||
* (precomputed) elliptic curve domain parameters. For the
|
||||
* list of supported names, please consult the documentation
|
||||
* of provider whose implementation will be used.
|
||||
* of the provider whose implementation will be used.
|
||||
*
|
||||
* @param stdName the standard name of the to-be-generated EC
|
||||
* domain parameters.
|
||||
* @exception NullPointerException if {@code stdName}
|
||||
* is null.
|
||||
* domain parameters.
|
||||
* @throws NullPointerException if {@code stdName}
|
||||
* is null.
|
||||
*/
|
||||
public ECGenParameterSpec(String stdName) {
|
||||
if (stdName == null) {
|
||||
throw new NullPointerException("stdName is null");
|
||||
}
|
||||
this.name = stdName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the standard or predefined name of the
|
||||
* to-be-generated EC domain parameters.
|
||||
* @return the standard or predefined name.
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
super(stdName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue