Make id of tck public
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Raffaele Mignone 2020-06-29 18:53:54 +02:00
parent 48407f7ebd
commit 190c7f5346
Signed by: norangebit
GPG Key ID: F5255658CB220573
3 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@ plugins {
} }
group = "it.unisannio.assd.untori" group = "it.unisannio.assd.untori"
version = "0.0.1-alpha-2" version = "0.0.1-alpha-3"
repositories { repositories {
mavenCentral() mavenCentral()
@ -67,7 +67,7 @@ bintray {
setLicenses("MIT") setLicenses("MIT")
desc = description desc = description
version.name = "0.0.1-alpha-2" version.name = "0.0.1-alpha-3"
} }
} }

View File

@ -10,7 +10,7 @@ import java.security.MessageDigest
class TemporaryContactKey private constructor( class TemporaryContactKey private constructor(
private val key: ByteArray, private val key: ByteArray,
private val index: Short val index: Short
) { ) {
fun nextTemporaryContactKey(rvk: ReportVerificationKey): TemporaryContactKey { fun nextTemporaryContactKey(rvk: ReportVerificationKey): TemporaryContactKey {
val hmac = MessageDigest.getInstance("SHA-256").apply { val hmac = MessageDigest.getInstance("SHA-256").apply {

View File

@ -10,6 +10,8 @@ class TemporaryContactNumber(
) { ) {
fun toHexString() = number.toHexString() fun toHexString() = number.toHexString()
override fun toString(): String = toUUID().toString()
fun toUUID(): UUID { fun toUUID(): UUID {
val byteBuffer = ByteBuffer.wrap(number) val byteBuffer = ByteBuffer.wrap(number)
val high = byteBuffer.long val high = byteBuffer.long