Rename x509_int_to_hexdigit to nibble_to_hex_digit

Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
diff --git a/library/x509.c b/library/x509.c
index 5025d77..b8a866a 100644
--- a/library/x509.c
+++ b/library/x509.c
@@ -810,8 +810,7 @@
     return 0;
 }
 
-/* Converts only the 4 least significant bits */
-static char x509_int_to_hexdigit(int i)
+static char nibble_to_hex_digit(int i)
 {
     return (i < 10) ? (i | 0x30) : ((i - 9) | 0x40);
 }
@@ -879,8 +878,8 @@
                 s[j++] = '\\';
                 char lowbits = (c & 0x0F);
                 char highbits = c>>4;
-                s[j++] = x509_int_to_hexdigit(highbits);
-                s[j] = x509_int_to_hexdigit(lowbits);
+                s[j++] = nibble_to_hex_digit(highbits);
+                s[j] = nibble_to_hex_digit(lowbits);
             } else {
                 s[j] = c;
             }