org.ccnx.ccn.impl.security.crypto.KDFContentKeys Class Reference
A subclass of EncryptedIVStaticContentKeys that uses the methods from that class to derive a per-segment key and IV from a master seed, that itself is derived from content name and publisher information (plus a text label) using the key derivation function described in KeyDerivationFunction.
More...
List of all members.
Public Member Functions |
| KDFContentKeys (String encryptionAlgorithm, byte[] masterKey, String label) throws NoSuchAlgorithmException, NoSuchPaddingException |
| EncryptedIVStaticContentKeys constructor.
|
| KDFContentKeys (byte[] masterKey, String label) throws NoSuchAlgorithmException, NoSuchPaddingException |
| Create a EncryptedIVStaticContentKeys with the default algorithm.
|
| KDFContentKeys (String encryptionAlgorithm, Key masterKey, String label) throws NoSuchAlgorithmException, NoSuchPaddingException |
| KDFContentKeys constructor.
|
| KDFContentKeys (KDFContentKeys other) |
| KDFContentKeys (ContentKeys other, String label) |
KDFContentKeys | clone () |
String | getLabel () |
void | setLabel (String newLabel) |
Static Public Member Functions |
static synchronized ContentKeys | generateRandomKeys (String label) throws NoSuchAlgorithmException, NoSuchPaddingException |
| Create a set of random encryption/decryption keys using the default algorithm.
|
Protected Member Functions |
synchronized KeyAndIV | getKeyAndIVForContent (ContentName contentName, PublisherPublicKeyDigest publisher, long segmentNumber) throws InvalidKeyException, ContentEncodingException |
Protected Attributes |
String | _label |
Detailed Description
A subclass of EncryptedIVStaticContentKeys that uses the methods from that class to derive a per-segment key and IV from a master seed, that itself is derived from content name and publisher information (plus a text label) using the key derivation function described in KeyDerivationFunction.
Constructor & Destructor Documentation
org.ccnx.ccn.impl.security.crypto.KDFContentKeys.KDFContentKeys |
( |
String |
encryptionAlgorithm, |
|
|
byte[] |
masterKey, |
|
|
String |
label | |
|
) |
| | throws NoSuchAlgorithmException, NoSuchPaddingException |
EncryptedIVStaticContentKeys constructor.
- Parameters:
-
| encryptionAlgorithm | (e.g. AES/CTR/NoPadding) the encryption algorithm to use. First component of algorithm should be the algorithm associated with the key. |
| key | key material to be used |
| ivctr | iv or counter material to be used with specified algorithm |
- Exceptions:
-
| NoSuchPaddingException | |
| NoSuchAlgorithmException | |
org.ccnx.ccn.impl.security.crypto.KDFContentKeys.KDFContentKeys |
( |
byte[] |
masterKey, |
|
|
String |
label | |
|
) |
| | throws NoSuchAlgorithmException, NoSuchPaddingException |
Member Function Documentation
static synchronized ContentKeys org.ccnx.ccn.impl.security.crypto.KDFContentKeys.generateRandomKeys |
( |
String |
label |
) |
throws NoSuchAlgorithmException, NoSuchPaddingException [static] |
Create a set of random encryption/decryption keys using the default algorithm.
- Returns:
- a randomly-generated set of keys and IV that can be used for encryption
- Exceptions:
-
| NoSuchPaddingException | |
| NoSuchAlgorithmException | |
The documentation for this class was generated from the following file:
- src/org/ccnx/ccn/impl/security/crypto/KDFContentKeys.java