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
from sage.all import * | |
import itertools | |
# display matrix picture with 0 and X | |
# references: https://github.com/mimoo/RSA-and-LLL-attacks/blob/master/boneh_durfee.sage | |
def matrix_overview(BB, bound): | |
for ii in range(BB.dimensions()[0]): | |
a = ('%02d ' % ii) | |
for jj in range(BB.dimensions()[1]): | |
a += ' ' if BB[ii,jj] == 0 else 'X' |
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
# The following example imports subkey DF6C5C29 into a secret keyring that | |
# already contains 55C794A2 | |
% gpg --list-secret-keys | |
sec 4096R/AF72A573 2012-06-17 | |
uid Andrew Ho <andrewho@andrewho.co.uk> | |
ssb 4096R/55C794A2 2012-06-17 | |
% mkdir 55C794A2 | |
% cd 55C794A2 |