This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Copyright (C) 2024 S-P Chan <shihping.chan@gmail.com> | |
SPDX-License-Identifier: Apache-2.0 | |
""" | |
""" | |
CLI tool to create pkcs11-provider pem files from a key uri | |
Requirements: asn1crypto | |
Installation: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# match the API of oscrypto.kdf.pkcs12_kdf | |
from typing import Callable, Tuple | |
import hashlib | |
from math import ceil | |
import os | |
import random | |
def hash_factory(hash_algo: Callable) -> Tuple[Callable[[bytes], bytes], int]: | |
"""Returns a one-shot hasher based on hash_algo and block_size |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* install all the icons sets e.g. | |
* npm i @iconify-icons/mdi | |
* npm i @iconify-icons/mdi-light | |
* npm i @iconify-icons/ic | |
* | |
*/ | |
/* | |
* In main.js | |
* import IconifyBundle from '@/assets/bundle-iconify.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
CON=$(buildah from debian:10) | |
echo "Building in $CON" | |
# yikes - there is so much work to do | |
# it's easier to put it in a script than to have | |
# a massive number of buildah run lines | |
cat > install-5000.sh <<EOF | |
#!/bin/bash |