This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62B-P1:构建 OTP Keywriter 时是否可实现配置文件=释放?

Guru**** 2487425 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1444129/sk-am62b-p1-building-otp-keywriter-with-profile-release-possible

器件型号:SK-AM62B-P1

工具与软件:

尊敬的支持团队:

我们正在将自己的密钥获取到 OTP Keywriter 中。

若要编译 Keywriter、我们可以使用 makefile 文件(如 "AM62X_OTP_JTAG"中所述 Keywriter_User_Guide)和"make -sj profile=debug"。

但是、插入两组 密钥(SMEK、SMPK、BMEK、BMPK)时、 primary_cert.bin 的大小超过了5400字节的长度。 因此我们需要以增量方式对密钥进行编程。

是否也可以使用 profile=release 选项来使用大小优化、或者不建议对 Keywriter 使用此选项?

这将非常好、因为我们希望能加快器件的编程速度。

此致

Benjamin

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    [报价用户 id="632835" url="~/support/processors-group/processors/f/processors-forum/1444129/sk-am62b-p1-building-otp-keywriter-with-profile-release-possible "]但是、插入两组 键(SMEK、SMPK、BMEK、BMPK)时、 primary_cert.bin 的大小超过5400字节的长度。

    您可能无法使用正确的 OpenSSL 版本、因为使用用户指南中提到的工具版本、对证书生成进行一次性测试(一次对所有内容进行编程)。

    下面是 OpenSSL v1.1.x 的证书生成日志、显示5400字节内主证书和辅助证书的大小、供参考。

    ❯ ./gen_keywr_cert.sh -t tifek/ti_fek_public.pem --msv 0xC0FFE -s-def --smek-def -b-def --bmek-def --keycnt 2 --keyrev 1
    # Using MSV[19:0]: 0x000C0FFE
    INFO: Using default SMPK for programming
    INFO: Using default SMEK for programming
    INFO: Using default BMPK for programming
    INFO: Using default BMEK for programming
    # Using Key Count: 0x00000003
    # Using Key Rev: 0x00000001
    Generating Dual signed certificate!!
    GEN: AES256 key generated, since not provided
    # encrypt aes256 key with tifek public part
    # encrypt SMPK-priv signed aes256 key(hash) with tifek public part
    # encrypt smpk-pub hash using aes256 key
    writing RSA key
    # encrypt smek (sym key) using aes256 key
    # encrypt BMPK-priv signed aes256 key(hash) with tifek public part
    # encrypt bmpk-pub hash using aes256 key
    writing RSA key
    # encrypt bmek (sym key) using aes256 key
    1668    secondary_cert.bin
    5383    primary_cert.bin
    7051    ../../x509cert/final_certificate.bin
    # SHA512 Hashes of keys are stored in verify_hash.csv for reference..
    

    此致、

    Prashant

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢快速的答复-我要重复这个。

    我们使用的是 OpenSSL 3.0.15、且借助您所引用的证书创建命令、我们得到 primary_cert.bin 的字节为5414

    # encrypt bmek (sym key) using aes256 key
    1701    secondary_cert.bin
    5414    primary_cert.bin
    7115    ../../x509cert/final_certificate.bin
    # SHA512 Hashes of keys are stored in verify_hash.csv for reference..

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    [报价 userid="632835" url="~/support/processors-group/processors/f/processors-forum/1444129/sk-am62b-p1-building-otp-keywriter-with-profile-release-possible/5537882 #5537882"]我们使用的是 OpenSSL 3.0.15

    此版本不兼容。 OpenSSL 版本应在用户指南(OpenSSL v1.1.x)中提及