1,235 reputation
38
bio website
location
age 45
visits member for 3 years, 7 months
seen yesterday
programs in C and Perl, mostly

1d
comment Is it secure to transmit a short plaintext with its MAC?
Glad to be able to help
1d
comment Is it secure to transmit a short plaintext with its MAC?
So the nonce is authenticated as well, hopefully. Yes, for messages that fit into the domain of a block cipher this is quite a valid construction and a good reuse of primitives. In this case it's a doubling, in general, for longer messages, one would use CBC-MAC or HMAC and then the extra data is quite reasonable.
1d
answered Is it secure to transmit a short plaintext with its MAC?
1d
comment Encode-decode with different block sizes?
Sounds like an EVP like interface to AES is used. Use a lowlevel block implementation. A do final suggest that padding is applied (as is normal for CBC mode, e.g.)?
1d
answered NTRU Encryption
1d
revised NTRU Encryption
Language plus LaTeX
2d
answered Cycles in SHA256
Mar
2
comment What are the steps to decrypt a TLS 1.1 record?
Yes, this is true if we have a CBC cipher (or even an AEAD cipher, which also has a nonce/IV and is supported in 1.2), not for stream ciphers, of course. 1.2 works the same way.
Feb
26
comment Hashes and Ciphers
RSA is an (public key, so assymetric) algorithm, 3DES is a symmetric algorithm. Both are not protocols, but building blocks in cipher-modes, which in turn are used in protocols, like IPSec, TLS, SSH, etc. The last use hashes as part of HMAC's (mostly) to ensure that data is not tempered with, and in key-derivation.
Feb
24
comment Using hash for one time pad key
@VincentAdvocaat this is the same as my point from the comment on the original question. Why bother with a system that one cannot encrypt arbitrary data with? OTP is not broken if plain text is known because key stream is not reused and independently random. So knowing part of it comprises nothing. Here knowing only 32 bytes kills everything.
Feb
23
comment Using hash for one time pad key
Suppose your hash is 16 bytes long (like MD5), and you need to encrypt known plaintext of 16 bytes as part of a protocol say or some file format, your system is dead after dead. Even e.g. 12 bytes is deadly as you brute force all 4 unknown plain text bytes.
Feb
23
answered encryption of message “DATACONFANTIALITY” with key playfair using playfair cipher
Feb
22
answered Linear Recurrence, keystreams, and periods
Feb
22
comment Hill Cipher the point of a known plaintext attack question
@Connor Glad I could help!
Feb
22
answered Hill Cipher the point of a known plaintext attack question
Feb
22
comment Substitution-permutation network
AES is an example, one could say the most important one.
Feb
22
comment Substitution-permutation network
It's IMHO probably best understood by an example.
Feb
22
comment Substitution-permutation network
youtube.com/watch?v=mlzxpkdXP58 has a nice animation for AES as an example..
Feb
19
revised How to implement the Salsa20 hash function?
added 2 characters in body
Feb
19
comment How to implement the Salsa20 hash function?
Logical shift, and yes, & is missing