Coder Social home page Coder Social logo

cst's Introduction

CST tool providing the following tools:

1. Key Generation
	- gen_keys
	- gen_drv_drbg
	- gen_otpmk_drbg
2. Header Creation
	- create_hdr_pbi
	- create_hdr_isbc
	- create_hdr_esbc
	- create_hdr_cf
3. Signature Geneartion
	- gen_sign
	- sign_embed

Wrapper scripts for invoking the Header creation tools have also been provided:
1. uni_pbi (create_hdr_pbi)
2. uni_sign (create_hdr_isbc and create_hdr_esbc)
3. uni_cfsign (creat_hdr_cf)

cst's People

Contributors

nxa27423 avatar manishtomarnxp avatar kshitizvars avatar ting-liu avatar

Stargazers

 avatar Patrick D. Lloyd avatar Timothy Huang avatar kenli avatar Daejung Kim avatar

Watchers

Zhenhua Luo avatar Hemant Agrawal avatar  avatar  avatar

cst's Issues

CST Uses Deprecated OpenSSL Calls

When compiling this tool using the default -Werror flag, the compiler throws deprecated-declarations errors. For example:

common/crypto_utils.c:159:9: error: 'RSA_sign' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  159 |         ret = RSA_sign(NID_sha256, img_hash, len,
      |         ^~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from common/crypto_utils.c:37:
/usr/include/openssl/rsa.h:353:27: note: declared here
  353 | OSSL_DEPRECATEDIN_3_0 int RSA_sign(int type, const unsigned char *m,
      |                           ^~~~~~~~

In downstream uses of CST, such as meta-freescale, those warnings/errors are just suppressed by appending -Wno-deprecated-declarations to the CFLAGS. This is also the proposed solution in #2.

I'm not a huge fan of this as it just puts a Band-Aid over a time bomb. When the deprecated calls finally get removed, there will be pressure to just continue using an insecure, older version of OpenSSL with the deprecated functions. This is a very bad idea considering this is the basis of code signing and secure boot implementations for various critical embedded systems. OpenSSL must stay up to date in these devices to prevent vulnerabilities and hacks.

I'm currently working on updating the crypto_* calls using the updated EVP API and will submit a PR for it when it's ready. I could definitely use some help testing it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.