Skip to content

Commit e45996c

Browse files
authored
update lazysodium to 5.0.1 (#170)
1 parent ec86c91 commit e45996c

File tree

10 files changed

+29
-32
lines changed

10 files changed

+29
-32
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ buildscript {
2828
kotlin: '1.4.32',
2929
coroutines: '1.4.3',
3030
slf4j: '1.7.30',
31-
lazysodium: '4.3.2',
31+
lazysodium: '5.0.1',
3232
jupiter: '5.7.1'
3333
]
3434

ziti-android/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,16 @@ android {
6969

7070

7171
repositories {
72-
jcenter()
7372
google()
74-
maven { // needed to lazysodium-android
75-
url = "https://dl.bintray.com/terl/lazysodium-maven"
76-
}
73+
mavenCentral()
7774
}
7875

7976
dependencies {
8077
api(project(':ziti')){
8178
exclude module:"lazysodium-java"
8279
exclude module:"jna"
8380
}
84-
embed("com.goterl.lazycode:lazysodium-android:${versions.lazysodium}@aar")
81+
embed("com.goterl:lazysodium-android:${versions.lazysodium}@aar")
8582
embed('net.java.dev.jna:jna:5.7.0@aar')
8683

8784
implementation deps.kotlin

ziti-android/src/main/java/org/openziti/android/crypto/AndroidCryptoLoader.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2020 NetFoundry, Inc.
2+
* Copyright (c) 2018-2021 NetFoundry, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,9 +16,9 @@
1616

1717
package org.openziti.android.crypto
1818

19-
import com.goterl.lazycode.lazysodium.LazySodium
20-
import com.goterl.lazycode.lazysodium.LazySodiumAndroid
21-
import com.goterl.lazycode.lazysodium.SodiumAndroid
19+
import com.goterl.lazysodium.LazySodium
20+
import com.goterl.lazysodium.LazySodiumAndroid
21+
import com.goterl.lazysodium.SodiumAndroid
2222
import org.openziti.crypto.CryptoLoader
2323

2424
class AndroidCryptoLoader: CryptoLoader {

ziti/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies {
4444
implementation('io.dropwizard.metrics:metrics-core:4.1.19')
4545
implementation('org.bouncycastle:bcpkix-jdk15to18:1.68')
4646

47-
implementation("com.goterl.lazycode:lazysodium-java:${versions.lazysodium}") {
47+
implementation("com.goterl:lazysodium-java:${versions.lazysodium}") {
4848
exclude module: 'slf4j-api'
4949
}
5050

ziti/src/main/kotlin/org/openziti/crypto/Crypto.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2020 NetFoundry, Inc.
2+
* Copyright (c) 2018-2021 NetFoundry, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,10 +16,10 @@
1616

1717
package org.openziti.crypto
1818

19-
import com.goterl.lazycode.lazysodium.LazySodium
20-
import com.goterl.lazycode.lazysodium.utils.Key
21-
import com.goterl.lazycode.lazysodium.utils.KeyPair
22-
import com.goterl.lazycode.lazysodium.utils.SessionPair
19+
import com.goterl.lazysodium.LazySodium
20+
import com.goterl.lazysodium.utils.Key
21+
import com.goterl.lazysodium.utils.KeyPair
22+
import com.goterl.lazysodium.utils.SessionPair
2323
import java.util.*
2424

2525
object Crypto {

ziti/src/main/kotlin/org/openziti/crypto/CryptoLoader.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2020 NetFoundry, Inc.
2+
* Copyright (c) 2018-2021 NetFoundry, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616

1717
package org.openziti.crypto
1818

19-
import com.goterl.lazycode.lazysodium.LazySodium
19+
import com.goterl.lazysodium.LazySodium
2020

2121
interface CryptoLoader {
2222
fun load(): LazySodium

ziti/src/main/kotlin/org/openziti/crypto/JavaCryptoLoader.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2020 NetFoundry, Inc.
2+
* Copyright (c) 2018-2021 NetFoundry, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,10 +16,10 @@
1616

1717
package org.openziti.crypto
1818

19-
import com.goterl.lazycode.lazysodium.LazySodium
20-
import com.goterl.lazycode.lazysodium.LazySodiumJava
21-
import com.goterl.lazycode.lazysodium.SodiumJava
22-
import com.goterl.lazycode.lazysodium.utils.LibraryLoader
19+
import com.goterl.lazysodium.LazySodium
20+
import com.goterl.lazysodium.LazySodiumJava
21+
import com.goterl.lazysodium.SodiumJava
22+
import com.goterl.lazysodium.utils.LibraryLoader
2323

2424
class JavaCryptoLoader: CryptoLoader {
2525
override fun load(): LazySodium {

ziti/src/main/kotlin/org/openziti/crypto/StreamImpl.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018-2020 NetFoundry, Inc.
2+
* Copyright (c) 2018-2021 NetFoundry, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,9 +16,9 @@
1616

1717
package org.openziti.crypto
1818

19-
import com.goterl.lazycode.lazysodium.interfaces.SecretStream
20-
import com.goterl.lazycode.lazysodium.utils.Key
21-
import com.goterl.lazycode.lazysodium.utils.SessionPair
19+
import com.goterl.lazysodium.interfaces.SecretStream
20+
import com.goterl.lazysodium.utils.Key
21+
import com.goterl.lazysodium.utils.SessionPair
2222
import java.security.SecureRandom
2323
import java.util.*
2424
import java.util.concurrent.atomic.AtomicReference

ziti/src/main/kotlin/org/openziti/net/ZitiServerSocketChannel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package org.openziti.net
1818

19-
import com.goterl.lazycode.lazysodium.utils.Key
20-
import com.goterl.lazycode.lazysodium.utils.KeyPair
19+
import com.goterl.lazysodium.utils.Key
20+
import com.goterl.lazysodium.utils.KeyPair
2121
import kotlinx.coroutines.CancellationException
2222
import kotlinx.coroutines.channels.ClosedReceiveChannelException
2323
import kotlinx.coroutines.launch

ziti/src/main/kotlin/org/openziti/net/ZitiSocketChannel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
package org.openziti.net
1818

1919
import com.google.gson.Gson
20-
import com.goterl.lazycode.lazysodium.utils.Key
21-
import com.goterl.lazycode.lazysodium.utils.KeyPair
22-
import com.goterl.lazycode.lazysodium.utils.SessionPair
20+
import com.goterl.lazysodium.utils.Key
21+
import com.goterl.lazysodium.utils.KeyPair
22+
import com.goterl.lazysodium.utils.SessionPair
2323
import kotlinx.coroutines.*
2424
import kotlinx.coroutines.channels.ClosedReceiveChannelException
2525
import org.openziti.Errors

0 commit comments

Comments
 (0)