Skip to content

Commit 79368fc

Browse files
Richi Priegokares
authored andcommitted
adds iv_len setter
1 parent e0660c6 commit 79368fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/jruby/ext/openssl/Cipher.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,12 @@ public final RubyInteger iv_len() {
825825
return getRuntime().newFixnum(ivLength);
826826
}
827827

828+
@JRubyMethod(name = "iv_len=", required = 1)
829+
public final IRubyObject set_iv_len(IRubyObject len) {
830+
this.ivLength = RubyNumeric.fix2int(len);
831+
return len;
832+
}
833+
828834
@JRubyMethod(name = "key_len=", required = 1)
829835
public final IRubyObject set_key_len(IRubyObject len) {
830836
this.keyLength = RubyNumeric.fix2int(len);

0 commit comments

Comments
 (0)