tls: make tls_get_random() FAST_FUNC
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 23 Nov 2018 18:24:57 +0000 (19:24 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 23 Nov 2018 18:24:57 +0000 (19:24 +0100)
function                                             old     new   delta
tls_handshake                                       1977    1985      +8
tls_get_random                                        32      28      -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 8/-4)                Total: 4 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tls.c
networking/tls.h

index 2a0098674e6cd7e285b36ed6bbf9e2bfa064ebe5..1e0e0991c62772c191cd6fb94e290d8ea96b7034 100644 (file)
@@ -337,7 +337,7 @@ static void dump_tls_record(const void *vp, int len)
 # define dump_tls_record(...) ((void)0)
 #endif
 
-void tls_get_random(void *buf, unsigned len)
+void FAST_FUNC tls_get_random(void *buf, unsigned len)
 {
        if (len != open_read_close("/dev/urandom", buf, len))
                xfunc_die();
index 1d379c1935bae6830cefed25e28a540009feefcf..f2ef67aac9934d017178ee938ce7291a7ba71bf4 100644 (file)
@@ -80,7 +80,7 @@ typedef  int16_t  int16;
 
 #define AES_BLOCK_SIZE  16
 
-void tls_get_random(void *buf, unsigned len);
+void tls_get_random(void *buf, unsigned len) FAST_FUNC;
 
 #define matrixCryptoGetPrngData(buf, len, userPtr) (tls_get_random(buf, len), PS_SUCCESS)