-
public interface OpenSslAsyncPrivateKeyMethod
-
-
Field Summary
Fields Modifier and Type Field Description static int
SSL_SIGN_ECDSA_SECP256R1_SHA256
static int
SSL_SIGN_ECDSA_SECP384R1_SHA384
static int
SSL_SIGN_ECDSA_SECP521R1_SHA512
static int
SSL_SIGN_ECDSA_SHA1
static int
SSL_SIGN_ED25519
static int
SSL_SIGN_RSA_PKCS1_MD5_SHA1
static int
SSL_SIGN_RSA_PKCS1_SHA1
static int
SSL_SIGN_RSA_PKCS1_SHA256
static int
SSL_SIGN_RSA_PKCS1_SHA384
static int
SSL_SIGN_RSA_PKCS1_SHA512
static int
SSL_SIGN_RSA_PSS_RSAE_SHA256
static int
SSL_SIGN_RSA_PSS_RSAE_SHA384
static int
SSL_SIGN_RSA_PSS_RSAE_SHA512
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty5.util.concurrent.Future<byte[]>
decrypt(SSLEngine engine, byte[] input)
Decrypts the input with the given key and notifies the returnedFuture
with the decrypted bytes.io.netty5.util.concurrent.Future<byte[]>
sign(SSLEngine engine, int signatureAlgorithm, byte[] input)
Signs the input with the given key and notifies the returnedFuture
with the signed bytes.
-
-
-
Field Detail
-
SSL_SIGN_RSA_PKCS1_SHA1
static final int SSL_SIGN_RSA_PKCS1_SHA1
-
SSL_SIGN_RSA_PKCS1_SHA256
static final int SSL_SIGN_RSA_PKCS1_SHA256
-
SSL_SIGN_RSA_PKCS1_SHA384
static final int SSL_SIGN_RSA_PKCS1_SHA384
-
SSL_SIGN_RSA_PKCS1_SHA512
static final int SSL_SIGN_RSA_PKCS1_SHA512
-
SSL_SIGN_ECDSA_SHA1
static final int SSL_SIGN_ECDSA_SHA1
-
SSL_SIGN_ECDSA_SECP256R1_SHA256
static final int SSL_SIGN_ECDSA_SECP256R1_SHA256
-
SSL_SIGN_ECDSA_SECP384R1_SHA384
static final int SSL_SIGN_ECDSA_SECP384R1_SHA384
-
SSL_SIGN_ECDSA_SECP521R1_SHA512
static final int SSL_SIGN_ECDSA_SECP521R1_SHA512
-
SSL_SIGN_RSA_PSS_RSAE_SHA256
static final int SSL_SIGN_RSA_PSS_RSAE_SHA256
-
SSL_SIGN_RSA_PSS_RSAE_SHA384
static final int SSL_SIGN_RSA_PSS_RSAE_SHA384
-
SSL_SIGN_RSA_PSS_RSAE_SHA512
static final int SSL_SIGN_RSA_PSS_RSAE_SHA512
-
SSL_SIGN_ED25519
static final int SSL_SIGN_ED25519
-
SSL_SIGN_RSA_PKCS1_MD5_SHA1
static final int SSL_SIGN_RSA_PKCS1_MD5_SHA1
-
-
Method Detail
-
sign
io.netty5.util.concurrent.Future<byte[]> sign(SSLEngine engine, int signatureAlgorithm, byte[] input)
Signs the input with the given key and notifies the returnedFuture
with the signed bytes.- Parameters:
engine
- theSSLEngine
signatureAlgorithm
- the algorithm to use for signinginput
- the digest itself- Returns:
- the
Future
that will be notified with the signed data (must not benull
) when the operation completes.
-
decrypt
io.netty5.util.concurrent.Future<byte[]> decrypt(SSLEngine engine, byte[] input)
Decrypts the input with the given key and notifies the returnedFuture
with the decrypted bytes.- Parameters:
engine
- theSSLEngine
input
- the input which should be decrypted- Returns:
- the
Future
that will be notified with the decrypted data (must not benull
) when the operation completes.
-
-