Skip to content

Commit 49921ce

Browse files
authored
Merge pull request #334 from ionut-arm/rel-7.0.1
Prepare 7.0.1 release
2 parents 744eff6 + f0be052 commit 49921ce

File tree

4 files changed

+168
-29
lines changed

4 files changed

+168
-29
lines changed

CHANGELOG.md

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,161 @@
11
# Changelog
22

3+
## [tss-esapi-7.0.1](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-7.0.1) (2022-03-18)
4+
5+
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-7.0.0...tss-esapi-7.0.1)
6+
7+
**Implemented enhancements:**
8+
9+
- Adds more session attributes tests. [\#331](https://github.com/parallaxsecond/rust-tss-esapi/pull/331) ([Superhepper](https://github.com/Superhepper))
10+
- Adds more pcr structure tests. [\#328](https://github.com/parallaxsecond/rust-tss-esapi/pull/328) ([Superhepper](https://github.com/Superhepper))
11+
12+
**Closed issues:**
13+
14+
- Steps to a stable 7.0.0 [\#290](https://github.com/parallaxsecond/rust-tss-esapi/issues/290)
15+
16+
**Merged pull requests:**
17+
18+
- Bump Fedora version for CI to Fedora 35 [\#333](https://github.com/parallaxsecond/rust-tss-esapi/pull/333) ([puiterwijk](https://github.com/puiterwijk))
19+
- Remove RSA primality test [\#332](https://github.com/parallaxsecond/rust-tss-esapi/pull/332) ([puiterwijk](https://github.com/puiterwijk))
20+
- Adds code coverage badge to the readme. [\#329](https://github.com/parallaxsecond/rust-tss-esapi/pull/329) ([Superhepper](https://github.com/Superhepper))
21+
- Check for documentation link errors [\#327](https://github.com/parallaxsecond/rust-tss-esapi/pull/327) ([wiktor-k](https://github.com/wiktor-k))
22+
- Adds MSRV ci check [\#319](https://github.com/parallaxsecond/rust-tss-esapi/pull/319) ([Superhepper](https://github.com/Superhepper))
23+
24+
## [tss-esapi-7.0.0](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-7.0.0) (2022-02-15)
25+
26+
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-7.0.0-beta.2...tss-esapi-7.0.0)
27+
28+
**Fixed bugs:**
29+
30+
- Fix broken link in docs [\#326](https://github.com/parallaxsecond/rust-tss-esapi/pull/326) ([ionut-arm](https://github.com/ionut-arm))
31+
32+
**Closed issues:**
33+
34+
- 7.0.0-beta.1: AK template can no longer be customised [\#322](https://github.com/parallaxsecond/rust-tss-esapi/issues/322)
35+
36+
**Merged pull requests:**
37+
38+
- Bump tss-esapi to 7.0.0 [\#325](https://github.com/parallaxsecond/rust-tss-esapi/pull/325) ([ionut-arm](https://github.com/ionut-arm))
39+
40+
## [tss-esapi-7.0.0-beta.2](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-7.0.0-beta.2) (2022-02-08)
41+
42+
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-7.0.0-beta.1...tss-esapi-7.0.0-beta.2)
43+
44+
**Fixed bugs:**
45+
46+
- Allow customizing AK public [\#323](https://github.com/parallaxsecond/rust-tss-esapi/pull/323) ([ionut-arm](https://github.com/ionut-arm))
47+
48+
**Closed issues:**
49+
50+
- rust-tss-esapi-7.0.0-beta.1 tag not pushed to git [\#321](https://github.com/parallaxsecond/rust-tss-esapi/issues/321)
51+
52+
## [tss-esapi-7.0.0-beta.1](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-7.0.0-beta.1) (2022-02-04)
53+
54+
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-sys-0.3.0...tss-esapi-7.0.0-beta.1)
55+
56+
## [tss-esapi-sys-0.3.0](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-sys-0.3.0) (2022-02-04)
57+
58+
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-7.0.0-alpha.1...tss-esapi-sys-0.3.0)
59+
60+
**Implemented enhancements:**
61+
62+
- To few items in PcrSlot compared with what PcrSelectSize can indicate. [\#311](https://github.com/parallaxsecond/rust-tss-esapi/issues/311)
63+
- Implement native type for TPML\_TAGGED\_PCR\_PROPERTY in CapabilityData. [\#305](https://github.com/parallaxsecond/rust-tss-esapi/issues/305)
64+
- Create native type for the TPM2\_CC constants. [\#296](https://github.com/parallaxsecond/rust-tss-esapi/issues/296)
65+
- Add testing against tpm2-tss v3.0.0 [\#269](https://github.com/parallaxsecond/rust-tss-esapi/issues/269)
66+
- Re-implement subtract functionality for PcrSelectionList [\#259](https://github.com/parallaxsecond/rust-tss-esapi/issues/259)
67+
- Make context methods that has arguments with types that cannot be copied, take a reference instead [\#254](https://github.com/parallaxsecond/rust-tss-esapi/issues/254)
68+
- Add builder methods and move NvPublic [\#316](https://github.com/parallaxsecond/rust-tss-esapi/pull/316) ([ionut-arm](https://github.com/ionut-arm))
69+
- Replace type in CapabilityData::EccCurves [\#312](https://github.com/parallaxsecond/rust-tss-esapi/pull/312) ([ionut-arm](https://github.com/ionut-arm))
70+
- Update API to take ownership where needed [\#307](https://github.com/parallaxsecond/rust-tss-esapi/pull/307) ([ionut-arm](https://github.com/ionut-arm))
71+
- Sensitive buffers [\#306](https://github.com/parallaxsecond/rust-tss-esapi/pull/306) ([ionut-arm](https://github.com/ionut-arm))
72+
- Implement PublicBuffer [\#302](https://github.com/parallaxsecond/rust-tss-esapi/pull/302) ([ionut-arm](https://github.com/ionut-arm))
73+
- Add ActivateCredential support for TKC [\#284](https://github.com/parallaxsecond/rust-tss-esapi/pull/284) ([ionut-arm](https://github.com/ionut-arm))
74+
- Improved return values of pcr\_read. [\#281](https://github.com/parallaxsecond/rust-tss-esapi/pull/281) ([Superhepper](https://github.com/Superhepper))
75+
- Expand importing functionality in TransientKeyCtx [\#276](https://github.com/parallaxsecond/rust-tss-esapi/pull/276) ([ionut-arm](https://github.com/ionut-arm))
76+
- Add version testing to CI [\#275](https://github.com/parallaxsecond/rust-tss-esapi/pull/275) ([ionut-arm](https://github.com/ionut-arm))
77+
- Bump bindings version; add Darwin bindings [\#265](https://github.com/parallaxsecond/rust-tss-esapi/pull/265) ([ionut-arm](https://github.com/ionut-arm))
78+
79+
**Fixed bugs:**
80+
81+
- PcrSlot wont compile if TPM2\_PCR\_SELECT\_MAX != 4 [\#310](https://github.com/parallaxsecond/rust-tss-esapi/issues/310)
82+
- Build failure for tss-esapi 6.1.0 with zeroize\_derive 1.2.0 [\#260](https://github.com/parallaxsecond/rust-tss-esapi/issues/260)
83+
- Investigate if context methods are using incorrect types. [\#186](https://github.com/parallaxsecond/rust-tss-esapi/issues/186)
84+
- Change default RSA exponent to 0 [\#292](https://github.com/parallaxsecond/rust-tss-esapi/pull/292) ([ionut-arm](https://github.com/ionut-arm))
85+
- Change Name to TPM2B\_NAME conversion [\#288](https://github.com/parallaxsecond/rust-tss-esapi/pull/288) ([ionut-arm](https://github.com/ionut-arm))
86+
87+
**Closed issues:**
88+
89+
- Hierarchy/Unseal/Load auth value [\#309](https://github.com/parallaxsecond/rust-tss-esapi/issues/309)
90+
- ActivateCredential error on non-6.1.1 versions \(Esys Finish ErrorCode \(0x00000101\)\) [\#285](https://github.com/parallaxsecond/rust-tss-esapi/issues/285)
91+
- error while building [\#283](https://github.com/parallaxsecond/rust-tss-esapi/issues/283)
92+
- doubts about TPMS\_ECC\_PARMS [\#282](https://github.com/parallaxsecond/rust-tss-esapi/issues/282)
93+
- Manually construct PcrData? [\#277](https://github.com/parallaxsecond/rust-tss-esapi/issues/277)
94+
- Thank you [\#192](https://github.com/parallaxsecond/rust-tss-esapi/issues/192)
95+
- Key management approach in abstraction::transient won't work in windows [\#169](https://github.com/parallaxsecond/rust-tss-esapi/issues/169)
96+
97+
**Merged pull requests:**
98+
99+
- Prepare 7.0.0-beta.1 release [\#320](https://github.com/parallaxsecond/rust-tss-esapi/pull/320) ([ionut-arm](https://github.com/ionut-arm))
100+
- Updates depedencies [\#318](https://github.com/parallaxsecond/rust-tss-esapi/pull/318) ([Superhepper](https://github.com/Superhepper))
101+
- Fixes some pcr issues. [\#317](https://github.com/parallaxsecond/rust-tss-esapi/pull/317) ([Superhepper](https://github.com/Superhepper))
102+
- Creates native type for TPML\_CCA [\#315](https://github.com/parallaxsecond/rust-tss-esapi/pull/315) ([Superhepper](https://github.com/Superhepper))
103+
- Make the crate compatible with 1.53 toolchain [\#314](https://github.com/parallaxsecond/rust-tss-esapi/pull/314) ([ionut-arm](https://github.com/ionut-arm))
104+
- Rust native TPML\_TAGGED\_PCR\_PROPERTY type [\#308](https://github.com/parallaxsecond/rust-tss-esapi/pull/308) ([Superhepper](https://github.com/Superhepper))
105+
- Updates CapabilityData to use AlgorithmPropertyList [\#304](https://github.com/parallaxsecond/rust-tss-esapi/pull/304) ([Superhepper](https://github.com/Superhepper))
106+
- Fix typos and introduce Check spelling CI step [\#303](https://github.com/parallaxsecond/rust-tss-esapi/pull/303) ([wiktor-k](https://github.com/wiktor-k))
107+
- Adds TaggedTpmProprtyList [\#301](https://github.com/parallaxsecond/rust-tss-esapi/pull/301) ([Superhepper](https://github.com/Superhepper))
108+
- Command code list [\#300](https://github.com/parallaxsecond/rust-tss-esapi/pull/300) ([Superhepper](https://github.com/Superhepper))
109+
- Adds CommandCode enum and replaces use of TPM2\_CC. [\#299](https://github.com/parallaxsecond/rust-tss-esapi/pull/299) ([Superhepper](https://github.com/Superhepper))
110+
- Support Certify context command [\#297](https://github.com/parallaxsecond/rust-tss-esapi/pull/297) ([rshearman](https://github.com/rshearman))
111+
- Removes TPMA\_LOCALITY from context methods. [\#294](https://github.com/parallaxsecond/rust-tss-esapi/pull/294) ([Superhepper](https://github.com/Superhepper))
112+
- Adds the attest structures [\#293](https://github.com/parallaxsecond/rust-tss-esapi/pull/293) ([Superhepper](https://github.com/Superhepper))
113+
- Suppress deref\_nullptr warnings [\#289](https://github.com/parallaxsecond/rust-tss-esapi/pull/289) ([ionut-arm](https://github.com/ionut-arm))
114+
- Added SignatureScheme type. [\#286](https://github.com/parallaxsecond/rust-tss-esapi/pull/286) ([Superhepper](https://github.com/Superhepper))
115+
- Make Name wrap the raw type directly [\#280](https://github.com/parallaxsecond/rust-tss-esapi/pull/280) ([wiktor-k](https://github.com/wiktor-k))
116+
- Add `policy_duplication_select` to Context [\#278](https://github.com/parallaxsecond/rust-tss-esapi/pull/278) ([wiktor-k](https://github.com/wiktor-k))
117+
- Added auth\_policy method to ther Public structure. [\#274](https://github.com/parallaxsecond/rust-tss-esapi/pull/274) ([Superhepper](https://github.com/Superhepper))
118+
- Improved tests and naming for CapabilityType [\#273](https://github.com/parallaxsecond/rust-tss-esapi/pull/273) ([Superhepper](https://github.com/Superhepper))
119+
- Fix a typo in "bitfield" [\#272](https://github.com/parallaxsecond/rust-tss-esapi/pull/272) ([wiktor-k](https://github.com/wiktor-k))
120+
- Fix builders when using Null symmetric \(and a couple of small fixes\) [\#271](https://github.com/parallaxsecond/rust-tss-esapi/pull/271) ([wiktor-k](https://github.com/wiktor-k))
121+
- Add a hint for unique\_identifier functions [\#270](https://github.com/parallaxsecond/rust-tss-esapi/pull/270) ([wiktor-k](https://github.com/wiktor-k))
122+
- Fix error comment for ECC decryption keys [\#268](https://github.com/parallaxsecond/rust-tss-esapi/pull/268) ([wiktor-k](https://github.com/wiktor-k))
123+
- Fix tss2\_esys version detection + new load\_external test [\#267](https://github.com/parallaxsecond/rust-tss-esapi/pull/267) ([rshearman](https://github.com/rshearman))
124+
- Add TPM Import command [\#266](https://github.com/parallaxsecond/rust-tss-esapi/pull/266) ([wiktor-k](https://github.com/wiktor-k))
125+
- Add property tag variant for MaxCapBuffer [\#264](https://github.com/parallaxsecond/rust-tss-esapi/pull/264) ([rshearman](https://github.com/rshearman))
126+
- Fix abstraction nv handle leaks [\#263](https://github.com/parallaxsecond/rust-tss-esapi/pull/263) ([rshearman](https://github.com/rshearman))
127+
- Refactoring and improvement of tests [\#258](https://github.com/parallaxsecond/rust-tss-esapi/pull/258) ([Superhepper](https://github.com/Superhepper))
128+
- Add duplication command [\#248](https://github.com/parallaxsecond/rust-tss-esapi/pull/248) ([wiktor-k](https://github.com/wiktor-k))
129+
130+
## [tss-esapi-7.0.0-alpha.1](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-7.0.0-alpha.1) (2021-09-17)
131+
132+
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-6.1.0...tss-esapi-7.0.0-alpha.1)
133+
134+
**Implemented enhancements:**
135+
136+
- Missing check for key handle session where they are required [\#252](https://github.com/parallaxsecond/rust-tss-esapi/issues/252)
137+
- Move TransientKeyContext away from contexts [\#256](https://github.com/parallaxsecond/rust-tss-esapi/pull/256) ([ionut-arm](https://github.com/ionut-arm))
138+
139+
**Fixed bugs:**
140+
141+
- The Context Management Tests are not executed [\#250](https://github.com/parallaxsecond/rust-tss-esapi/issues/250)
142+
143+
**Closed issues:**
144+
145+
- Getting the u32 value of a TpmHandle. [\#231](https://github.com/parallaxsecond/rust-tss-esapi/issues/231)
146+
- Problems with sessions in tests [\#200](https://github.com/parallaxsecond/rust-tss-esapi/issues/200)
147+
148+
**Merged pull requests:**
149+
150+
- Bump version for new alpha release [\#257](https://github.com/parallaxsecond/rust-tss-esapi/pull/257) ([ionut-arm](https://github.com/ionut-arm))
151+
- Add ECDH-related functions [\#255](https://github.com/parallaxsecond/rust-tss-esapi/pull/255) ([wiktor-k](https://github.com/wiktor-k))
152+
- Add missing key handle session checks [\#253](https://github.com/parallaxsecond/rust-tss-esapi/pull/253) ([Superhepper](https://github.com/Superhepper))
153+
- Fixed issue with missing tests. [\#251](https://github.com/parallaxsecond/rust-tss-esapi/pull/251) ([Superhepper](https://github.com/Superhepper))
154+
- Fix a typo in "persistent" [\#249](https://github.com/parallaxsecond/rust-tss-esapi/pull/249) ([wiktor-k](https://github.com/wiktor-k))
155+
- Implemented conversion traits for PcrSlot. [\#247](https://github.com/parallaxsecond/rust-tss-esapi/pull/247) ([Superhepper](https://github.com/Superhepper))
156+
- Update CHANGELOG.md [\#245](https://github.com/parallaxsecond/rust-tss-esapi/pull/245) ([ionut-arm](https://github.com/ionut-arm))
157+
- Creates native rust type for TPM2B\_PUBLIC. [\#241](https://github.com/parallaxsecond/rust-tss-esapi/pull/241) ([Superhepper](https://github.com/Superhepper))
158+
3159
## [tss-esapi-6.1.0](https://github.com/parallaxsecond/rust-tss-esapi/tree/tss-esapi-6.1.0) (2021-08-04)
4160

5161
[Full Changelog](https://github.com/parallaxsecond/rust-tss-esapi/compare/tss-esapi-6.0.0...tss-esapi-6.1.0)

tss-esapi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tss-esapi"
3-
version = "7.0.0"
3+
version = "7.0.1"
44
authors = ["Parsec Project Contributors"]
55
edition = "2018"
66
description = "Rust-native wrapper around TSS 2.0 Enhanced System API"

tss-esapi/src/lib.rs

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,16 @@
3333
//! This crate exposes the functionality of the TCG Software Stack Enhanced System API to
3434
//! Rust developers, both directly through FFI bindings and through more Rust-tailored interfaces
3535
//! at varying levels of abstraction.
36-
//! At the moment, the abstracted functionality focuses on creating signing and encryption RSA
37-
//! keys, as well as signing and verifying signatures.
3836
//! Only platforms based on processors with a word size of at least 16 bits are supported.
3937
//!
40-
//! The crate is expected to successfully compile and run using the nightly compiler and any other
41-
//! Rust compiler since 1.38.0.
42-
//!
43-
//! # Disclaimer
44-
//!
45-
//! The current version of the API does not offer any security or code safety guarantees as it has
46-
//! not been tested to a desired level of confidence.
47-
//! The implementation that is provided is suitable for exploratory testing and experimentation only.
48-
//! This test implementation does not offer any tangible security benefits and therefore is not
49-
//! suitable for use in production.
50-
//! Contributions from the developer community are welcome. Please refer to the contribution guidelines.
51-
//!
5238
//! # Code structure
53-
//! The modules comprising the crate expose the following functionalities:
54-
//! * lib/root module - exposes the `Context` structure, the most basic abstraction over the
55-
//! ESAPI, on top of which all other abstraction layers are implemented.
56-
//! * utils - exposes Rust-native versions and/or builders for (some of) the structures defined in
57-
//! the TSS 2.0 specification; it also offers convenience methods for generating very specific
58-
//! parameter structures for use in certain operations.
59-
//! * response_code - implements error code parsing for the formats defined in the TSS spec and
60-
//! exposes it along with wrapper-specific error types.
61-
//! * abstraction - intended to offer abstracted interfaces that focus on providing different
62-
//! kinds of user experience to the developers; at the moment the only implementation allows for a
63-
//! resource-handle-free coding experience by working soloely with object contexts.
64-
//! * tss2_esys - exposes raw FFI bindings to the Enhanced System API.
65-
//! * constants - exposes constants that were ported to Rust manually as bindgen does not support
66-
//! converting them yet.
39+
//! Our code structure is mostly derived from
40+
//! [part 2 of the TPM2 TCG spec](https://trustedcomputinggroup.org/wp-content/uploads/TCG_TPM2_r1p59_Part2_Structures_pub.pdf).
41+
//! For simplicity, however, we have reduced the depth of the import tree, so most (if not all) types
42+
//! are at most one level away from root.
43+
//!
44+
//! Minimum supported Rust version (MSRV):
45+
//! We currently check with version 1.53.0 of the Rust compiler during CI builds.
6746
//!
6847
//! # Notes on code safety:
6948
//! * thread safety is ensured by the required mutability of the `Context` structure within the

tss-esapi/src/structures/tagged/public/rsa.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ impl RsaExponent {
248248
}
249249

250250
/// No-op. Does not check whether the value is a valid exponent for RSA.
251+
#[deprecated(
252+
since = "7.0.1",
253+
note = "TPMs are only mandated to support 0 as an exponent, with support for and checking of other values being done differently by each manufacturer. See discussion here: https://github.com/parallaxsecond/rust-tss-esapi/pull/332"
254+
)]
251255
pub fn is_valid(_: u32) -> bool {
252256
true
253257
}

0 commit comments

Comments
 (0)