MCPcopy Index your code
hub / github.com/bcrypt-ruby/bcrypt-ruby / streamtoword_bug

Method streamtoword_bug

ext/jruby/bcrypt_jruby/BCrypt.java:556–559  ·  view source on GitHub ↗

Cycically extract a word of key material, with sign-extension bug @param data the string to extract the data from @param offp a "pointer" (as a one-entry array) to the current offset into data @return the next word of material from data

(byte data[], int offp[])

Source from the content-addressed store, hash-verified

554 * @return the next word of material from data
555 */
556 private static int streamtoword_bug(byte data[], int offp[]) {
557 int signp[] = { 0 };
558 return streamtowords(data, offp, signp)[1];
559 }
560
561 /**
562 * Initialise the Blowfish key schedule

Callers 1

keyMethod · 0.95

Calls 1

streamtowordsMethod · 0.95

Tested by

no test coverage detected