@@ -72,6 +72,7 @@ using v8::External;
72
72
using v8::FunctionCallbackInfo;
73
73
using v8::FunctionTemplate;
74
74
using v8::HandleScope;
75
+ using v8::Int32;
75
76
using v8::Integer;
76
77
using v8::Isolate;
77
78
using v8::Local;
@@ -84,6 +85,7 @@ using v8::PropertyAttribute;
84
85
using v8::ReadOnly;
85
86
using v8::Signature;
86
87
using v8::String;
88
+ using v8::Uint32;
87
89
using v8::Value;
88
90
89
91
@@ -2698,9 +2700,9 @@ void CipherBase::Init(const FunctionCallbackInfo<Value>& args) {
2698
2700
// represent a valid length at this point.
2699
2701
unsigned int auth_tag_len;
2700
2702
if (args[2 ]->IsUint32 ()) {
2701
- auth_tag_len = args[2 ].As <v8:: Uint32>()->Value ();
2703
+ auth_tag_len = args[2 ].As <Uint32>()->Value ();
2702
2704
} else {
2703
- CHECK (args[2 ]->IsInt32 () && args[2 ].As <v8:: Int32>()->Value () == -1 );
2705
+ CHECK (args[2 ]->IsInt32 () && args[2 ].As <Int32>()->Value () == -1 );
2704
2706
auth_tag_len = kNoAuthTagLength ;
2705
2707
}
2706
2708
@@ -2792,9 +2794,9 @@ void CipherBase::InitIv(const FunctionCallbackInfo<Value>& args) {
2792
2794
// represent a valid length at this point.
2793
2795
unsigned int auth_tag_len;
2794
2796
if (args[3 ]->IsUint32 ()) {
2795
- auth_tag_len = args[3 ].As <v8:: Uint32>()->Value ();
2797
+ auth_tag_len = args[3 ].As <Uint32>()->Value ();
2796
2798
} else {
2797
- CHECK (args[3 ]->IsInt32 () && args[3 ].As <v8:: Int32>()->Value () == -1 );
2799
+ CHECK (args[3 ]->IsInt32 () && args[3 ].As <Int32>()->Value () == -1 );
2798
2800
auth_tag_len = kNoAuthTagLength ;
2799
2801
}
2800
2802
@@ -2998,7 +3000,7 @@ void CipherBase::SetAAD(const FunctionCallbackInfo<Value>& args) {
2998
3000
2999
3001
CHECK_EQ (args.Length (), 2 );
3000
3002
CHECK (args[1 ]->IsInt32 ());
3001
- int plaintext_len = args[1 ].As <v8:: Int32>()->Value ();
3003
+ int plaintext_len = args[1 ].As <Int32>()->Value ();
3002
3004
3003
3005
if (!cipher->SetAAD (Buffer::Data (args[0 ]), Buffer::Length (args[0 ]),
3004
3006
plaintext_len))
0 commit comments