OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CRYPTO_P224_H_ | 5 #ifndef CRYPTO_P224_H_ |
6 #define CRYPTO_P224_H_ | 6 #define CRYPTO_P224_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/string_piece.h" | 11 #include "base/strings/string_piece.h" |
12 #include "crypto/crypto_export.h" | 12 #include "crypto/crypto_export.h" |
13 | 13 |
14 namespace crypto { | 14 namespace crypto { |
15 | 15 |
16 // P224 implements an elliptic curve group, commonly known as P224 and defined | 16 // P224 implements an elliptic curve group, commonly known as P224 and defined |
17 // in FIPS 186-3, section D.2.2. | 17 // in FIPS 186-3, section D.2.2. |
18 namespace p224 { | 18 namespace p224 { |
19 | 19 |
20 // An element of the field (ℤ/pℤ) is represented with 8, 28-bit limbs in | 20 // An element of the field (ℤ/pℤ) is represented with 8, 28-bit limbs in |
21 // little endian order. | 21 // little endian order. |
(...skipping 29 matching lines...) Expand all Loading... |
51 void CRYPTO_EXPORT Add(const Point& a, const Point& b, Point* out); | 51 void CRYPTO_EXPORT Add(const Point& a, const Point& b, Point* out); |
52 | 52 |
53 // Negate calculates out = -a; | 53 // Negate calculates out = -a; |
54 void CRYPTO_EXPORT Negate(const Point& a, Point* out); | 54 void CRYPTO_EXPORT Negate(const Point& a, Point* out); |
55 | 55 |
56 } // namespace p224 | 56 } // namespace p224 |
57 | 57 |
58 } // namespace crypto | 58 } // namespace crypto |
59 | 59 |
60 #endif // CRYPTO_P224_H_ | 60 #endif // CRYPTO_P224_H_ |
OLD | NEW |