Sha256: f67022287e3ee3ff64d3690e1fbb6926847a1df03937cca969e7d8c244c9a6a5

Contents?: true

Size: 794 Bytes

Versions: 6

Compression:

Stored size: 794 Bytes

Contents

#define TEST_NAME "scalarmult2"
#include "cmptest.h"

static unsigned char bobsk[32] = { 0x5d, 0xab, 0x08, 0x7e, 0x62, 0x4a, 0x8a,
                                   0x4b, 0x79, 0xe1, 0x7f, 0x8b, 0x83, 0x80,
                                   0x0e, 0xe6, 0x6f, 0x3b, 0xb1, 0x29, 0x26,
                                   0x18, 0xb6, 0xfd, 0x1c, 0x2f, 0x8b, 0x27,
                                   0xff, 0x88, 0xe0, 0xeb };

static unsigned char bobpk[32];

int
main(void)
{
    int i;

    crypto_scalarmult_base(bobpk, bobsk);

    for (i = 0; i < 32; ++i) {
        if (i > 0) {
            printf(",");
        } else {
            printf(" ");
        }
        printf("0x%02x", (unsigned int) bobpk[i]);
        if (i % 8 == 7) {
            printf("\n");
        }
    }
    return 0;
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
laag-libsodium-1.0.16.2 vendor/github.com/jedisct1/libsodium/test/default/scalarmult2.c
laag-libsodium-1.0.16.0 vendor/github.com/jedisct1/libsodium/test/default/scalarmult2.c
rbnacl-libsodium-1.0.16 vendor/libsodium/test/default/scalarmult2.c
rbnacl-libsodium-1.0.15.1 vendor/libsodium/test/default/scalarmult2.c
rbnacl-libsodium-1.0.15 vendor/libsodium/test/default/scalarmult2.c
rbnacl-libsodium-1.0.13 vendor/libsodium/test/default/scalarmult2.c