Class RsaOaepCipher.Builder
java.lang.Object
cloud.opencode.base.crypto.asymmetric.RsaOaepCipher.Builder
- Enclosing class:
RsaOaepCipher
Builder for RSA-OAEP cipher
RSA-OAEP 密码构建器
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the RSA-OAEP cipher 构建 RSA-OAEP 密码digest(DigestAlgorithm digest) Set the digest algorithm for OAEP 设置 OAEP 的摘要算法label(byte[] label) Set the label for OAEP (optional) 设置 OAEP 的标签(可选)Set the mask generation function 设置掩码生成函数
-
Method Details
-
digest
Set the digest algorithm for OAEP 设置 OAEP 的摘要算法- Parameters:
digest- the digest algorithm- Returns:
- this builder
-
mgf
Set the mask generation function 设置掩码生成函数- Parameters:
mgf- the MGF name (typically "MGF1")- Returns:
- this builder
-
label
Set the label for OAEP (optional) 设置 OAEP 的标签(可选)- Parameters:
label- the label bytes- Returns:
- this builder
-
build
Build the RSA-OAEP cipher 构建 RSA-OAEP 密码- Returns:
- configured RSA-OAEP cipher
-