begin implementing crypto code

+ Definition of contract for padding schemes
+ Implementation (untested) of PKCS#7 padding.