public abstract class TpmKeyHandle extends Object
| Constructor and Description |
|---|
TpmKeyHandle() |
| Modifier and Type | Method and Description |
|---|---|
Blob |
decrypt(ByteBuffer cipherText)
Return the plain text which is decrypted from cipherText using this key.
|
Blob |
derivePublicKey()
Get the encoded public key derived from this key.
|
protected abstract Blob |
doDecrypt(ByteBuffer cipherText) |
protected abstract Blob |
doDerivePublicKey() |
protected abstract Blob |
doSign(DigestAlgorithm digestAlgorithm,
ByteBuffer data) |
Name |
getKeyName() |
void |
setKeyName(Name keyName) |
Blob |
sign(DigestAlgorithm digestAlgorithm,
ByteBuffer data)
Compute a digital signature from the byte buffer using this key with
digestAlgorithm.
|
public final Blob sign(DigestAlgorithm digestAlgorithm, ByteBuffer data) throws TpmBackEnd.Error
digestAlgorithm - The digest algorithm.data - The input byte buffer.TpmBackEnd.Errorpublic final Blob decrypt(ByteBuffer cipherText) throws TpmBackEnd.Error
cipherText - The cipher text byte buffer.TpmBackEnd.Errorpublic final Blob derivePublicKey() throws TpmBackEnd.Error
TpmBackEnd.Errorpublic final void setKeyName(Name keyName)
public final Name getKeyName()
protected abstract Blob doSign(DigestAlgorithm digestAlgorithm, ByteBuffer data) throws TpmBackEnd.Error
TpmBackEnd.Errorprotected abstract Blob doDecrypt(ByteBuffer cipherText) throws TpmBackEnd.Error
TpmBackEnd.Errorprotected abstract Blob doDerivePublicKey() throws TpmBackEnd.Error
TpmBackEnd.ErrorCopyright © 2019. All rights reserved.