Diffstat (limited to 'frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html b/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html index ba842a9..5da2327 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html | |||
@@ -1,54 +1,52 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
26 | <html> | 24 | <html> |
27 | <head> | 25 | <head> |
28 | <script type="text/javascript" src="../../../../js/MochiKit/MochiKit.js"></script> | 26 | <script type="text/javascript" src="../../../../js/MochiKit/MochiKit.js"></script> |
29 | <script type="text/javascript" src="../../../SimpleTest/SimpleTest.js"></script> | 27 | <script type="text/javascript" src="../../../SimpleTest/SimpleTest.js"></script> |
30 | <link rel="stylesheet" type="text/css" href="../../../SimpleTest/test.css"> | 28 | <link rel="stylesheet" type="text/css" href="../../../SimpleTest/test.css"> |
31 | 29 | ||
32 | <script type='text/javascript' src='../../../../js/Clipperz/YUI/Utils.js'></script> | 30 | <script type='text/javascript' src='../../../../js/Clipperz/YUI/Utils.js'></script> |
33 | <script type='text/javascript' src='../../../../js/Clipperz/YUI/DomHelper.js'></script> | 31 | <script type='text/javascript' src='../../../../js/Clipperz/YUI/DomHelper.js'></script> |
34 | <script type='text/javascript' src='../../../../js/Clipperz/Base.js'></script> | 32 | <script type='text/javascript' src='../../../../js/Clipperz/Base.js'></script> |
35 | <script type='text/javascript' src='../../../../js/Clipperz/ByteArray.js'></script> | 33 | <script type='text/javascript' src='../../../../js/Clipperz/ByteArray.js'></script> |
36 | 34 | ||
37 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/BigInt.js'></script> | 35 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/BigInt.js'></script> |
38 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/Base.js'></script> | 36 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/Base.js'></script> |
39 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/SHA.js'></script> | 37 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/SHA.js'></script> |
40 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/AES.js'></script> | 38 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/AES.js'></script> |
41 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/PRNG.js'></script> | 39 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/PRNG.js'></script> |
42 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/SRP.js'></script> | 40 | <script type='text/javascript' src='../../../../js/Clipperz/Crypto/SRP.js'></script> |
43 | </head> | 41 | </head> |
44 | <body> | 42 | <body> |
45 | <pre id="test"> | 43 | <pre id="test"> |
46 | <script type="text/javascript"> | 44 | <script type="text/javascript"> |
47 | hashString = function(aValue) { | 45 | hashString = function(aValue) { |
48 | return Clipperz.Crypto.SHA.sha256(new Clipperz.ByteArray(aValue)).toHexString().substring(2) | 46 | return Clipperz.Crypto.SHA.sha256(new Clipperz.ByteArray(aValue)).toHexString().substring(2) |
49 | } | 47 | } |
50 | try { | 48 | try { |
51 | varusername; | 49 | varusername; |
52 | varpassphrase; | 50 | varpassphrase; |
53 | 51 | ||
54 | var C; | 52 | var C; |