diff options
| author | tb <> | 2024-10-30 20:00:13 +0000 |
|---|---|---|
| committer | tb <> | 2024-10-30 20:00:13 +0000 |
| commit | cbf960e440aca83f87c69f5104dcb115af4a368d (patch) | |
| tree | 10fdcd8539b097c39e35057c8045bdf331991215 /src/lib/libcrypto/ec | |
| parent | eef4d0f03df908d7a28409f0101fbf50da04174f (diff) | |
| download | openbsd-cbf960e440aca83f87c69f5104dcb115af4a368d.tar.gz openbsd-cbf960e440aca83f87c69f5104dcb115af4a368d.tar.bz2 openbsd-cbf960e440aca83f87c69f5104dcb115af4a368d.zip | |
Expand the introductory comment with references to X9.62 and SEC 1
Diffstat (limited to 'src/lib/libcrypto/ec')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_convert.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ec/ec_convert.c b/src/lib/libcrypto/ec/ec_convert.c index e8f8605c10..cebb02b0e7 100644 --- a/src/lib/libcrypto/ec/ec_convert.c +++ b/src/lib/libcrypto/ec/ec_convert.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_convert.c,v 1.4 2024/10/30 18:21:12 tb Exp $ */ | 1 | /* $OpenBSD: ec_convert.c,v 1.5 2024/10/30 20:00:13 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -70,6 +70,9 @@ | |||
| 70 | #include "ec_local.h" | 70 | #include "ec_local.h" |
| 71 | 71 | ||
| 72 | /* | 72 | /* |
| 73 | * Internal handling of the point conversion octet | ||
| 74 | * (see X9.62, section 4.4.2, SEC 1 section 2.3.3) | ||
| 75 | * | ||
| 73 | * Only the last three bits of the leading octet of a point should be set. | 76 | * Only the last three bits of the leading octet of a point should be set. |
| 74 | * Bits 3 and 2 encode the conversion form for all points except the point | 77 | * Bits 3 and 2 encode the conversion form for all points except the point |
| 75 | * at infinity. In compressed and hybrid form bit 1 indicates if the even | 78 | * at infinity. In compressed and hybrid form bit 1 indicates if the even |
