@@ -73,7 +73,7 @@ protected DHKEM(short kemid)
7373 this .kpGen .init (new ECKeyGenerationParameters (domainParams , getSecureRandom ()));
7474
7575 break ;
76- case HPKE .kem_P384_SHA348 :
76+ case HPKE .kem_P384_SHA384 :
7777 this .hkdf = new HKDF (HPKE .kdf_HKDF_SHA384 );
7878 domainParams = getDomainParameters ("P-384" );
7979 rawAgreement = new BasicRawAgreement (new ECDHCBasicAgreement ());
@@ -131,7 +131,7 @@ public byte[] SerializePublicKey(AsymmetricKeyParameter key)
131131 switch (kemId )
132132 {
133133 case HPKE .kem_P256_SHA256 :
134- case HPKE .kem_P384_SHA348 :
134+ case HPKE .kem_P384_SHA384 :
135135 case HPKE .kem_P521_SHA512 :
136136 /*
137137 * RFC 9180 7.1.1. For P-256, P-384, and P-521, the SerializePublicKey() function of the KEM performs
@@ -152,7 +152,7 @@ public byte[] SerializePrivateKey(AsymmetricKeyParameter key)
152152 switch (kemId )
153153 {
154154 case HPKE .kem_P256_SHA256 :
155- case HPKE .kem_P384_SHA348 :
155+ case HPKE .kem_P384_SHA384 :
156156 case HPKE .kem_P521_SHA512 :
157157 {
158158 /*
@@ -205,7 +205,7 @@ public AsymmetricKeyParameter DeserializePublicKey(byte[] pkEncoded)
205205 switch (kemId )
206206 {
207207 case HPKE .kem_P256_SHA256 :
208- case HPKE .kem_P384_SHA348 :
208+ case HPKE .kem_P384_SHA384 :
209209 case HPKE .kem_P521_SHA512 :
210210 /*
211211 * RFC 9180 7.1.1. For P-256, P-384, and P-521 [..]. DeserializePublicKey() performs the
@@ -248,7 +248,7 @@ public AsymmetricCipherKeyPair DeserializePrivateKey(byte[] skEncoded, byte[] pk
248248 switch (kemId )
249249 {
250250 case HPKE .kem_P256_SHA256 :
251- case HPKE .kem_P384_SHA348 :
251+ case HPKE .kem_P384_SHA384 :
252252 case HPKE .kem_P521_SHA512 :
253253 /*
254254 * RFC 9180 7.1.2. For P-256, P-384, and P-521 [..]. DeserializePrivateKey() performs the Octet-
@@ -321,7 +321,7 @@ public AsymmetricCipherKeyPair DeriveKeyPair(byte[] ikm)
321321 switch (kemId )
322322 {
323323 case HPKE .kem_P256_SHA256 :
324- case HPKE .kem_P384_SHA348 :
324+ case HPKE .kem_P384_SHA384 :
325325 case HPKE .kem_P521_SHA512 :
326326 {
327327 byte [] dkp_prk = hkdf .LabeledExtract (null , suiteID , "dkp_prk" , ikm );
0 commit comments