Skip to content

Instantly share code, notes, and snippets.

View vkosuri's full-sized avatar
:octocat:
I may be slow to respond.

Mallikarjunarao Kosuri vkosuri

:octocat:
I may be slow to respond.
View GitHub Profile
@vkosuri
vkosuri / build_oqs_provider.sh
Last active January 2, 2024 11:09
Integrating OpenSSL with OQS Providers for Enhanced Quantum-Safe Security
#!/bin/bash
# Enable error handling
# set -x
# Set up environment and variables
INSTALLDIR_OPENSSL="/opt/ossl32" # openssl3.2
INSTALLDIR_LIBOQS="/opt/liboqs"
INSTALLDIR_PROVIDER="/opt/oqs-provider"
LIBOQS_BUILD_DEFINES="ON"
@vkosuri
vkosuri / explore_openssl.sh
Created September 18, 2023 17:28
Exploring OpenSSL Bash Script for Enhanced Security
#!/bin/bash
# Function to display usage instructions
usage() {
echo "Usage: $0 <operation> [options]"
echo "Operations:"
echo " genca - Generate a CA certificate and output public key, private key, and CSR."
echo " genec - Generate an EC key and certificate."
echo " genrsa - Generate an RSA key and certificate."
echo " genpkcs12 - Generate a PKCS#12 (.pfx) file from a private key and certificate."
@vkosuri
vkosuri / webserver.py
Created December 1, 2016 08:35
Python SimpleHTTPServer
#! /usr/bin/env python
'''
python webserver.py --dir ~/Documents
python webserver.py --dir ~/Documents --port 5000
'''
import posixpath
import argparse
@vkosuri
vkosuri / eval_dict.robot
Last active May 24, 2016 06:29
Running Robotframework from within python
*** Settings ***
Documentation This example evaluate a JSON data
*** Test Cases ***
EvalDict
${post_dict}= Evaluate {u'name': 'uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu', u'enabled': True}
@vkosuri
vkosuri / tcl_basic_cmds_usage.tcl
Created May 23, 2016 12:54
TCL commands usage
# set, a built-in command, reads and writes variables.
set a 10
# Desc: puts - Write to a channel
# Syntax: puts ?-nonewline? ?channelId? string
# channelId stdin, stdout, stderr
set abc [puts "test"]
puts stdout $tcl_version nonewline