Lines Matching defs:key
125 VERBOSE("Table key %d HASH\n", i);
191 /* This function checks if selected key is revoked or not.*/
205 /* Parse the header to extract the type of key,
206 * Check if key is not revoked
207 * and return the key , key length and key_type
209 static int32_t get_key(struct csf_hdr *hdr, uint8_t **key, uint32_t *len,
231 * Check the key number field. It should be not greater than
240 /* Get revoc key from sfp */
243 /* Check if selected key has been revoked */
246 ERROR("Selected key has been revoked\n");
250 /* Check for valid key length - allowed key sized 1k, 2k and 4K */
253 ERROR("Invalid key length\n");
278 /* Return the length of the selected key */
281 /* Point key to the selected key */
282 *key = (uint8_t *)&(srktbl[key_num - 1].pkey);
290 * 2. Key checks and extract the key from SRK/IE Table
305 uint8_t *key;
314 ret = get_key(hdr, &key, &klen, algo);
329 ERROR("RSA key length not twice the signature length\n");
335 if ((key[0] & 0x80) == 0U) {
336 ERROR("RSA Public key MSB not set\n");
341 if ((key[klen / 2 - 1] & 0x1) == 0U) {
342 ERROR("Public key Modulus in header not odd\n");
349 if (!(memcmp(s, key, hdr->sign_len) < 0)) {
360 *img_key = (uint8_t *)key;