Skip to content

Commit

Permalink
Merge branch 'release/os/5.2' into yift/core-18720/introduce-session-…
Browse files Browse the repository at this point in the history
…state

# Conflicts:
#	gradle.properties
  • Loading branch information
yift-r3 committed Dec 19, 2023
2 parents 66b18c8 + 01782d0 commit c90f28c
Show file tree
Hide file tree
Showing 10 changed files with 118 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "record",
"name": "DecryptRpcCommand",
"namespace": "net.corda.data.crypto.wire.ops.encryption.request",
"doc": "Request to decrypt the given byte array",
"fields": [
{
"name": "category",
"type": "string",
"doc": "The category of HSM e.g. ENCRYPTION_SECRET, TLS, etc."
},
{
"name": "alias",
"type": ["null", "string"],
"doc": "The symmetric key alias."
},
{
"name": "cipherBytes",
"type": "bytes",
"doc": "The data to decrypt."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "record",
"name": "EncryptRpcCommand",
"namespace": "net.corda.data.crypto.wire.ops.encryption.request",
"doc": "Request to encrypt the given byte array",
"fields": [
{
"name": "category",
"type": "string",
"doc": "The category of HSM e.g. ENCRYPTION_SECRET, TLS, etc."
},
{
"name": "alias",
"type": ["null", "string"],
"doc": "The symmetric key alias."
},
{
"name": "plainBytes",
"type": "bytes",
"doc": "The data to encrypt."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "record",
"name": "CryptoDecryptionResult",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Decryption operation response",
"fields": [
{
"name": "plainBytes",
"type": "bytes",
"doc": "Decrypted byte array"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"type": "record",
"name": "CryptoEncryptionResult",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Encryption operation response",
"fields": [
{
"name": "cipherBytes",
"type": "bytes",
"doc": "Encrypted byte array"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "record",
"name": "DecryptionOpsResponse",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Response for crypto's decryption operations envelope",
"fields": [
{
"name": "response",
"type": [
"net.corda.data.crypto.wire.ops.encryption.response.CryptoDecryptionResult",
"net.corda.data.crypto.wire.ops.encryption.response.EncryptionOpsError"
],
"doc": "Response's payload, depends on the requested operation"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "record",
"name": "EncryptionOpsError",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Error result while performing encryption or decryption operation.",
"fields": [
{
"name": "errorMessage",
"type": "net.corda.data.ExceptionEnvelope"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"type": "record",
"name": "EncryptionOpsResponse",
"namespace": "net.corda.data.crypto.wire.ops.encryption.response",
"doc": "Response for crypto's encryption operations envelope",
"fields": [
{
"name": "response",
"type": [
"net.corda.data.crypto.wire.ops.encryption.response.CryptoEncryptionResult",
"net.corda.data.crypto.wire.ops.encryption.response.EncryptionOpsError"
],
"doc": "Response's payload, depends on the requested operation"
}
]
}
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ publicArtifactURL = https://download.corda.net/maven
# dokka need more metaspace - https://github.com/Kotlin/dokka/issues/1405
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=2g
internalPluginVersion = 1.+
artifactoryPluginVersion = 4.28.2

gradleEnterpriseVersion = 3.14.1
gradleDataPlugin = 1.8.2
Expand Down
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ bndlibVersion = "7.0.0"
# Testing
assertjVersion = "3.24.2"
junitVersion = "5.10.1"
mockitoVersion = "5.3.0"
mockitoVersion = "5.8.0"
mockitoKotlinVersion = "5.2.1"

# Plugins
artifactoryVersion = "4.28.2"
avroGradleVersion = "1.3.0"
cyclonedxVersion = "1.7.4"
cyclonedxVersion = "1.8.1"
dokkaVersion = "1.8.20"
detektVersion = "1.23.4"
dependencyCheckVersion = "0.46.0"
Expand Down Expand Up @@ -78,7 +77,6 @@ test-runtime = ["junit-engine", "junit-platform"]

[plugins]
avro-gradle = { id = "com.github.davidmc24.gradle.plugin.avro-base", version.ref = "avroGradleVersion" }
artifactory = { id = "com.jfrog.artifactory", version.ref = "artifactoryVersion" }
cyclonedx-bom = { id = "org.cyclonedx.bom", version.ref = "cyclonedxVersion" }
dependency-check-versions = { id = "com.github.ben-manes.versions", version.ref = "dependencyCheckVersion" }
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detektVersion" }
Expand Down
2 changes: 0 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ pluginManagement {
}

}

plugins {
id 'com.gradle.enterprise' version gradleEnterpriseVersion
id 'com.gradle.common-custom-user-data-gradle-plugin' version gradleDataPlugin
id "com.jfrog.artifactory" version artifactoryPluginVersion
}
}
plugins {
Expand Down

0 comments on commit c90f28c

Please sign in to comment.