diff --git a/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedEncryptionSession.kt b/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedEncryptionSession.kt index db42e135f28..0e6cb77fa42 100644 --- a/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedEncryptionSession.kt +++ b/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedEncryptionSession.kt @@ -34,7 +34,7 @@ class AuthenticatedEncryptionSession(override val sessionId: String, private val outboundNonce: ByteArray, private val inboundSecretKey: SecretKey, private val inboundNonce: ByteArray, - val maxMessageSize: Int): Session, SerialisableSessionData { + val maxMessageSize: Int): Session { private val provider = BouncyCastleProvider.PROVIDER_NAME private val encryptionCipher = Cipher.getInstance(CIPHER_ALGO, provider) diff --git a/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedSession.kt b/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedSession.kt index f7ef41c3700..3e75e52422e 100644 --- a/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedSession.kt +++ b/libs/p2p-crypto/src/main/kotlin/net/corda/p2p/crypto/protocol/api/AuthenticatedSession.kt @@ -24,7 +24,7 @@ import kotlin.concurrent.withLock class AuthenticatedSession(override val sessionId: String, private val outboundSecretKey: SecretKey, private val inboundSecretKey: SecretKey, - val maxMessageSize: Int): Session, SerialisableSessionData { + val maxMessageSize: Int): Session { private val provider = BouncyCastleProvider.PROVIDER_NAME private val generationHMac = Mac.getInstance(HMAC_ALGO, provider).apply {