зеркало из https://github.com/mozilla/pjs.git
Handle AES keys.
This commit is contained in:
Родитель
bfb6472918
Коммит
565b7d4367
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче