Populate the HASH algorithm capabilities registration.
@@ -476,7 +476,12 @@ ACVP_RESULT acvp_set_certkey(ACVP_CTX *ctx, char *cert_file, char *key_file)
static ACVP_RESULT acvp_build_hash_register_cap(JSON_Object *cap_obj, ACVP_CAPS_LIST *cap_entry)
{
json_object_set_string(cap_obj, "algorithm", acvp_lookup_cipher_name(cap_entry->cipher));
- //TODO: need to add the rest of the hash caps
+ json_object_set_string(cap_obj, "inByte", cap_entry->cap.hash_cap->in_byte ? "yes" : "no" );
+ json_object_set_string(cap_obj, "inEmpty", cap_entry->cap.hash_cap->in_empty ? "yes" : "no" );
+ json_object_set_string(cap_obj, "outByte", cap_entry->cap.hash_cap->out_byte ? "yes" : "no" );
+ json_object_set_number(cap_obj, "inLen", cap_entry->cap.hash_cap->in_len );
+ json_object_set_number(cap_obj, "outLen", cap_entry->cap.hash_cap->out_len );
+
return ACVP_SUCCESS;
}
