res_stir_shaken: Add unit tests for signing and verification.
Added two unit tests, one for signing and another for verifying. stir_shaken_sign checks to make sure that all the required parameters are passed in and then signs the actual payload. If a signature is produced and a payload returned as a result, the test passes. stir_shaken_verify takes the signature from a signed payload to verify. This unit test also verifies that all the required information is passed in, and then attempts to verify the signature. If verification is successful and a payload is returned, the test passes. Change-Id: I9fa43380f861ccf710cd0f6b6c102a517c86ea13
Showing
- res/res_stir_shaken.c 349 additions, 0 deletionsres/res_stir_shaken.c
- res/res_stir_shaken/certificate.c 74 additions, 0 deletionsres/res_stir_shaken/certificate.c
- res/res_stir_shaken/certificate.h 35 additions, 0 deletionsres/res_stir_shaken/certificate.h
- res/res_stir_shaken/stir_shaken.c 1 addition, 1 deletionres/res_stir_shaken/stir_shaken.c
Loading
Please register or sign in to comment