summaryrefslogtreecommitdiffstats
path: root/crypto/p224.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 01:29:37 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 01:29:37 +0000
commitd9a262df8efd514cb91a99e38fbfd59926d93903 (patch)
treea0c6eed733fb254a9a4dee78b5d675986443d354 /crypto/p224.h
parent023d8247d6efbd4fac3cf9f7bfa8d2204c268c5a (diff)
downloadchromium_src-d9a262df8efd514cb91a99e38fbfd59926d93903.zip
chromium_src-d9a262df8efd514cb91a99e38fbfd59926d93903.tar.gz
chromium_src-d9a262df8efd514cb91a99e38fbfd59926d93903.tar.bz2
net: add low-entropy, shared secret authentication protocol.
BUG=none TEST=crypto_unittests Review URL: http://codereview.chromium.org/8499032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/p224.h')
-rw-r--r--crypto/p224.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/p224.h b/crypto/p224.h
index 0b2aca9..412ca99 100644
--- a/crypto/p224.h
+++ b/crypto/p224.h
@@ -36,6 +36,10 @@ struct CRYPTO_EXPORT Point {
FieldElement x, y, z;
};
+// kScalarBytes is the number of bytes needed to represent an element of the
+// P224 field.
+static const size_t kScalarBytes = 28;
+
// ScalarMult computes *out = in*scalar where scalar is a 28-byte, big-endian
// number.
void CRYPTO_EXPORT ScalarMult(const Point& in, const uint8* scalar, Point* out);