The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/libsodium/test/default/scalarmult2.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 
    2 #define TEST_NAME "scalarmult2"
    3 #include "cmptest.h"
    4 
    5 static unsigned char bobsk[32] = { 0x5d, 0xab, 0x08, 0x7e, 0x62, 0x4a, 0x8a,
    6                                    0x4b, 0x79, 0xe1, 0x7f, 0x8b, 0x83, 0x80,
    7                                    0x0e, 0xe6, 0x6f, 0x3b, 0xb1, 0x29, 0x26,
    8                                    0x18, 0xb6, 0xfd, 0x1c, 0x2f, 0x8b, 0x27,
    9                                    0xff, 0x88, 0xe0, 0xeb };
   10 
   11 static unsigned char bobpk[32];
   12 
   13 int
   14 main(void)
   15 {
   16     int i;
   17 
   18     crypto_scalarmult_base(bobpk, bobsk);
   19 
   20     for (i = 0; i < 32; ++i) {
   21         if (i > 0) {
   22             printf(",");
   23         } else {
   24             printf(" ");
   25         }
   26         printf("0x%02x", (unsigned int) bobpk[i]);
   27         if (i % 8 == 7) {
   28             printf("\n");
   29         }
   30     }
   31     return 0;
   32 }

Cache object: 3829750416b722919fabb4e7a1c253f1


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.