diff --git a/api/firmware/device.go b/api/firmware/device.go index 6c2bc4b..2408507 100644 --- a/api/firmware/device.go +++ b/api/firmware/device.go @@ -120,6 +120,9 @@ type DeviceInfo struct { SecurechipModel string `json:"securechipModel"` // Available on Bluetooth-enabled devices, Will be `nil` otherwise. Bluetooth *BluetoothInfo `json:"bluetooth"` + // This information is only available since firmwae v9.25.0. Will be an empty string for older + // firmware versions. + PasswordStretchingAlgo string `json:"passwordStretchingAlgo"` } // NewDevice creates a new instance of Device. diff --git a/api/firmware/messages/antiklepto.pb.go b/api/firmware/messages/antiklepto.pb.go index 73facf1..9b0c918 100644 --- a/api/firmware/messages/antiklepto.pb.go +++ b/api/firmware/messages/antiklepto.pb.go @@ -1,21 +1,9 @@ -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: antiklepto.proto package messages diff --git a/api/firmware/messages/antiklepto.proto b/api/firmware/messages/antiklepto.proto index be51c41..b7829f3 100644 --- a/api/firmware/messages/antiklepto.proto +++ b/api/firmware/messages/antiklepto.proto @@ -1,16 +1,4 @@ -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/backup_commands.pb.go b/api/firmware/messages/backup_commands.pb.go index 4258e2e..8ba9ceb 100644 --- a/api/firmware/messages/backup_commands.pb.go +++ b/api/firmware/messages/backup_commands.pb.go @@ -1,23 +1,11 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // This file is named backup_commands to avoid conflicting header files with top-most backup.proto // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: backup_commands.proto package messages diff --git a/api/firmware/messages/backup_commands.proto b/api/firmware/messages/backup_commands.proto index 3fd10a9..2fbb73a 100644 --- a/api/firmware/messages/backup_commands.proto +++ b/api/firmware/messages/backup_commands.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // This file is named backup_commands to avoid conflicting header files with top-most backup.proto diff --git a/api/firmware/messages/bitbox02_system.pb.go b/api/firmware/messages/bitbox02_system.pb.go index 4087bfc..259d20b 100644 --- a/api/firmware/messages/bitbox02_system.pb.go +++ b/api/firmware/messages/bitbox02_system.pb.go @@ -1,21 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: bitbox02_system.proto package messages @@ -204,12 +192,15 @@ type DeviceInfoResponse struct { Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` MnemonicPassphraseEnabled bool `protobuf:"varint,4,opt,name=mnemonic_passphrase_enabled,json=mnemonicPassphraseEnabled,proto3" json:"mnemonic_passphrase_enabled,omitempty"` MonotonicIncrementsRemaining uint32 `protobuf:"varint,5,opt,name=monotonic_increments_remaining,json=monotonicIncrementsRemaining,proto3" json:"monotonic_increments_remaining,omitempty"` - // From v9.6.0: "ATECC608A" or "ATECC608B". + // From v9.6.0: "ATECC608A" or "ATECC608B" or "OPTIGA_TRUST_M_V3". SecurechipModel string `protobuf:"bytes,6,opt,name=securechip_model,json=securechipModel,proto3" json:"securechip_model,omitempty"` // Only present in Bluetooth-enabled devices. - Bluetooth *DeviceInfoResponse_Bluetooth `protobuf:"bytes,7,opt,name=bluetooth,proto3,oneof" json:"bluetooth,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Bluetooth *DeviceInfoResponse_Bluetooth `protobuf:"bytes,7,opt,name=bluetooth,proto3,oneof" json:"bluetooth,omitempty"` + // From v9.25.0. This together with `securechip_model` determines the password stretching + // algorithm. + PasswordStretchingAlgo string `protobuf:"bytes,8,opt,name=password_stretching_algo,json=passwordStretchingAlgo,proto3" json:"password_stretching_algo,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeviceInfoResponse) Reset() { @@ -291,6 +282,13 @@ func (x *DeviceInfoResponse) GetBluetooth() *DeviceInfoResponse_Bluetooth { return nil } +func (x *DeviceInfoResponse) GetPasswordStretchingAlgo() string { + if x != nil { + return x.PasswordStretchingAlgo + } + return "" +} + type InsertRemoveSDCardRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Action InsertRemoveSDCardRequest_SDCardAction `protobuf:"varint,1,opt,name=action,proto3,enum=shiftcrypto.bitbox02.InsertRemoveSDCardRequest_SDCardAction" json:"action,omitempty"` @@ -610,7 +608,7 @@ const file_bitbox02_system_proto_rawDesc = "" + "\x12CheckSDCardRequest\"1\n" + "\x13CheckSDCardResponse\x12\x1a\n" + "\binserted\x18\x01 \x01(\bR\binserted\"\x13\n" + - "\x11DeviceInfoRequest\"\xf1\x03\n" + + "\x11DeviceInfoRequest\"\xab\x04\n" + "\x12DeviceInfoResponse\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + "\vinitialized\x18\x02 \x01(\bR\vinitialized\x12\x18\n" + @@ -618,7 +616,8 @@ const file_bitbox02_system_proto_rawDesc = "" + "\x1bmnemonic_passphrase_enabled\x18\x04 \x01(\bR\x19mnemonicPassphraseEnabled\x12D\n" + "\x1emonotonic_increments_remaining\x18\x05 \x01(\rR\x1cmonotonicIncrementsRemaining\x12)\n" + "\x10securechip_model\x18\x06 \x01(\tR\x0fsecurechipModel\x12U\n" + - "\tbluetooth\x18\a \x01(\v22.shiftcrypto.bitbox02.DeviceInfoResponse.BluetoothH\x00R\tbluetooth\x88\x01\x01\x1au\n" + + "\tbluetooth\x18\a \x01(\v22.shiftcrypto.bitbox02.DeviceInfoResponse.BluetoothH\x00R\tbluetooth\x88\x01\x01\x128\n" + + "\x18password_stretching_algo\x18\b \x01(\tR\x16passwordStretchingAlgo\x1au\n" + "\tBluetooth\x12#\n" + "\rfirmware_hash\x18\x01 \x01(\fR\ffirmwareHash\x12)\n" + "\x10firmware_version\x18\x02 \x01(\tR\x0ffirmwareVersion\x12\x18\n" + diff --git a/api/firmware/messages/bitbox02_system.proto b/api/firmware/messages/bitbox02_system.proto index aef431f..463e689 100644 --- a/api/firmware/messages/bitbox02_system.proto +++ b/api/firmware/messages/bitbox02_system.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; @@ -39,10 +27,13 @@ message DeviceInfoResponse { string version = 3; bool mnemonic_passphrase_enabled = 4; uint32 monotonic_increments_remaining = 5; - // From v9.6.0: "ATECC608A" or "ATECC608B". + // From v9.6.0: "ATECC608A" or "ATECC608B" or "OPTIGA_TRUST_M_V3". string securechip_model = 6; // Only present in Bluetooth-enabled devices. optional Bluetooth bluetooth = 7; + // From v9.25.0. This together with `securechip_model` determines the password stretching + // algorithm. + string password_stretching_algo = 8; } message InsertRemoveSDCardRequest { @@ -68,4 +59,4 @@ message SetPasswordRequest { } message ChangePasswordRequest{ -} \ No newline at end of file +} diff --git a/api/firmware/messages/bluetooth.pb.go b/api/firmware/messages/bluetooth.pb.go index dc07400..dcd965f 100644 --- a/api/firmware/messages/bluetooth.pb.go +++ b/api/firmware/messages/bluetooth.pb.go @@ -1,21 +1,9 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: bluetooth.proto package messages diff --git a/api/firmware/messages/bluetooth.proto b/api/firmware/messages/bluetooth.proto index db98275..016a479 100644 --- a/api/firmware/messages/bluetooth.proto +++ b/api/firmware/messages/bluetooth.proto @@ -1,16 +1,4 @@ -// Copyright 2025 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/btc.pb.go b/api/firmware/messages/btc.pb.go index 168ccfe..9326a03 100644 --- a/api/firmware/messages/btc.pb.go +++ b/api/firmware/messages/btc.pb.go @@ -1,22 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: btc.proto package messages diff --git a/api/firmware/messages/btc.proto b/api/firmware/messages/btc.proto index 9793542..bee46ad 100644 --- a/api/firmware/messages/btc.proto +++ b/api/firmware/messages/btc.proto @@ -1,17 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// Copyright 2020 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/cardano.pb.go b/api/firmware/messages/cardano.pb.go index 24156c0..0bf1c78 100644 --- a/api/firmware/messages/cardano.pb.go +++ b/api/firmware/messages/cardano.pb.go @@ -1,21 +1,9 @@ -// Copyright 2021 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: cardano.proto package messages diff --git a/api/firmware/messages/cardano.proto b/api/firmware/messages/cardano.proto index 54b661d..56b6d9d 100644 --- a/api/firmware/messages/cardano.proto +++ b/api/firmware/messages/cardano.proto @@ -1,16 +1,4 @@ -// Copyright 2021 Shift Crypto AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/common.pb.go b/api/firmware/messages/common.pb.go index 7be92fa..21459b7 100644 --- a/api/firmware/messages/common.pb.go +++ b/api/firmware/messages/common.pb.go @@ -1,21 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: common.proto package messages diff --git a/api/firmware/messages/common.proto b/api/firmware/messages/common.proto index 0fed08c..92f4f02 100644 --- a/api/firmware/messages/common.proto +++ b/api/firmware/messages/common.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/eth.pb.go b/api/firmware/messages/eth.pb.go index e782b28..23beb82 100644 --- a/api/firmware/messages/eth.pb.go +++ b/api/firmware/messages/eth.pb.go @@ -1,21 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: eth.proto package messages diff --git a/api/firmware/messages/eth.proto b/api/firmware/messages/eth.proto index 65c8f90..b40295d 100644 --- a/api/firmware/messages/eth.proto +++ b/api/firmware/messages/eth.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/hww.pb.go b/api/firmware/messages/hww.pb.go index 4416b40..8f38d28 100644 --- a/api/firmware/messages/hww.pb.go +++ b/api/firmware/messages/hww.pb.go @@ -1,21 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: hww.proto package messages diff --git a/api/firmware/messages/hww.proto b/api/firmware/messages/hww.proto index ea7177e..07cb660 100644 --- a/api/firmware/messages/hww.proto +++ b/api/firmware/messages/hww.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/keystore.pb.go b/api/firmware/messages/keystore.pb.go index 3207c39..ef2563d 100644 --- a/api/firmware/messages/keystore.pb.go +++ b/api/firmware/messages/keystore.pb.go @@ -1,10 +1,12 @@ +// SPDX-License-Identifier: Apache-2.0 + // This function can be used to get an identifying xpub at the keypath m/4541509'/1112098098'" // The keypath argument has to be m/4541509'/1112098098' // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: keystore.proto package messages diff --git a/api/firmware/messages/keystore.proto b/api/firmware/messages/keystore.proto index d6d5641..4f63cd3 100644 --- a/api/firmware/messages/keystore.proto +++ b/api/firmware/messages/keystore.proto @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + // This function can be used to get an identifying xpub at the keypath m/4541509'/1112098098'" // The keypath argument has to be m/4541509'/1112098098' diff --git a/api/firmware/messages/mnemonic.pb.go b/api/firmware/messages/mnemonic.pb.go index 5412491..ca26bc6 100644 --- a/api/firmware/messages/mnemonic.pb.go +++ b/api/firmware/messages/mnemonic.pb.go @@ -1,21 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: mnemonic.proto package messages diff --git a/api/firmware/messages/mnemonic.proto b/api/firmware/messages/mnemonic.proto index c13e02a..9137274 100644 --- a/api/firmware/messages/mnemonic.proto +++ b/api/firmware/messages/mnemonic.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/perform_attestation.pb.go b/api/firmware/messages/perform_attestation.pb.go index ce3e08c..1c3ed23 100644 --- a/api/firmware/messages/perform_attestation.pb.go +++ b/api/firmware/messages/perform_attestation.pb.go @@ -1,7 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: perform_attestation.proto package messages diff --git a/api/firmware/messages/perform_attestation.proto b/api/firmware/messages/perform_attestation.proto index 50d0d48..db7f399 100644 --- a/api/firmware/messages/perform_attestation.proto +++ b/api/firmware/messages/perform_attestation.proto @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/messages/system.pb.go b/api/firmware/messages/system.pb.go index ceea785..28b16b4 100644 --- a/api/firmware/messages/system.pb.go +++ b/api/firmware/messages/system.pb.go @@ -1,21 +1,9 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.10 -// protoc v6.33.1 +// protoc-gen-go v1.36.11 +// protoc v3.21.12 // source: system.proto package messages diff --git a/api/firmware/messages/system.proto b/api/firmware/messages/system.proto index c0fb8c0..5df5bc4 100644 --- a/api/firmware/messages/system.proto +++ b/api/firmware/messages/system.proto @@ -1,16 +1,4 @@ -// Copyright 2019 Shift Cryptosecurity AG -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package shiftcrypto.bitbox02; diff --git a/api/firmware/system.go b/api/firmware/system.go index aee151b..f3bd11c 100644 --- a/api/firmware/system.go +++ b/api/firmware/system.go @@ -72,6 +72,13 @@ func (device *Device) DeviceInfo() (*DeviceInfo, error) { Bluetooth: bluetooth, } + // Before v9.25.0, this field did not exist and there was only one stretching algo. + if device.version.AtLeast(semver.NewSemVer(9, 25, 0)) { + deviceInfo.PasswordStretchingAlgo = deviceInfoResponse.DeviceInfo.PasswordStretchingAlgo + } else { + deviceInfo.PasswordStretchingAlgo = "V0" + } + return deviceInfo, nil }