From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1k0tzh-0003CF-Tv for mharc-grub-devel@gnu.org; Wed, 29 Jul 2020 17:52:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0tze-00031h-56 for grub-devel@gnu.org; Wed, 29 Jul 2020 17:52:10 -0400 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]:44397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0tzZ-0006Lo-Qx for grub-devel@gnu.org; Wed, 29 Jul 2020 17:52:09 -0400 Received: by mail-qk1-x741.google.com with SMTP id j187so23756588qke.11 for ; Wed, 29 Jul 2020 14:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ea7sjJdfjwr6KCJhIQKSQ4HCN7dKvn5f3ilsO4j1prw=; b=rhn+VMNHe03RMFF3Yln6mR0a/onk0ZMgGt/vmz0PzPkzW37Ys7lsOdYUX5JSuO4gyl 3Ti4rILmn/1b5yGgEpC9ngADjDt78zTpnA/ro0y78Yumx7ogQC+SabXckTnsY15kljkD TcXfatA6vhQgtak0Ts/4Kr5U/b6N3wvO5E/A6t/nB10StjNpXzx5UZONb5/gT6hDIEsR donYYP2YLU9iEH+HRVC6ZcPNBvwdPOzrgJ0UMvVeMswlDMfSI55XqJe8V9JIwVAimpyG GRY7ITw4OG36w9PRkRlKv1F541LwJOVAUeCenag8B95/Y6CDmnC1yRFXWuISC9/UQnBr YPBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ea7sjJdfjwr6KCJhIQKSQ4HCN7dKvn5f3ilsO4j1prw=; b=UoIZ7VHj5IjBQWSUokwHKa4F+nMrAPZ2SvN3gtFfdH1+Vj8SprXnoQ/FEzYLnMnENi JKiB7mgVjjXsVcHlFP50CQJ9VOpocA/Vvn4h2knE2AS4p7zvxgwLphIeISUTXDTSb4Da jf4YZpgOQyWf48R/14kWToRdty59kNhkcLqS1DGCfkDf77IRgYXSgECd++EAOvWkPAyb q4RuXvlohAmADYRpgRWj+unjcAElrn97JyiQjk/3oiQ5Qy6nIValZvMwfuKq/F443Wmu cMAeE37hRkZ/OUyf/dKQT5wPyO0jXu0nLNImvwof+FSXtWeJ9IbH+WDEj1Bjhg0YV23z N72g== X-Gm-Message-State: AOAM53059Mw3EC8dEfwaaZbLHWeowtmGaF7dlektAJOZy91Pl945wUhg 37BLCElkHIBPH9JSUFBNkxufaHnOupvtzA== X-Google-Smtp-Source: ABdhPJzFDg/1M0G7O9BpU9Y4Qsvr1jxTGi4bMD10FS0ivFR9WjukSzYt7IPRx8bmYIV7pk/dkRmzzQ== X-Received: by 2002:a05:620a:21c1:: with SMTP id h1mr34658518qka.178.1596059524784; Wed, 29 Jul 2020 14:52:04 -0700 (PDT) Received: from localhost.localdomain ([189.216.105.24]) by smtp.gmail.com with ESMTPSA id n127sm2804165qke.29.2020.07.29.14.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 14:52:04 -0700 (PDT) From: development@efficientek.com To: grub-devel@gnu.org Cc: Glenn Washburn , Daniel Kiper , Patrick Steinhardt Subject: [PATCH 15/17] cryptodisk: Add a couple comments noting the usage of a couple fields in grub_cryptodisk_t as is done for grub_disk_t. Date: Wed, 29 Jul 2020 16:50:20 -0500 Message-Id: <495962ee2b4f26f127c1d25ff1f7422b5e99c0f3.1596056714.git.development@efficientek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::741; envelope-from=development@efficientek.com; helo=mail-qk1-x741.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2020 21:52:10 -0000 From: Glenn Washburn Signed-off-by: Glenn Washburn --- include/grub/cryptodisk.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/grub/cryptodisk.h b/include/grub/cryptodisk.h index f9e42796e..8d3284aad 100644 --- a/include/grub/cryptodisk.h +++ b/include/grub/cryptodisk.h @@ -66,9 +66,15 @@ struct grub_cryptodisk struct grub_cryptodisk **prev; char *source; + + /* The offset number of sectors of the encrypt data on the underlying disk + * where sectors are the size of this cryptodisk. + */ grub_disk_addr_t offset; + /* Total number of encrypted sectors of size (1<