File tree Expand file tree Collapse file tree 10 files changed +29
-32
lines changed
src/main/java/org/openziti/android/crypto
src/main/kotlin/org/openziti Expand file tree Collapse file tree 10 files changed +29
-32
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -69,19 +69,16 @@ android {
6969
7070
7171repositories {
72- jcenter()
7372 google()
74- maven { // needed to lazysodium-android
75- url = " https://dl.bintray.com/terl/lazysodium-maven"
76- }
73+ mavenCentral()
7774}
7875
7976dependencies {
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
Original file line number Diff line number Diff line change 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.
1616
1717package 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
2222import org.openziti.crypto.CryptoLoader
2323
2424class AndroidCryptoLoader : CryptoLoader {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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.
1616
1717package 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
2323import java.util.*
2424
2525object Crypto {
Original file line number Diff line number Diff line change 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.
1616
1717package org.openziti.crypto
1818
19- import com.goterl.lazycode. lazysodium.LazySodium
19+ import com.goterl.lazysodium.LazySodium
2020
2121interface CryptoLoader {
2222 fun load (): LazySodium
Original file line number Diff line number Diff line change 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.
1616
1717package 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
2424class JavaCryptoLoader : CryptoLoader {
2525 override fun load (): LazySodium {
Original file line number Diff line number Diff line change 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.
1616
1717package 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
2222import java.security.SecureRandom
2323import java.util.*
2424import java.util.concurrent.atomic.AtomicReference
Original file line number Diff line number Diff line change 1616
1717package 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
2121import kotlinx.coroutines.CancellationException
2222import kotlinx.coroutines.channels.ClosedReceiveChannelException
2323import kotlinx.coroutines.launch
Original file line number Diff line number Diff line change 1717package org.openziti.net
1818
1919import 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
2323import kotlinx.coroutines.*
2424import kotlinx.coroutines.channels.ClosedReceiveChannelException
2525import org.openziti.Errors
You can’t perform that action at this time.
0 commit comments