Content deleted Content added
mNo edit summary |
m change source to syntaxhighlight |
||
Line 14:
The VMPC function is used in an [[encryption]] algorithm – the VMPC [[stream cipher]]. The algorithm allows for efficient in software implementations; to encrypt {{mono|L}} bytes of plaintext do:
<
n = 0
Repeat steps 3-8 L times:
Line 23:
P[s] = Temp #Swap(P[n], P[s])
n = (n + 1) mod 256
</syntaxhighlight>
Where 256-element permutation {{mono|P}} and integer value {{mono|s}} are obtained from the encryption password using the VMPC-KSA (Key Scheduling Algorithm).
|