HPKE is now RFC 9180.

See
https://www.ietf.org/rfcdiff?url1=draft-irtf-cfrg-hpke-12.txt&url2=rfc9180.txt
for the diff. It appears to be entirely editorial. The [TestVectors]
citation hasn't change, so I've left the test vectors alone. There is a
diff in the document, but it appears to be purely formatting.

Change-Id: Iee1c4d9a7bf0e7661f756e2ec5c64a570fb29f81
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/51585
Reviewed-by: Adam Langley <agl@google.com>
fips-20220613
David Benjamin 3 years ago committed by Adam Langley
parent 6595ddb354
commit c76da9d46a
  1. 4
      crypto/hpke/hpke.c
  2. 2
      crypto/hpke/translate_test_vectors.py
  3. 2
      include/openssl/hpke.h
  4. 2
      ssl/test/runner/hpke/hpke.go

@ -30,7 +30,7 @@
#include "../internal.h"
// This file implements draft-irtf-cfrg-hpke-12.
// This file implements RFC 9180.
#define MAX_SEED_LEN X25519_PRIVATE_KEY_LEN
#define MAX_SHARED_SECRET_LEN SHA256_DIGEST_LENGTH
@ -115,7 +115,7 @@ static int hpke_labeled_expand(const EVP_MD *hkdf_md, uint8_t *out_key,
// KEM implementations.
// dhkem_extract_and_expand implements the ExtractAndExpand operation in the
// DHKEM construction. See section 4.1 of draft-irtf-cfrg-hpke-12.
// DHKEM construction. See section 4.1 of RFC 9180.
static int dhkem_extract_and_expand(uint16_t kem_id, const EVP_MD *hkdf_md,
uint8_t *out_key, size_t out_len,
const uint8_t *dh, size_t dh_len,

@ -19,7 +19,7 @@
Usage: translate_test_vectors.py TEST_VECTORS_JSON_FILE
The TEST_VECTORS_JSON_FILE is expected to come from the JSON copy of
draft-irtf-cfrg-hpke-12's test vectors, linked from its [TestVectors] citation.
RFC 9180's test vectors, linked from its [TestVectors] citation.
The output is written to "hpke_test_vectors.txt".
"""

@ -30,7 +30,7 @@ extern "C" {
// Hybrid Public Key Encryption (HPKE) enables a sender to encrypt messages to a
// receiver with a public key.
//
// See https://tools.ietf.org/html/draft-irtf-cfrg-hpke-12.
// See RFC 9180.
// Parameters.

@ -14,7 +14,7 @@
// Package hpke implements Hybrid Public Key Encryption (HPKE).
//
// See https://tools.ietf.org/html/draft-irtf-cfrg-hpke-12.
// See RFC 9180.
package hpke
import (

Loading…
Cancel
Save