commit 53fa99fd3746a17e14bddad9ac4c22dc9ac62240 parent a168b4ec790f898e7f260ee64658b35639020a09 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Tue, 26 Nov 2019 14:08:38 +0100 encrypt with the right key Diffstat:
| M | nexus/src/main/kotlin/Main.kt | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/Main.kt b/nexus/src/main/kotlin/Main.kt @@ -919,8 +919,8 @@ fun main() { subscriber!!.bankEncryptionPublicKey = SerialBlob( CryptoUtil.loadRsaPublicKeyFromComponents( - data.authenticationPubKeyInfo.pubKeyValue.rsaKeyValue.modulus, - data.authenticationPubKeyInfo.pubKeyValue.rsaKeyValue.exponent + data.encryptionPubKeyInfo.pubKeyValue.rsaKeyValue.modulus, + data.encryptionPubKeyInfo.pubKeyValue.rsaKeyValue.exponent ).encoded ) }