Lines Matching defs:signature
251 * Create RSASSA-PSS/SHA-256 signature for memory buffer
260 * signature RSA-2048 signature
269 uint8_t *signature)
303 /* Then calculate the hash signature */
311 "Failed to create RSA signature for %s. Error %d\n",
315 memcpy(signature, buf, 256);
326 * Verify RSASSA-PSS/SHA-256 signature for memory buffer
334 * signature RSA-2048 signature
345 uint8_t *signature)
392 hash, signature);
394 fprintf(stderr, "Failed to verify signature (%d)!\n", rval);
548 uint8_t signature[RSA_SIGN_BYTE_LEN];
551 /* Save headers signature and reset it in the secure header */
552 memcpy(signature, sec_ext->header_sign, RSA_SIGN_BYTE_LEN);
587 signature) != 0) {
600 memcpy(sec_ext->header_sign, signature, RSA_SIGN_BYTE_LEN);
889 /* The CSK block signature can be created here */
907 fprintf(stderr, "Failed to verify CSK keys block signature!\n");
957 * (image and header signature fields are still empty)
1047 /* Create the image signature first, since it will be later
1048 * signed along with the header signature
1059 /* Check that the image signature is correct */
1066 fprintf(stderr, "Failed to verify image signature!\n");
1071 * when the header signature field is empty
1082 /* Check that the header signature is correct */
1089 fprintf(stderr, "Failed to verify header signature!\n");
1093 /* Finally, copy the header signature into the trusted boot extension */
1189 do_print_field(0, "header signature",
1192 do_print_field(0, "image signature",
1198 do_print_field(0, "CSK block signature",