| Package | Description |
|---|---|
| net.named_data.jndn.security.tpm |
| Modifier and Type | Method and Description |
|---|---|
Blob |
TpmPrivateKey.decrypt(ByteBuffer cipherText)
Call the main decrypt where algorithmType is RsaOaep.
|
Blob |
TpmPrivateKey.decrypt(ByteBuffer cipherText,
EncryptAlgorithmType algorithmType)
Decrypt the cipherText using this private key according the encryption
algorithmType.
|
Blob |
TpmPrivateKey.derivePublicKey()
Get the encoded public key for this private key.
|
static TpmPrivateKey |
TpmPrivateKey.generatePrivateKey(KeyParams keyParams)
Generate a key pair according to keyParams and return a new TpmPrivateKey
with the private key.
|
void |
TpmPrivateKey.loadEncryptedPkcs8(ByteBuffer encoding,
ByteBuffer password)
Load the encrypted private key from a buffer with the PKCS #8 encoding of
the EncryptedPrivateKeyInfo.
|
void |
TpmPrivateKey.loadPkcs1(ByteBuffer encoding)
Load the unencrypted private key from a buffer with the PKCS #1 encoding.
|
void |
TpmPrivateKey.loadPkcs1(ByteBuffer encoding,
KeyType keyType)
Load the unencrypted private key from a buffer with the PKCS #1 encoding.
|
void |
TpmPrivateKey.loadPkcs8(ByteBuffer encoding)
Load the unencrypted private key from a buffer with the PKCS #8 encoding.
|
void |
TpmPrivateKey.loadPkcs8(ByteBuffer encoding,
KeyType keyType)
Load the unencrypted private key from a buffer with the PKCS #8 encoding.
|
Blob |
TpmPrivateKey.sign(ByteBuffer data,
DigestAlgorithm digestAlgorithm)
Sign the data with this private key, returning a signature Blob.
|
Blob |
TpmPrivateKey.toEncryptedPkcs8(ByteBuffer password)
Get the encoded encrypted private key in PKCS #8.
|
Blob |
TpmPrivateKey.toPkcs1()
Get the encoded unencrypted private key in PKCS #1.
|
Blob |
TpmPrivateKey.toPkcs8()
Get the encoded unencrypted private key in PKCS #8.
|
Copyright © 2019. All rights reserved.