@@ -426,6 +426,7 @@ func SerializeEncryptedKeyAEADwithHiddenOption(w io.Writer, pub *PublicKey, ciph
426
426
// key, encrypted to pub.
427
427
// PKESKv6 is used if config.AEAD() is not nil.
428
428
// If config is nil, sensible defaults will be used.
429
+ // Deprecated: Use SerializeEncryptedKeyAEAD instead.
429
430
func SerializeEncryptedKey (w io.Writer , pub * PublicKey , cipherFunc CipherFunction , key []byte , config * Config ) error {
430
431
return SerializeEncryptedKeyAEAD (w , pub , cipherFunc , config .AEAD () != nil , key , config )
431
432
}
@@ -434,6 +435,7 @@ func SerializeEncryptedKey(w io.Writer, pub *PublicKey, cipherFunc CipherFunctio
434
435
// key, encrypted to pub. PKESKv6 is used if config.AEAD() is not nil.
435
436
// The hidden option controls if the packet should be anonymous, i.e., omit key metadata.
436
437
// If config is nil, sensible defaults will be used.
438
+ // Deprecated: Use SerializeEncryptedKeyAEADwithHiddenOption instead.
437
439
func SerializeEncryptedKeyWithHiddenOption (w io.Writer , pub * PublicKey , cipherFunc CipherFunction , key []byte , hidden bool , config * Config ) error {
438
440
return SerializeEncryptedKeyAEADwithHiddenOption (w , pub , cipherFunc , config .AEAD () != nil , key , hidden , config )
439
441
}
0 commit comments