Handle AES keys.
git-svn-id: svn://10.0.0.236/trunk@131168 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -189,6 +189,24 @@ final class KeyType {
|
||||
EncryptionAlgorithm.DES3_CBC,
|
||||
EncryptionAlgorithm.DES3_CBC_PAD
|
||||
},
|
||||
"DESede"
|
||||
);
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
static public final KeyType
|
||||
AES = new KeyType(new Algorithm[]
|
||||
{
|
||||
KeyWrapAlgorithm.AES_ECB,
|
||||
KeyWrapAlgorithm.AES_CBC,
|
||||
KeyWrapAlgorithm.AES_CBC_PAD,
|
||||
EncryptionAlgorithm.AES_128_ECB,
|
||||
EncryptionAlgorithm.AES_128_CBC,
|
||||
EncryptionAlgorithm.AES_192_ECB,
|
||||
EncryptionAlgorithm.AES_192_CBC,
|
||||
EncryptionAlgorithm.AES_256_ECB,
|
||||
EncryptionAlgorithm.AES_256_CBC,
|
||||
EncryptionAlgorithm.AES_CBC_PAD,
|
||||
},
|
||||
"DES"
|
||||
);
|
||||
|
||||
|
||||
@@ -114,6 +114,7 @@ PR_BEGIN_EXTERN_C
|
||||
#define RC4_KEYTYPE_FIELD "RC4"
|
||||
#define RC2_KEYTYPE_FIELD "RC2"
|
||||
#define SHA1_HMAC_KEYTYPE_FIELD "SHA1_HMAC"
|
||||
#define AES_KEYTYPE_FIELD "AES"
|
||||
|
||||
/*
|
||||
* NativeProxy
|
||||
|
||||
Reference in New Issue
Block a user