File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
bin/verify-attestation/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
2- // Copyright (c) 2023-2024 Matter Labs
2+ // Copyright (c) 2023-2025 Matter Labs
33
44//! Tool for SGX attestation and batch signature verification
55
6- use anyhow:: { anyhow, Context , Result } ;
6+ use anyhow:: { anyhow, bail , Context , Result } ;
77use clap:: { Args , Parser , Subcommand } ;
88use core:: convert:: TryInto ;
99use hex:: encode;
@@ -113,6 +113,9 @@ fn verify_signature(
113113}
114114
115115fn verify_attestation_quote ( attestation_quote_bytes : & [ u8 ] ) -> Result < QuoteVerificationResult > {
116+ if attestation_quote_bytes. is_empty ( ) {
117+ bail ! ( "Empty quote provided!" ) ;
118+ }
116119 println ! (
117120 "Verifying quote ({} bytes)..." ,
118121 attestation_quote_bytes. len( )
You can’t perform that action at this time.
0 commit comments