|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICryptoContext
A generic cryptographic context suitable for encryption/decryption, wrap/unwrap, and sign/verify operations.
Method Summary | |
---|---|
byte[] |
decrypt(byte[] data)
Decrypts some data. |
byte[] |
encrypt(byte[] data)
Encrypts some data. |
byte[] |
sign(byte[] data)
Computes the signature for some data. |
byte[] |
unwrap(byte[] data)
Unwraps some data. |
boolean |
verify(byte[] data,
byte[] signature)
Verifies the signature for some data. |
byte[] |
wrap(byte[] data)
Wraps some data. |
Method Detail |
---|
byte[] encrypt(byte[] data) throws MslCryptoException
data
- the plaintext.
MslCryptoException
- if there is an error encrypting the data.byte[] decrypt(byte[] data) throws MslCryptoException
data
- the ciphertext.
MslCryptoException
- if there is an error decrypting the data.byte[] wrap(byte[] data) throws MslCryptoException
data
- the plaintext.
MslCryptoException
- if there is an error wrapping the data.byte[] unwrap(byte[] data) throws MslCryptoException
data
- the wrapped data.
MslCryptoException
- if there is an error unwrapping the data.byte[] sign(byte[] data) throws MslCryptoException
data
- the data.
MslCryptoException
- if there is an error computing the signature.boolean verify(byte[] data, byte[] signature) throws MslCryptoException
data
- the data.signature
- the signature.
MslCryptoException
- if there is an error verifying the signature.
|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |