Commit 6c254e70 authored by HFJ's avatar HFJ

cmake err fixed 0123

parent cffdbae6
......@@ -23,9 +23,8 @@
#include "AuthenticationResultDeletionApiImpl.h"
#include "DefaultApiImpl.h"
// #include "authentication_algorithms_with_5gaka.hpp"
// #include "test.hpp"
#include "logger.hpp"
#include "authentication_algorithms_with_5gaka.hpp"
#define PISTACHE_SERVER_THREADS 2
#define PISTACHE_SERVER_MAX_REQUEST_SIZE 32768
......@@ -81,8 +80,21 @@ int main() {
opts.maxResponseSize(PISTACHE_SERVER_MAX_RESPONSE_SIZE);
httpEndpoint->init(opts);
Logger::ausf_server().debug("test logger!");
// f1_test();
uint8_t opc[16] = {0xcd, 0x63, 0xcb, 0x71, 0x95, 0x4a, 0x9f, 0x4e, 0x48, 0xa5, 0x99, 0x4e, 0x37, 0xa0, 0x2b, 0xaf};
uint8_t rand[16] = {0x23, 0x55, 0x3c, 0xbe, 0x96, 0x37, 0xa8, 0x9d, 0x21, 0x8a, 0xe6, 0x4d, 0xae, 0x47, 0xbf, 0x35};
uint8_t key[16] = {0x46, 0x5b, 0x5c, 0xe8, 0xb1, 0x99, 0xb4, 0x9f, 0xaa, 0x5f, 0x0a, 0x2e, 0xe2, 0x38, 0xa6, 0xbc};
uint8_t sqn[6] = {0xff, 0x9b, 0xb4, 0xd0, 0xb6, 0x07};
uint8_t amf[2] = {0xb9, 0xb9};
uint8_t mac_a[8], mac_s[8];
Authentication_5gaka::f1(opc, key, rand, sqn, amf, mac_a);
Authentication_5gaka::f1star(opc, key, rand, sqn, amf, mac_s);
printf("testing f1...\n");
for(int i=0; i<8; i++)
printf("%x ",mac_a[i]);
printf("\n");
for(int i=0; i<8; i++)
printf("%x ",mac_s[i]);
printf("\n");
//AuthenticationResultDeletionApiImpl AuthenticationResultDeletionApiserver(router);
//AuthenticationResultDeletionApiserver.init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment