Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

This expression appears on my cryptography homework:

$$G'(k) = G(k \oplus 1^s)$$

It is a description of a Pseudorandom Number Generator where $G:\{0,1\}^s \to \{0,1\}^n$

I just cant see what the "prime" adds, to me it would read the same as:

$$G(k) = k \oplus 1^s$$

Am I missing something?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Given one generator $G \colon \{0,1\}^s \to \{0,1\}^n$ we define another generator as follows: Given $k$, first swap all bits, that is xor with $1^s$, then apply $G$, as a formula: We define $G'\colon \{0,1\}^s \to \{0,1\}^n$ by $G'(k) = G(k \oplus 1^s)$.

For example: $G'(100) = G(001)$, $G'(111) = G(000)$ and so on.

share|improve this answer
Ahh so G prime means something like "a specific instance of G" –  jsj Nov 8 '12 at 15:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.