diff options
| author | tb <> | 2024-12-06 05:13:35 +0000 |
|---|---|---|
| committer | tb <> | 2024-12-06 05:13:35 +0000 |
| commit | 023d61e5240ed3937924bdf25edca29d361a1017 (patch) | |
| tree | 2bca40b795957a719ed899da2f7eb8d295af41d6 /src | |
| parent | ec50a547d57fc5452ee5d0fe83af3f5b8dfecf79 (diff) | |
| download | openbsd-023d61e5240ed3937924bdf25edca29d361a1017.tar.gz openbsd-023d61e5240ed3937924bdf25edca29d361a1017.tar.bz2 openbsd-023d61e5240ed3937924bdf25edca29d361a1017.zip | |
ec_asn1: update a comment to match reality
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c index 7d2243db0c..98eec5134a 100644 --- a/src/lib/libcrypto/ec/ec_asn1.c +++ b/src/lib/libcrypto/ec/ec_asn1.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_asn1.c,v 1.108 2024/12/06 04:35:03 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1.c,v 1.109 2024/12/06 05:13:35 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -1210,7 +1210,7 @@ ec_key_set_private_key(EC_KEY *ec_key, const ASN1_OCTET_STRING *aos) | |||
| 1210 | /* | 1210 | /* |
| 1211 | * XXX - Sec 1, C.4 requires that this octet string be padded to the | 1211 | * XXX - Sec 1, C.4 requires that this octet string be padded to the |
| 1212 | * byte length of the group's order. This can't be enforced because | 1212 | * byte length of the group's order. This can't be enforced because |
| 1213 | * i2d_ECPrivateKey() produces a semi-compatible ad hoc format. | 1213 | * i2d_ECPrivateKey() used to produce a semi-compatible ad hoc format. |
| 1214 | */ | 1214 | */ |
| 1215 | if ((priv_key = BN_bin2bn(aos->data, aos->length, NULL)) == NULL) | 1215 | if ((priv_key = BN_bin2bn(aos->data, aos->length, NULL)) == NULL) |
| 1216 | goto err; | 1216 | goto err; |
