pike.git
/
src
/
post_modules
/
Nettle
/
hogweed.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/post_modules/Nettle/hogweed.cmod:180:
push_bignum((MP_INT *)&key.p); push_bignum((MP_INT *)&key.q); rsa_private_key_clear(&key); rsa_public_key_clear(&pub); f_aggregate(4); stack_pop_n_elems_keep_top(args); /* Remove bits, e and rnd. */ }
-
/*! Unpads a message that has been padded according to
+
/*!
@decl int(0..) rsa_unpad(string(0..255) data, int type)
+
*!
+
*!
Unpads a message that has been padded according to
*! RSAES-PKCS1-V1_5-ENCODE(message) in PKCS#1 v2.2. The padding *! method used on the original message must be provided in the *! @[type] parameter. All content dependent processing is done in *! constant time for the same padding type and @[data] length. */ PIKEFUN int rsa_unpad(string(0..255) data, int type) { int i, pad=0, nonpad=0, pos=0; unsigned char *str;