Sha256: b9984d99ca41789abce14a7af73171cd95065dfc283964d503c54fcaf7acc619

Contents?: true

Size: 778 Bytes

Versions: 13

Compression:

Stored size: 778 Bytes

Contents

#include <string.h>

#include "crypto_sign_ed25519.h"

size_t
crypto_sign_ed25519_bytes(void) {
    return crypto_sign_ed25519_BYTES;
}

size_t
crypto_sign_ed25519_seedbytes(void) {
    return crypto_sign_ed25519_SEEDBYTES;
}

size_t
crypto_sign_ed25519_publickeybytes(void) {
    return crypto_sign_ed25519_PUBLICKEYBYTES;
}

size_t
crypto_sign_ed25519_secretkeybytes(void) {
    return crypto_sign_ed25519_SECRETKEYBYTES;
}

int
crypto_sign_ed25519_sk_to_seed(unsigned char *seed, const unsigned char *sk)
{
    memmove(seed, sk, crypto_sign_ed25519_SEEDBYTES);
    return 0;
}

int
crypto_sign_ed25519_sk_to_pk(unsigned char *pk, const unsigned char *sk)
{
    memmove(pk, sk + crypto_sign_ed25519_SEEDBYTES,
            crypto_sign_ed25519_PUBLICKEYBYTES);
    return 0;
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.11 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.8 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.7 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.6 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c