Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 17 jdk.crypto.ec.jmod - Crypto EC Module
JDK 17 jdk.crypto.ec.jmod is the JMOD file for JDK 17 Crypto EC module.
JDK 17 Crypto EC module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.crypto.ec.jmod.
JDK 17 Crypto EC module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Crypto EC module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.crypto.ec.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/security/ec/ed/EdECOperations.java
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.security.ec.ed;
import sun.security.ec.point.*;
import sun.security.util.math.IntegerModuloP;
import sun.security.util.math.MutableIntegerModuloP;
import java.util.function.Function;
/*
* Base class for Edwards curve ECC implementations.
*/
public abstract class EdECOperations {
// Curve-specific base point multiplication.
public abstract Point basePointMultiply(byte[] s);
// Decode curve-specifics to the affinePoint
public abstract <T extends Throwable>
AffinePoint decodeAffinePoint(Function<String, T> exception,
int xLSB, IntegerModuloP y) throws T;
// Curve specific point from an X,Y point
public abstract ImmutablePoint of(AffinePoint p);
/*
* Generic method for taking two classes implementing MutablePoint to be
* called by the curve-specific setSum()
*/
public MutablePoint setSum(MutablePoint p1, MutablePoint p2) {
MutableIntegerModuloP t1 = p2.getField().get1().mutable();
MutableIntegerModuloP t2 = p2.getField().get1().mutable();
MutableIntegerModuloP t3 = p2.getField().get1().mutable();
return setSum(p1, p2, t1, t2, t3);
}
/*
* Generic method for taking a class implementing MutablePoint with a
* scalar to returning the point product using curve-specific methods.
*/
public MutablePoint setProduct(MutablePoint p1, byte[] s) {
MutablePoint p = p1.mutable();
p1.setValue(getNeutral());
MutablePoint addResult = getNeutral().mutable();
MutableIntegerModuloP t1 = p.getField().get0().mutable();
MutableIntegerModuloP t2 = p.getField().get0().mutable();
MutableIntegerModuloP t3 = p.getField().get0().mutable();
for (int i = 0; i < s.length * 8; i++) {
addResult.setValue(p1);
setSum(addResult, p, t1, t2, t3);
int swap = bitAt(s, i);
p1.conditionalSet(addResult, swap);
setDouble(p, t1, t2);
}
return p1;
}
// Abstract method for constructing the neutral point on the curve
protected abstract ImmutablePoint getNeutral();
// Abstract method for Curve-specific point addition
protected abstract MutablePoint setSum(MutablePoint p1, MutablePoint p2,
MutableIntegerModuloP t1,
MutableIntegerModuloP t2,
MutableIntegerModuloP t3);
// Abstract method for Curve-specific point doubling
protected abstract MutablePoint setDouble(MutablePoint p,
MutableIntegerModuloP t1,
MutableIntegerModuloP t2);
private static int bitAt(byte[] arr, int index) {
int byteIndex = index / 8;
int bitIndex = index % 8;
return (arr[byteIndex] & (1 << bitIndex)) >> bitIndex;
}
}
⏎ sun/security/ec/ed/EdECOperations.java
Or download all of them as a single archive file:
File name: jdk.crypto.ec-17.0.5-src.zip File size: 62834 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.dynalink.jmod - Dynamic Linking Module
2023-10-15, ∼5318🔥, 0💬
Popular Posts:
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
Java Servlet 3.0 Specification API. JAR File Size and Download Location: File name: servlet-api.jar,...
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...