Example usage for org.bouncycastle.crypto StreamCipher returnByte

List of usage examples for org.bouncycastle.crypto StreamCipher returnByte

Introduction

In this page you can find the example usage for org.bouncycastle.crypto StreamCipher returnByte.

Prototype

public byte returnByte(byte in);

Source Link

Document

encrypt/decrypt a single byte returning the result.

Usage

From source file:rpc.security.ntlm.NTLMKeyFactory.java

License:Open Source License

void signingPt2(byte[] verifier, StreamCipher rc4) throws IllegalStateException {
    for (int i = 0; i < 8; i++) {
        //         verifier[i+4] = (byte) (verifier[i+4] ^ rc4.nextByte());
        verifier[i + 4] = (byte) (rc4.returnByte(verifier[i + 4]));
    }// w  w  w .  ja  v  a 2 s .c o m
}