keyUpdate

suspend fun keyUpdate(context: ByteArray)(source)

EDHOC_KeyUpdate (RFC 9528 Appendix H): PRK_out becomes EDHOC_KDF( PRK_out, 11, context, hash_length ) and PRK_exporter is derived anew. The old keys are wiped, which is what gives forward secrecy; keys already exported from them are the caller's to delete. Both parties must use the same context.

Throws