ブックマーク / github.com/google (1)

  • GitHub - google/libsxg: Signed HTTP Exchange library

    #include <assert.h> #include <libsxg.h> #include <openssl/crypto.h> #include <openssl/pem.h> #include <stdbool.h> #include <stdio.h> #include <time.h> int main() { // Load keys. char passwd[] = ""; FILE* keyfile = fopen("ecdsa.privkey", "r"); assert(keyfile != NULL); EVP_PKEY* priv_key = PEM_read_PrivateKey(keyfile, NULL, NULL, NULL); fclose(keyfile); FILE* certfile = fopen("ecdsa.cert", "r"); ass

    GitHub - google/libsxg: Signed HTTP Exchange library
    jovi0608
    jovi0608 2019/08/17
    おぉ @kumagi さん作の libsxg だ。cbor/structure header/mice など全部自作なのは漢だなぁ。あとは transformer があればだけど、あれは辛いか。
  • 1