Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
fa58908b
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fa58908b
编写于
8月 11, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
OcAppleImg4Lib: Improve debug logging
上级
816e8218
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
45 addition
and
26 deletion
+45
-26
Docs/Configuration.pdf
Docs/Configuration.pdf
+0
-0
Docs/Configuration.tex
Docs/Configuration.tex
+1
-1
Docs/Differences/Differences.pdf
Docs/Differences/Differences.pdf
+0
-0
Docs/Differences/Differences.tex
Docs/Differences/Differences.tex
+2
-2
Docs/Errata/Errata.pdf
Docs/Errata/Errata.pdf
+0
-0
Library/OcAppleImg4Lib/OcAppleImg4Lib.c
Library/OcAppleImg4Lib/OcAppleImg4Lib.c
+40
-23
Utilities/macrecovery/macrecovery.py
Utilities/macrecovery/macrecovery.py
+2
-0
未找到文件。
Docs/Configuration.pdf
浏览文件 @
fa58908b
无法预览此类型文件
Docs/Configuration.tex
浏览文件 @
fa58908b
...
...
@@ -2930,7 +2930,7 @@ nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-log |
personalised Apple Secure Boot identifiers. If you want to use this setting,
make sure to generate a random 64-bit number with a cryptographically secure
random number generator. With this value set and
\texttt
{
SecureBootModel
}
valid
and not
\texttt
{
Disabled
}
it is possible to ahieve
and not
\texttt
{
Disabled
}
it is possible to a
c
hieve
\href
{
https://support.apple.com/en-us/HT208330
}{
\texttt
{
Full Security
}}
of Apple
Secure Boot.
...
...
Docs/Differences/Differences.pdf
浏览文件 @
fa58908b
无法预览此类型文件
Docs/Differences/Differences.tex
浏览文件 @
fa58908b
\documentclass
[]
{
article
}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Sat Aug 8 20:55:30 2020
%DIF ADD ../Configuration.tex Tue Aug 11
15:34:19
2020
%DIF ADD ../Configuration.tex Tue Aug 11
20:28:27
2020
\usepackage
{
lmodern
}
\usepackage
{
amssymb,amsmath
}
...
...
@@ -2997,7 +2997,7 @@ nvram 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:boot-log |
personalised Apple Secure Boot identifiers. If you want to use this setting,
make sure to generate a random 64-bit number with a cryptographically secure
random number generator. With this value set and
}
\texttt
{
\DIFadd
{
SecureBootModel
}}
\DIFadd
{
valid
and not
}
\texttt
{
\DIFadd
{
Disabled
}}
\DIFadd
{
it is possible to ahieve
and not
}
\texttt
{
\DIFadd
{
Disabled
}}
\DIFadd
{
it is possible to a
c
hieve
}
\href
{
https://support.apple.com/en-us/HT208330
}{
\texttt
{
Full Security
}}
\DIFadd
{
of Apple
Secure Boot.
}
...
...
Docs/Errata/Errata.pdf
浏览文件 @
fa58908b
无法预览此类型文件
Library/OcAppleImg4Lib/OcAppleImg4Lib.c
浏览文件 @
fa58908b
...
...
@@ -206,40 +206,57 @@ OcAppleImg4Verify (
ObjType
);
if
(
DerResult
!=
DR_Success
)
{
DEBUG
((
DEBUG_INFO
,
"OCI4: Manifest (%u) for %08X parse fail with code %d
\n
"
,
ManifestSize
,
ObjType
,
DerResult
));
return
EFI_SECURITY_VIOLATION
;
}
CmpResult
=
-
1
;
DEBUG
((
DEBUG_INFO
,
"OCI4: Verifying digest %u (%02X%02X%02X%02X) override %d %u (%02X%02X%02X%02X)
\n
"
,
ManInfo
.
imageDigestSize
,
ManInfo
.
imageDigest
[
0
],
ManInfo
.
imageDigest
[
1
],
ManInfo
.
imageDigest
[
2
],
ManInfo
.
imageDigest
[
3
],
mHasDigestOverride
,
SHA384_DIGEST_SIZE
,
mOriginalDigest
[
0
],
mOriginalDigest
[
1
],
mOriginalDigest
[
2
],
mOriginalDigest
[
3
]
));
//
// Provide a route to accept our modified kernel as long as we can trust it is really it.
//
if
(
mHasDigestOverride
)
{
if
(
mHasDigestOverride
&&
ManInfo
.
imageDigestSize
==
SHA384_DIGEST_SIZE
&&
CompareMem
(
mOriginalDigest
,
ManInfo
.
imageDigest
,
sizeof
(
mOriginalDigest
))
==
0
)
{
Sha384
(
Digest
,
ImageBuffer
,
ImageSize
);
CmpResult
=
CompareMem
(
Digest
,
mOverrideDigest
,
sizeof
(
mOverrideDigest
));
DEBUG
((
DEBUG_INFO
,
"OCI4: Trying override %u vs %u for %02X%02X%02X%02X
\n
"
,
ManInfo
.
imageDigestSize
,
SHA384_DIGEST_SIZE
,
ManInfo
.
imageDigest
[
0
],
ManInfo
.
imageDigest
[
1
],
ManInfo
.
imageDigest
[
2
],
ManInfo
.
imageDigest
[
3
]
"OCI4: Matching override %02X%02X%02X%02X with %02X%02X%02X%02X - %a
\n
"
,
mOverrideDigest
[
0
],
mOverrideDigest
[
1
],
mOverrideDigest
[
2
],
mOverrideDigest
[
3
],
Digest
[
0
],
Digest
[
1
],
Digest
[
2
],
Digest
[
3
],
CmpResult
==
0
?
"success"
:
"failure"
));
if
(
ManInfo
.
imageDigestSize
==
SHA384_DIGEST_SIZE
)
{
Sha384
(
Digest
,
ImageBuffer
,
ImageSize
);
if
(
CompareMem
(
Digest
,
mOverrideDigest
,
sizeof
(
mOverrideDigest
))
==
0
&&
CompareMem
(
mOriginalDigest
,
ManInfo
.
imageDigest
,
sizeof
(
mOriginalDigest
))
==
0
)
{
DEBUG
((
DEBUG_INFO
,
"OCI4: Digest matched %02X%02X%02X%02X, accepting and disabling
\n
"
,
mOriginalDigest
[
0
],
mOriginalDigest
[
1
],
mOriginalDigest
[
2
],
mOriginalDigest
[
3
]
));
CmpResult
=
0
;
mHasDigestOverride
=
FALSE
;
}
if
(
CmpResult
==
0
)
{
mHasDigestOverride
=
FALSE
;
}
}
...
...
Utilities/macrecovery/macrecovery.py
浏览文件 @
fa58908b
...
...
@@ -183,6 +183,8 @@ def action_download(args):
session
=
get_session
()
info
=
get_image_info
(
session
,
bid
=
args
.
board_id
,
mlb
=
args
.
mlb
,
diag
=
args
.
diagnostics
,
os_type
=
args
.
os_type
)
if
args
.
verbose
:
print
(
info
)
print
(
'Downloading '
+
info
[
INFO_PRODUCT
]
+
'...'
)
dmgname
=
''
if
args
.
basename
==
''
else
args
.
basename
+
'.dmg'
save_image
(
info
[
INFO_IMAGE_LINK
],
info
[
INFO_IMAGE_SESS
],
dmgname
,
args
.
outdir
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录