Algorithms.java — netty Source File
Architecture documentation for Algorithms.java, a java file in the netty codebase.
Entity Profile
Relationship Graph
Source Code
/*
* Copyright 2024 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.netty.pkitesting;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.GeneralSecurityException;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.Provider;
import java.security.SecureRandom;
import java.security.Signature;
import java.security.spec.AlgorithmParameterSpec;
import java.util.Locale;
final class Algorithms {
private static Provider bouncyCastle;
private Algorithms() {
}
static String oidForAlgorithmName(String algorithmIdentifier) {
// See the Java Security Standard Algorithm Names documentation for names and links to RFCs.
// https://docs.oracle.com/en/java/javase/22/docs/specs/security/standard-names.html#signature-algorithms
switch (algorithmIdentifier.toLowerCase(Locale.ROOT)) {
case "sha256withecdsa":
return "1.2.840.10045.4.3.2";
case "sha384withecdsa":
return "1.2.840.10045.4.3.3";
case "sha256withrsa":
return "1.2.840.113549.1.1.11";
case "sha384withrsa":
return "1.2.840.113549.1.1.12";
case "ed25519":
return "1.3.101.112";
case "ed448":
return "1.3.101.113";
case "ml-dsa-44":
return "2.16.840.1.101.3.4.3.17";
case "ml-dsa-65":
return "2.16.840.1.101.3.4.3.18";
case "ml-dsa-87":
return "2.16.840.1.101.3.4.3.19";
case "slh-dsa-sha2-128s":
return "2.16.840.1.101.3.4.3.20";
case "slh-dsa-sha2-128f":
return "2.16.840.1.101.3.4.3.21";
// ... (81 more lines)
Domain
Subdomains
Classes
Source
Frequently Asked Questions
What does Algorithms.java do?
Algorithms.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Search subdomain.
Where is Algorithms.java in the architecture?
Algorithms.java is located at pkitesting/src/main/java/io/netty/pkitesting/Algorithms.java (domain: Buffer, subdomain: Search, directory: pkitesting/src/main/java/io/netty/pkitesting).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free