-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.phpstorm.meta.php
75 lines (74 loc) · 1.8 KB
/
.phpstorm.meta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/*
* This file is part of Aplus Framework Crypto Library.
*
* (c) Natan Felles <natanfelles@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPSTORM_META;
registerArgumentsSet(
'base64_variants',
\SODIUM_BASE64_VARIANT_ORIGINAL,
\SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING,
\SODIUM_BASE64_VARIANT_URLSAFE,
\SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING,
);
registerArgumentsSet(
'generichash_bytes',
\SODIUM_CRYPTO_GENERICHASH_BYTES,
\SODIUM_CRYPTO_GENERICHASH_BYTES_MAX,
\SODIUM_CRYPTO_GENERICHASH_BYTES_MIN,
);
registerArgumentsSet(
'password_limits',
\Framework\Crypto\Password::LIMIT_INTERACTIVE,
\Framework\Crypto\Password::LIMIT_MODERATE,
\Framework\Crypto\Password::LIMIT_SENSITIVE,
);
expectedArguments(
\Framework\Crypto\GenericHash::__construct(),
1,
argumentsSet('generichash_bytes')
);
expectedArguments(
\Framework\Crypto\Password::hash(),
1,
argumentsSet('password_limits')
);
expectedArguments(
\Framework\Crypto\Password::hash(),
2,
argumentsSet('password_limits')
);
expectedArguments(
\Framework\Crypto\Password::needsRehash(),
1,
argumentsSet('password_limits')
);
expectedArguments(
\Framework\Crypto\Password::needsRehash(),
2,
argumentsSet('password_limits')
);
expectedArguments(
\Framework\Crypto\Password::setMemLimit(),
0,
argumentsSet('password_limits')
);
expectedArguments(
\Framework\Crypto\Password::setOpsLimit(),
0,
argumentsSet('password_limits')
);
expectedArguments(
\Framework\Crypto\Utils::base642bin(),
1,
argumentsSet('base64_variants')
);
expectedArguments(
\Framework\Crypto\Utils::bin2base64(),
1,
argumentsSet('base64_variants')
);