Skip to content

Instantly share code, notes, and snippets.

View idesai's full-sized avatar

Imran Desai idesai

  • Intel Corporation
  • USA
View GitHub Profile
@idesai
idesai / calc_sha256.c
Created January 27, 2022 23:19
openSSL sha256 calculation
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include <openssl/sha.h>
int main(void) {
@idesai
idesai / protected_nv_setup.sh
Last active July 6, 2023 07:46
Protected write & undefine operations for NV index
#!/bin/bash
#
# Copyright (C) 2021 Imran Desai
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#